on 11-11-2009 2:38 PM
Hi,
We have scenario to transfer file from SAP system to the partner using SFTP. We have non-local adapter engine in DMZ to communicate with trading parters. I have designed scenario in PI, to pick the file from SAP OS level and drop it on DMZ_AE. We have a script which does SFTP sitting on DMZ_AE and want to trigger it from PI. Unix script is written to pick the file from B2B folder and does sftp. How do I design this scenario to delete the actual file from B2B folder after unix script tranfer it to partner and want to archive it also and want to use PI to do all this. Please advise.
If you have script which does sftp with deleting file and archiving that would nice to get sample code.
Riya P
Hi,
I have created pair of sender-receiver channels to move dummy file from one folder to other while executing unix script at the run operating system command. But how do I automate the process for sender adapter to pick the dummy file to run the unix script in turn?
I have done as below:
Sender File (Picks file from SAP OS level) --> Receiver File/FTP (Drops the file in DMZ_AE in B2B folder e.g FILE1)
Sender File (Pick dummy file from B2B folder e.g TEST_IN) [Run OS Command, transfer file FILE1 and delete it] --> Receiver File (Drop dummy file back to B2B folder e.g TEST_OUT)
But I suspect this is not a good design. Experts please advise, if you have done similar kind of scenarios.
- Riya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Riya,
These links may helpfull to you
https://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
/people/santhosh.kumarv/blog/2008/07/27/glimpse-at-os-command-yet-another-scenario
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/content.htm
Regards
Ramesh
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.