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

OS command taking too long or stuck

Former Member
0 Likes
1,720

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

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
1,431

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

6 REPLIES 6
Read only

andreas_mann3
Active Contributor
0 Likes
1,432

Have you tested it with fm SXPG_COMMAND_EXECUTE ?

grx.

Andreas

Read only

0 Likes
1,431

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,

Read only

0 Likes
1,431

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,431

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

Read only

0 Likes
1,431

Suhas you are the boss, Thank you very very much. you shot in the heart!!!

Read only

Former Member