10-13-2008 3:00 PM
Hi Experts,
FM 'SXPG_CALL_SYSTEM' is giving dump with
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
commandname = wl_remote_copy "RCP
additional_parameters = wf_parameters
IMPORTING
status = btcxp3-exitstat
TABLES
exec_protocol = int_return_code .
the following EXPORT parameters
commandname = ZRCP
additional_parameters =
/comm/send/work/VPOB1001 ctaadm@ctamsgsv:/comm/edi/out/VPOB1001.20081013084808
It is not giving any values for status.
FM is giving dump at the following part of the code
000610 IF OPERATINGSYSTEM = SPACE .
000620 LOOP AT COMMAND_LIST WHERE OPSYSTEM = ANYOS .
000630 OPERATINGSYSTEM = ANYOS .
000640 EXIT.
000650 ENDLOOP.
000660 ENDIF.
000670 ENDIF.
000680
000690 IF OPERATINGSYSTEM = SPACE .
> RAISE COMMAND_NOT_FOUND .
000710 ENDIF.
000720
000730
000740 CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
000750 EXPORTING
000760 COMMANDNAME = COMMANDNAME
000770 OPERATINGSYSTEM = OPERATINGSYSTEM
000780 ADDITIONAL_PARAMETERS = ADDITIONAL_PARAMETERS
Please advice.
Thanks in advance..
10-13-2008 3:10 PM
Hi,
You have not caught the exception. Change the FM as follows
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
commandname = wl_remote_copy "RCP
additional_parameters = wf_parameters
IMPORTING
status = btcxp3-exitstat
TABLES
exec_protocol = int_return_code
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
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Cheers,
Kothand
10-13-2008 3:11 PM
You need to define this command ZRCP in transaction SM69 and then you have to execute the function module 'SXPG_CALL_SYSTEM' with the parameters.
Edited by: Naresh Ganesan on Oct 13, 2008 10:12 AM