Funktionsbaustein SXPG COMMAND CHECK

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein SXPG_COMMAND_CHECK

CALL FUNCTION 'SXPG_COMMAND_CHECK'
  EXPORTING
    COMMANDNAME                      =
"   OPERATINGSYSTEM                  = SY-OPSYS
"   TARGETSYSTEM                     =
"   ADDITIONAL_PARAMETERS            =
"   DESTINATION                      =
"   LONG_PARAMS                      =
"   EXT_USER                         = SY-UNAME
" IMPORTING
"   PROGRAMNAME                      =
"   DEFINED_PARAMETERS               =
"   ALL_PARAMETERS                   =
" EXCEPTIONS
"   NO_PERMISSION                    = 1
"   COMMAND_NOT_FOUND                = 2
"   PARAMETERS_TOO_LONG              = 3
"   SECURITY_RISK                    = 4
"   WRONG_CHECK_CALL_INTERFACE       = 5
"   X_ERROR                          = 6
"   TOO_MANY_PARAMETERS              = 7
"   PARAMETER_EXPECTED               = 8
"   ILLEGAL_COMMAND                  = 9
"   COMMUNICATION_FAILURE            = 10
"   SYSTEM_FAILURE                   = 11
"   OTHERS                           = 12
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur