09-26-2011 9:17 AM
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
09-26-2011 9:40 AM
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
09-26-2011 12:33 PM
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
09-26-2011 12:57 PM
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
09-28-2011 7:55 AM