Posted by [IP Address: 208.152.204.81] 'Ravi Thodpunuri' on September 21, 2001 at 09:08:51 EST:
In Reply to: EDI - Executing unix script from SAP posted by [IP Address: 208.152.204.81] 'Shuchi' on September 17, 2001 at 07:11:58 EST:
Hi,
There are 2 important setting need to make correctly in order to trigger external system.
1. RFC Destination: In your question you said you want to trigger different host other than your app.server.
So, using SM59 make settings to point to the host you want to transfer .You may have to copy 'rfcexec' (executable ) to your destination server. In the host name give the external system name/ip address. For unix you have to make appropriate settings in .rhosts file to trigger(for user 'XXXadm'. From app server unix command you should be able to do 'rsh' on external system.
You cann't give your appserver to trigger external system in SM59.
2. Port settings: In command file give the name of the script including full path name.
: We are using EDI for creating IDOC files on the application server for delivery schedules. I have a problem. That file is to be transferred to another non-SAP server. We have written a unix script on the appl.server which does ftp to transfer the file. It is working fine. But we want it to be triggered online as sson as the idoc file is created. In the port settings, we have given the automatic start possible option in the command file parameters along with the directory path for the shell script as well as shell script name. We have given RFC destination as server_exec with rfcexec in its program attribute and our app.server address in the host.
: ALso since the user is SAP user, he is valid for the app.server unix OS.
: We are not able to execute the script on our own appl.server using the program rfcexec.
: can anyone give any useful suggestions?