Application Development 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: 

To check wheather a process is running at OS level

Former Member
0 Kudos

Hi experts,

can we know whether MSG_SERVER.EXE and DISP+WORK.EXE and IGSWD.EXE process are in ON or not(STATUS)

at OS level (may be from ABAP..............)

please reply...

Regards

ALBERT

4 REPLIES 4

Former Member
0 Kudos

Hi Albert,

you can use ps command to display all running process if application server is running on linux. In windows you can use "wmic process get description". In both cases, from ABAP, you can execute OS command by creating this command in SM69 and executing it by function module SXPG_COMMAND_EXECUTE. Check [Creation of External Commands with the help of UNIX Coding in SAP|http://wiki.sdn.sap.com/wiki/display/ABAP/CreationofExternalCommandswiththehelpofUNIXCodingin+SAP] for detailed description how to do it. Or you can execute external command directly in transaction SM69 (resp. SM49).

Regards

Adrian

0 Kudos

HI

thank you for your valuable reply

i have created a Zcommand in sm69 ...it is working fine when i am executing in the same window....

But when i am executing through FM SXPG_COMMAND_EXECUTE...it is giving an Exception saying that command_not_found..

what could be the reason.....and my OS is windows only.........

Regards

ALBERT

0 Kudos

Pass the same value to parameter OPERATINGSYSTEM as specified in SM69, do not use default value. Eg. if you are running on windows and in SM69 ANYOS is defined, it will return this error. Also be aware that operating system is case sensitive parameter, so "Windows NT" is not the same as "WINDOWS NT".

Regards

Adrian

Former Member
0 Kudos

it solved my problem...