cancel
Showing results for 
Search instead for 
Did you mean: 

how to achieve file masking in sftp sender adapter in sap cpi?

thrilok_cpi
Explorer
0 Kudos

Hi Experts,

How can I pull the files with multiple file name in SFTP sender adapter in CPI

Example:

Need to pull below fromat files

1. ABC02021*

2.XYZ2022*

Thanks,

View Entire Topic
SivaPO
Participant
0 Kudos

There are different approaches, so I'll share one option below...

  • Option: Process all files in the source directory.
  • Filter: Use a router to discard files other than the two desired formats.
  • Note: Large volumes of unwanted files in the source directory can overload the SFTP adapter before router filtering.
  • For details refer - /route-incoming-files-based-on-filename/
thrilok_cpi
Explorer

Hi Siva,

Thanks for the response, yes the approach looks good, but can you suggest other approaches as I am not required to pull the unwanted files to CPI as the load increases on the server and even If I pull the unwanted files, need to keep them back in source directory and processed file has to be moved to archive directory.

Thanks you!

SivaPO
Participant
0 Kudos

Hi thrilok.cpi

Another approach. This will be more cleaner when you have large number of unwanted files.

https://blogs.sap.com/2023/10/17/sap-integration-suite-multiple-files-mask-with-sftp-adapter/