Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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 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.

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sherin,

      In that I would suggest you need to keep a file(trigger file) and then using java mapping you can read from folders dynamically.

      hope this helps,

      thanks and regards,

      PRaveen T