Funktionsbaustein SXPG COMMAND EXECUTE

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein SXPG_COMMAND_EXECUTE

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    COMMANDNAME                         =
"   ADDITIONAL_PARAMETERS               =
"   OPERATINGSYSTEM                     = SY-OPSYS
"   TARGETSYSTEM                        = SY-HOST
"   DESTINATION                         =
"   STDOUT                              = 'X'
"   STDERR                              = 'X'
"   TERMINATIONWAIT                     = 'X'
"   TRACE                               =
"   DIALOG                              =
" IMPORTING
"   STATUS                              =
"   EXITCODE                            =
" TABLES
"   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
"   WRONG_ASYNCHRONOUS_PARAMETERS       = 12
"   CANT_ENQ_TBTCO_ENTRY                = 13
"   JOBCOUNT_GENERATION_ERROR           = 14
"   OTHERS                              = 15
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur