I am using the function GUI_EXEC to execute a DOS Command. I have been able to successfully execute a DOS Command on my local C: Drive. The DOS Command that I am passing in this function is: c:gpgbatch.bat
I have not sucessfully executed a DOS Command that executes locally on a Server instead of my C: Drive. The DOS Command that I pass to the function in this case uses remote commands: rcmd mpcsrv61 c:gpgbatch.bat
Since I haven't been able to execute the function to run a DOS command on a Network Server, I wonder if I'm using the wrong function. Thoughts?
As the name suggestions the function module GUI_EXEC needs the GUI to be present. So yes, it is only for the presentation server.
I assume you are wanting to execute commands on the application server. To do this, look at transaction SM69, and function modules in group SXPT. ( such as SXPG_COMMAND_EXECUTE ).
Dig Deeper on SAP application integration
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.