cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Archive Target File on PI Server

Former Member
0 Kudos

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

View Entire Topic
former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Shabarish_Nair
Active Contributor
0 Kudos

>

> 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