on 04-28-2009 3:37 PM
Hi ALL
We are using the File adapter(FTP) option to write files to the target system.
Also, we would like to achieve the file created, after its completed creating the file on the PI server.
Can you please, help us with options or methodologies we can use to achieve this.
Here is the Scenario:
Step 1.File "Test1.txt"Created on FTP Server: ftp.hostname1.com (File adapter using FTP)
Step 2.A Copy of the file "Test1-042809.txt" archived on SAP PI Server.
Is this possible by using the option "Run Operating System Command After Message Processing" under the Receiver File adapter communication channel processing option.
Also, our PI server is on Windows Operating system....
Your help is greatly appreciated!!
Thank you,
Patrick
Set the Processing Mode in the Processing Parameters of the sender FTP adapter to "Archive".
Using this option, you can archive the file to the directory specified.
Check the link:
http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
and search for "Archive"
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks you for your response....
The options you have pointed to is archiving on the source side.....we are looking for archiving on the target side....
Also, please let us know....if you can help us with some shell script which just copies file....using COPY....so that wwe can use it in "Run Operating System command after message processing"
Thank you,
Patric
>
> Thanks you for your response....
>
> The options you have pointed to is archiving on the source side.....we are looking for archiving on the target side....
>
> Also, please let us know....if you can help us with some shell script which just copies file....using COPY....so that wwe can use it in "Run Operating System command after message processing"
>
> Thank you,
> Patric
use a command like this in the file adapter
cp /xxx/yyyy/targetdir/<filenamescheme> /xxx/yyyy/targetdir/archive/<filenamescheme>
further ref: /people/santhosh.kumarv/blog/2008/07/27/glimpse-at-os-command-yet-another-scenario
Not well versed with command line scripting, but I can suggest an alternative though. Have two interface determinations and two receiver agreements with new receiver file channel. That should solve the problem.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can archive the file in the sender file adapter
Check the check box for the archieve files on FTP server
Srinivas
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 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.