on 11-07-2007 6:09 PM
Hello,
I wanted to know how to archive file after ftp the file. I am using Receiver Fileadapter. I tried to use following command in the "<u><b>Run Operating System Command after Message Processing</b></u>"
copy %f c:\archive
This did not copy the file after ftp.
I appreciate your help.
Thank you,
Balaji
>>copy %f c:\archive
yes,it will not work coz you can't run shell comand like this.you need to write a script and then give the path of that script in "Run Operating System Command after Message Processing"
Reference:SAP Note 841704
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aamir,
Thank you for the response. I created archive.bat file on XI with following line in the bat file.
copy %f c:\archive
I specified archive.bat file name in the "<u><b>RunOperating System Command after message pocessing</b></u>" with complete path as follows.
C:\archive.bat
However the file is not archived. I am not sure what is worng wih it.
Thank you,
Balaji
hi Balaji,
Remember we cannot any OS leve command on FTP Server, you can call only on XI server.
So what you have to do is basically create an batch file (having coding for connecting to FTP server and copying file on ftp server, you can use java code also here and call from batch file) and call this batch file from XI adapter.
Try it.
Ranjeet Singh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried using the Archive setting?
Processing Mode
○ Archive
Files that have been successfully processed are moved to an archive directory.
■ To add a time stamp to a file name, select the Add Time Stamp indicator.
The time stamp has the format yyyMMdd-hhMMss-SSS_. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
■ Under Archive Directory, enter the name of the archive directory.
■ If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
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.