‎2006 Mar 28 11:29 AM
guy's i need more info regarding given Tcode,
i have created command z_ksh and assign it to unix
server,but when i run function module to run script
,it's throwing me error no command found,need update
on these
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
COMMANDNAME = P_SCRIPT
OPERATINGSYSTEM = SY-OPSYS
TARGETSYSTEM = SY-HOST
STDOUT = 'X'
STDERR = 'X'
TERMINATIONWAIT = 'X'
TRACE = ' '
ADDITIONAL_PARAMETERS = P_PARAM
IMPORTING
STATUS =
TABLES
EXEC_PROTOCOL = IT_CMD_OUTPUT
EXCEPTIONS
NO_PERMISSION = 1
COMMAND_NOT_FOUND = 2
PARAMETERS_TOO_LONG = 3
SECURITY_RISK = 4
WRONG_CHECK_CALL_INTERFACE = 5
PROGRAM_START_ERROR = 6
PROGRAM_TERMINATION_ERROR = 7
X_ERROR = 8
PARAMETER_EXPECTED = 9
TOO_MANY_PARAMETERS = 10
ILLEGAL_COMMAND = 11
WRONG_ASYNCHRONOUS_PARAMETERS = 12
CANT_ENQ_TBTCO_ENTRY = 13
JOBCOUNT_GENERATION_ERROR = 14
OTHERS = 15.
‎2006 Mar 28 11:34 AM
Hi,
SM69 is used to create/Change the External Operating System Commands.after creation Did you check it in SM49 . SM49 is to execute the created Command.
Regards
Vijay
‎2006 Mar 28 11:36 AM
In SM69 when u create a cmd u need to save twice once te command cretaed and then in the list also u need to press the save button.
come out of this trx and execute sm49. U should be able to c ur cmd. If yes then u can execute using the FM which u have described otherwise it will give error.
‎2006 Mar 28 11:41 AM
Hi,
Check this SAP help on SM69.
for creation of external commands.
http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a607b505211d189550000e829fbbd/frameset.htm
Regards
Vijay