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

Execute external command from app server

Former Member
0 Likes
958

Hi,

I'm having an program (*.exe) sitting on a windows server which I would need to execute from inside SAP. Our SAP server is running on a Unix platform.

The location where the program is, is an NFS mount and sitting in folder /usr/sap/archive/basis/TDS/. So this is physically on the Windows box but mounted to the Unix server under the above location.

I know you can execute an external command via SM69 but what would be the parameters to enter there? I already searched the internets but did not find anything for this particular problem.

Can anyone help me with this?

Thanks in advance.

Tom

6 REPLIES 6
Read only

Former Member
0 Likes
872

Am not sure, I could look into it but my first thought was could you not use cl_gui_frontend_services=>execute?

Read only

Former Member
0 Likes
872

Just spent more than 2 seconds thinking. Are you meaning the parameters for the .exe? Cant you execute the exe at cmd and enter ? i.e.

test.exe?

that should bring up a list of parameters.

Read only

0 Likes
872

Hi Adam. In fact we just found the solution for doing this. We would need to install a stand alone gateway on the Window server in order to do an RFC call type T.

In the call you can specify the program which you want to run with all the needed parameters (destination,...)

Read only

0 Likes
872

That seems nifty. I must admit I have never had a requirement to trigger an external exe outside of SAP (other than i.e) so how would you do this? Do you have a link to the info?

Cheers

Read only

0 Likes
872

We use this to convert *.html pages into *.pdf pages in background. There are a number of free html to pdf converters which you can download on the internet. Unfortunalty, none of them work 100% on a Unix environment (app server of our SAP). Therefore we installed the program on a Windows environment, installed a stand alone gateway so our SAP can do an RFC call to the Windows server.

In sm59, you can define a RFC type TCP/IP. You can there do a remote execution on the target host you specify.

Read only

0 Likes
872

Hi Tom,

I'm really surprised to read that HTML2PDF is more simple in M$ server than in Unix server.

if you html pages is produced by SAP, maybe there is a conversion from OTF to  HTML ...  and maybe you could bypass it and convert it directly to PDF ?

regards

Fred