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

sm69

Former Member
0 Likes
1,756

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.

3 REPLIES 3
Read only

Former Member
0 Likes
1,404

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

Read only

Former Member
0 Likes
1,404

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.

Read only

Former Member
0 Likes
1,404

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