Skip to Content

How to pick the files from dynamic folders in SAP CPI

Hi Team,

We have a requirement to pick files from multiple directories based on latest folder which contains yesterday's file in SAP CPI.
example :

Folder_20191106 -- Contains 5th date file
Folder_20191107 - Contains 6th date file
Folder_20191108 - Contains 7th date file

Could you please suggest how to handle in SAP CPI.

Thanks,
Avinash

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 07, 2019 at 02:53 PM

    Hi Avinash,

    There is no standard way of picking files from multiple folders in CPI through SFTP adapter.

    There are couple of suggestions I could think of:

    1) Create a parent folder ParentFolder and create all the other dynamic folders under this.

    In the channel parameter give the directory name as /ParentFolder and select Include Sub directories under Processing mode and select Post Processing Delete.

    2) Alternatively there is a suggestion by which also you could try:

    https://answers.sap.com/questions/34838/can-we-configure-multiple-sender-systems-to-fetch.html

    Hope this helps !

    thanks and regards,

    Praveen T

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 08, 2019 at 06:35 AM

    Thanks Praveen.Will try with the suggested approaches.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.