on 08-22-2013 8:07 AM
Hi,
We have requirement that PI need to send the file to multiple Target Directory paths in one FTP server.
Instead of creating multiple Receiver Communication channels is there any other ways to achieve it..?
Please Suggest.
Thanks,
Srikanth
Hi Srikanth,
I have achieved your requirement using the following Wiki:
http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario
Create Dummy Objects in ESR as required. Create the JAVA mapping where you will have to write maybe Switch Case or Else If - whichever is comfortable and select the Directory as required for the receiver.
The only change in case of Directory Routing is on the line:
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
The above line should be replaced by
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
On Receiver Side, the directory should be kept as *.
The overall scenario still remains passthrough. You can pass any kind of file depending on your requirement.
Thanks & Regards,
Tejas Bisen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Srikanth,
you can use shell script to move the files to FTP location. for your requirement , there is no standard option in PI, so try with shell script
Cheers
Hidayat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srikanth,
You can write a unix script and send it to as many folder you want.
Thanks,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for all your replies.
We have some limitations and challenges by using the unix script or Value mapping.
--> By using Unix Script we can move the files to NFS folders only not FTP paths(correct me if i am wrong)
-->Here i need to transfer different kind of files(.pdf , .xls etc...) to target directories. So i am not using ESR part. i am doing Bypass Scenario. So we cant do Value mapping here.
Thanks,
Srikanth
Hi Srikanth,
Since this is a pass through scenario you can totally ignore PI . A single script will detect presence of the source file in a directory and create copies of the same in multiple target directories using FTP. Here are list of commands you can use to write the script http://dwardmac.pitzer.edu/classes/skills/ftp/unixftp.html.
I guess your source server has UNIX/Linux OS for windows OS you need to use different command
http://www.nsftools.com/tips/MSFTP.htm. The script will be scheduled by basis team to run t specific times of the day to check for files and transfer the same.
Regards
Anupam
Hello,
You can try using multi-mapping with variable substitution or a unix script after message processing.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please check below link:
Thanks,
Beena
Hello,
Check this:
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.