Skip to Content
author's profile photo Former Member
Former Member

Pick Files from multiple sender folders

Hi,

I have a scenario where the sender folder structure will be in the below format,

TEMP --> OUT --> RECEIPT201015 --> Receipt.csv

TEMP --> OUT --> RECEIPT211015 --> Receipt.csv

TEMP --> OUT --> RECEIPT221015 --> Receipt.csv


The Folder name will be based on the Date stamp and the file name within the folder will remain the same. The requirement is to pick the file from each of these random folders and then delete the folders after the file is picked and sent to target system.

Any help on this would be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 20, 2015 at 04:20 AM

    Hello Sherin,

    You can pick files from multiple folders using additional parameters.

    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm

    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm

    And use processing mode delete to delete the files once picked.

    Hope it is clear.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Raghu,

      Thanks for your reply.

      The folder names will be dynamic, which means that it will start with GR and will have some random numbers to it like GR345, GR897, etc.

      I need to read the files in the folder and then delete the folder after sending the file.

      Can you please elaborate how additional parameters option will help when i will not know the exact folder names.

  • Posted on Oct 20, 2015 at 05:33 AM

    Hello Sherin,

    PFB the below blog.

    Step by Step Dynamically choosing target folder using JAVA mapping with SFTP adapter.

    you can alter the code as per your specific requirement.

    thanks and regards,

    Praveen T

    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.