on 09-06-2012 2:18 PM
Hello All,
I need your help, Very new to SAP.
How can I archive a file that is picked from a FTP server in two different locations?
Currently it gets achieved in the XI server Archival path. I also want to achieve the file in on a different ftp location, keeping the current archival path unchanged.
The Second archival location would be same as the location from where the file is picked but into a different archival folder.
You can achieve this using an additional data flow to have additional receiver channel to place the picked file as it is into the required directory.
Also, you can try to Run OS command option in channel.
Refer below blog to get some idea.
Also, If you are in UNIX, try to give this command in channel if it is same host.
cp %F <Target Directory>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All
Humble thanks for all your help..I have created the script file all most of you have advised and placed also created the batch file to execute the script file.
But still the message gets archived in 1 location (the archival path as mentioned in Archive directory in sender channel)
I have already placed the batch file in the XI server and placed the path of the batch file in the OS command Line before processing message. But the batch file is not getting executed due to which the file is not getting achieved in the other location.
However if I manually execute the batch file from my desktop where I have created the batch and the script file the second archival process happens all right. But if I manually execute it from the the XI server location.. Nothing Happens..
Please help with how can I execute the batch file automatically what should I put in the OS Command Line
Please find the screenshot attached regarding executing the batch file
Hi,
My suggestion is to add one more new channel so that you can archive in other location also.
Regards,
Naveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can have two receiver channels or alternatively u can write a java mapping program to save the file in the ftp locaiton. do let me know if u want the code to ftp the file through java mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atanu,
PFB the code that i have written to download the file from FTP location.
the above code is tested and its working perfectly fine.
Hi Promit,
PFB the code that i have written to download the file from FTP location.
the above code is tested and its working perfectly fine.
Add one more receiver ,create File receiver channel to place file in different archive folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use OS command, or you can do this:
1) develop a simple interface with only ID part that moves files from FTP folder to another destination (for example, an internal FTP area). This interface must also archive files in archival FTP folder.
2) now change the existing interface: it must pick files from destination specified at point 1 (p.e. internal FTP area). Obviously this interface must archive files.
BR
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.