SAP ABAP Function Module SXPG_COMMAND_EXECUTE (Execute an External Command)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-CCM-BTC (Application Component) Background Processing
⤷ SBTC (Package) SAP Background Processing
⤷ BC-CCM-BTC (Application Component) Background Processing
⤷ SBTC (Package) SAP Background Processing
Basic Data
Function Module | SXPG_COMMAND_EXECUTE | Execute an External Command |
Function Group | SXPT | External operating system commands |
Program Name | SAPLSXPT | External Commands |
INCLUDE Name | LSXPTU03 |
Parameters
Type | Parameter Name | Typing | Associated Type | Default value | Optional | Pass Value | Short text |
---|---|---|---|---|---|---|---|
Exporting | STATUS | TYPE | EXTCMDEXEX-STATUS | Status | |||
Exporting | EXITCODE | TYPE | EXTCMDEXEX-EXITCODE | Exitcode of External Program | |||
Importing | COMMANDNAME | TYPE | SXPGCOLIST-NAME | Name of External Command | |||
Importing | ADDITIONAL_PARAMETERS | TYPE | SXPGCOLIST-PARAMETERS | Arguments for the External Command | |||
Importing | OPERATINGSYSTEM | TYPE | SXPGCOLIST-OPSYSTEM | SY-OPSYS | Executing Host System | ||
Importing | TARGETSYSTEM | TYPE | RFCDISPLAY-RFCHOST | SY-HOST | Target System | ||
Importing | DESTINATION | TYPE | RFCDES-RFCDEST | ||||
Importing | STDOUT | TYPE | EXTCMDEXIM-STDOUT | 'X' | Log STDOUT Output Data | ||
Importing | STDERR | TYPE | EXTCMDEXIM-STDERR | 'X' | Log STDERR Output Data | ||
Importing | TERMINATIONWAIT | TYPE | EXTCMDEXIM-TERMWAIT | 'X' | Wait for Termination of Exteranl Command | ||
Importing | TRACE | TYPE | EXTCMDEXIM-TRACE | Perform Trace (Only for Tests) | |||
Importing | DIALOG | TYPE | BTCH0000-CHAR1 | Reference type CHAR1 for background processing | |||
Tables | EXEC_PROTOCOL | TYPE | BTCXPM | ||||
Exception | NO_PERMISSION | TYPE | User Does Not Have Authorization | ||||
Exception | COMMAND_NOT_FOUND | TYPE | External Command Not Defined | ||||
Exception | PARAMETERS_TOO_LONG | TYPE | Parameters Too Long | ||||
Exception | SECURITY_RISK | TYPE | Command Rejected for Security Reasons | ||||
Exception | WRONG_CHECK_CALL_INTERFACE | TYPE | Incorrect Call of a Function Module | ||||
Exception | PROGRAM_START_ERROR | TYPE | Error while Starting the External Command | ||||
Exception | PROGRAM_TERMINATION_ERROR | TYPE | Return Code with Errors | ||||
Exception | X_ERROR | TYPE | Reserved | ||||
Exception | PARAMETER_EXPECTED | TYPE | No Additional Arguments Specified | ||||
Exception | TOO_MANY_PARAMETERS | TYPE | Too Many Parameters Specified | ||||
Exception | ILLEGAL_COMMAND | TYPE | External Command Not Defined Properly | ||||
Exception | WRONG_ASYNCHRONOUS_PARAMETERS | TYPE | Reserved | ||||
Exception | CANT_ENQ_TBTCO_ENTRY | TYPE | Reserved | ||||
Exception | JOBCOUNT_GENERATION_ERROR | TYPE | Reserved | ||||
Processing Type
Normal Function Module | |
Remote-Enabled Module | BaseXML supported |
Update Module | Start immediately |
Immediate Start, No Restart | |
Start Delayed | |
Coll.run | |
JAVA Module Callable from ABAP | |
Remote-Enabled JAVA Module | |
Module Callable from JAVA |
History
Last changed by/on | SAP | 19950721 |
SAP Release Created in |