on 12-30-2015 12:00 PM
Hi Experts,
I have one new requirement
its a FILE to Proxy scenario.
I am picking the files from multiple directories and placing in one archive directory.
Now the requirement is--- I need to pick the files from multiple directories and archive to multiple folders.
But in SAP PI standard communication channel we can place the all files in one archive folder.Can you please let me know how to write batch script for this scenario.
We are using FTP channels and its a windows server.
Can you please give the sample code for that and also let me know where I need to place the batch file(AL11 server in sap PI or FTP windows server)
Regards,
Azeem
The Azeem ,
Another way will be to create one interface which picks up files from archive directory and route files using there name to different directories.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Azeem,
Basically in your receiver channel add your script i.e. \script.bat %FileName%
Your script should look like:
copy \<source>\%1 \target_1\%1
copy \<source>\%1 \target_2\%1
copy \<source>\%1 \target_3\%1 etc, etc...
The script must be in any place where your PI can "see" it.
Just google it. There is a bunch of samples of .bat scripts to copy files.
Regards,
Diego
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.