Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Executing a script on a remote Windows Server from an Unix as

Former Member
0 Likes
900

Hello,

I'd like to execute a script on a remote Windows Server from a Sap Unix AS. Using the user adm on Unix and the rexec command, I can execute my script on the Windows server without problem. Access have been granted.

How can configure a Sm59 Rfc destination with an explicit host, Sapxpg,... in order to execute the same script via the transaction sm49.

Thank you in advance

Philippe Grégoire

Hello,

I'd like to execute a script on a remote Windows Server from a Sap Unix AS. Using the user adm on Unix and the rexec command, I can execute my script on the Windows server without problem. Access have been granted.

How can configure a Sm59 Rfc destination with an explicit host, Sapxpg,... in order to execute the same script via the transaction sm49.

Thank you in advance

Philippe Grégoire

3 REPLIES 3
Read only

guillaume-hrc
Active Contributor
0 Likes
691

Hi Philippe,

Why do you need a specific RFC destination if you call the command from the underlying OS?

Best regards,

Guillaume

Read only

0 Likes
691

Hi,

You can create OS command in SM49 and run the script from your Unix server and transfer the file through FTP server to windows server.

Another option is you can have RFCsdk folder and RFCEXEC.exc file at your windows server and through SM59 create an RFC with windows server by giving explicite host and ID.

call this RFC in the program using FM 'RFC_REMOTE_PIPE'.

If you could Elaborate your question then it will be easy for us to guide you.

Read only

0 Likes
691

Hi Guillaume,

Thank you for your fast answer. Using the os level command rexec was only to check the access. I have to introduce the password at each test.

Best regards

Philippe Grégoire