Code: Alles auswählen.
DATA par TYPE btcxpgpar.
DATA tab TYPE TABLE OF btcxpm.
DATA btcxpm TYPE btcxpm.
DATA ex TYPE extcmdexex.
CONCATENATE vondatei nachdatei INTO par SEPARATED BY space.
ergebnis = in_ordnung.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZMV'
additional_parameters = par
IMPORTING
status = ex-status
exitcode = ex-exitcode
TABLES
exec_protocol = tab
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.
IF sy-subrc <> 0.
MESSAGE i001 WITH sy-subrc INTO g_dummy.
PERFORM protokoll_system.
ergebnis = fehlerhaft.
EXIT.
ENDIF.