on 09-07-2012 8:42 AM
Hi!
I want to send a file, using FTP, to a specific directory on Receiver server, ie /tmp. After the transferring of the file is finished I want to move the file to another directory on the Receiver side, ie /integratethis. I don't want the file name to be changed. Can someone give me some help how to?
In my setup I'm using the File adapter in PI. The setup is a Integration scenario without any mapping. The file is created in SAP, writes the file to directory, then PI receives the file from that directory using File adapter and forward it to the Receiver. This setup is working fine execpt the move to another directory after transfer.
Thanks in advance.
/Erik
Hi Erik,
Is your concern integrity of the file in that the receiver might pick up the file while you are still ftp'ing it across?
If that is the case, why don't you just use the built-in 'Use Temporary FIle' mechanism of the PI File Adapter?
You could FTP the file directly into the /integratethis directory with a .tmp extension (for example). Once PI completely FTP's the file across it does a filename change (move or rename) to the filename you originally specified.
Regards, Trevor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erik,
you can setup a second process just tranferring the file (with the same name). Michal desribed than in The same filename from a sender to a receiver file adapter - SP14
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Simply use the Processing Mode = Archive, to move the original file to the archive directory. Refer to SAP Help for more details:
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use OS command.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
refer to this:
http://wiki.sdn.sap.com/wiki/display/XI/SAP+XI+File+Adapter+OS+Command+Line+Feature
BR
Fabio
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.