2010 Aug 09 2:03 PM
Dear experts,
I need to execute and exe file on app. server (Windows 2008) so I have created an OS command using sm69, my command is:
C:\SAP\CC1\TimeTerminal\HandPunch3000.exe
no parameters
additional parameters allowed - checked
trace - checked
if I test this command using the execute button (F8), it starts endless, I have waited more than 8 minutes and seems it is stuck. the exe file is now locked. Am I missing anything? should I add something to trigger the command termination? it is no sense to have that late, the exe application takes milli seconds if I eecuted it manually on the server (double click).
Thanks in advance
Edited by: Samir Fares on Aug 9, 2010 3:03 PM
2010 Aug 09 2:33 PM
Have you tested it with fm SXPG_COMMAND_EXECUTE ?
grx.
Andreas
Dear experts,
I need to execute and exe file on app. server (Windows 2008) so I have created an OS command using sm69, my command is:
C:\SAP\CC1\TimeTerminal\HandPunch3000.exe
no parameters
additional parameters allowed - checked
trace - checked
if I test this command using the execute button (F8), it starts endless, I have waited more than 8 minutes and seems it is stuck. the exe file is now locked. Am I missing anything? should I add something to trigger the command termination? it is no sense to have that late, the exe application takes milli seconds if I eecuted it manually on the server (double click).
Thanks in advance
Edited by: Samir Fares on Aug 9, 2010 3:03 PM
2010 Aug 09 2:33 PM
Have you tested it with fm SXPG_COMMAND_EXECUTE ?
grx.
Andreas
2010 Aug 10 10:30 AM
Dears,
The exe application is not terminating thus making the thread of testing the command stuck. so after executing the command SAP should be free and shuold not wait for the exe application to finish. it makes no sense to wait the exe application to terminate, the purpose of the EXE application is to run but not for a while.
I'm using SXPG_CALL_SYSTEM with command and it is running the EXE application however SAP will be stuck until I go to the EXE application and end its task using task manager.
All I need is to run the exe application!!!! I'm surprized how poor is ABAP!!!! using code and FM it was not possible (I used WS_EXECUTE, GUI_RUN, and CL_GUI.... all run at client and not appl. server), using OS command seems to be not efficient due to what I said above. ANY HELP PLEASEEEE!!!!!
I need to run the exe application and dont wait for the exe to terminate, otherwise using OS command is not efficient. please help me!!!!
Best Regards,
2010 Aug 10 2:16 PM
this has become critical, any ideas please. can make a timeout for the command execution in ABAP. if it took more than minute I force stoping the transaction?
Thanks in advance
2010 Aug 10 2:27 PM
Hello Samir,
First of all "ABAP is not poor"
Back to your question you can use an alternative FM 'SXPG_COMMAND_EXECUTE' & pass a blank value to TERMINATIONWAIT param. if you do so the command would be executed asynchronously.
Read the long text for TERMINATIONWAIT. It is documented there.
BR,
Suhas
2010 Aug 11 9:45 AM
Suhas you are the boss, Thank you very very much. you shot in the heart!!!
2010 Aug 09 2:43 PM
Hello,
Check the below link.
http://help.sap.com/erp2005_ehp_02/helpdata/EN/c4/3a6047505211d189550000e829fbbd/frameset.htm
Thanks.
Ramya.