Skip to Content
avatar image
Former Member

Need to Archive Target File on PI Server

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 28, 2009 at 03:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • >

      > 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

  • avatar image
    Former Member
    Apr 28, 2009 at 03:13 PM

    U can archive the file in the sender file adapter

    Check the check box for the archieve files on FTP server

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2009 at 03:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded