08-07-2008 2:13 AM
Hi Gurus,
I'm trying to call this FM SXPG_COMMAND_EXECUTE in my program. It will call an external command defined in SM69 which will call the OS command ksh locataed in the bin folder. The OS im working on is AIX. However, I encountering a return code, sy-subrc = 10 from the SXPG_COMMAND_EXECUTE saying 'Too many parameters'.
I'm passing a total of 7 parameters to the FM at the moment.
Sample Code :
call function 'SXPG_COMMAND_EXECUTE'
exporting
commandname = ws_cmd
additional_parameters = outparam -> outparam contains 7 values separated by space
importing
status = status
exitcode = exitparam
tables
exec_protocol = exec_protocol
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
others = 12.
any help will be greatly appreciated. Thanks
08-07-2008 4:56 AM
Hi,
check Note 1152084 - Parameter for external commands
regards,
kaushal