2013 Oct 04 12:49 PM
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
2013 Oct 04 2:03 PM
Am not sure, I could look into it but my first thought was could you not use cl_gui_frontend_services=>execute?
2013 Oct 04 2:11 PM
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.
2013 Oct 08 9:26 AM
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,...)
2013 Oct 08 11:49 AM
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
2013 Oct 08 2:04 PM
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.
2013 Oct 08 2:21 PM
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