cancel
Showing results for 
Search instead for 
Did you mean: 

Pick Files from multiple sender folders

sherin_jose4
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

praveen_sutra
Active Contributor
0 Kudos

Hello Sherin,

PFB the below blog.

you can alter the code as per your specific requirement.

thanks and regards,

Praveen T

sherin_jose4
Participant
0 Kudos

Hi Praveen,

I am looking for reading files from Sender folder.

praveen_sutra
Active Contributor
0 Kudos

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

former_member186851
Active Contributor
0 Kudos

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.

sherin_jose4
Participant
0 Kudos

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.