SAP SXPG_COMMAND_START_INT_LONG Function Module for









SXPG_COMMAND_START_INT_LONG is a standard sxpg command start int long SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sxpg command start int long FM, simply by entering the name SXPG_COMMAND_START_INT_LONG into the relevant SAP transaction such as SE37 or SE38.

Function Group: SXPT
Program Name: SAPLSXPT
Main Program: SAPLSXPT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SXPG_COMMAND_START_INT_LONG pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SXPG_COMMAND_START_INT_LONG'"
EXPORTING
COMMANDNAME = "
TERMCNTL = "
* LONG_PARAMS = "Character 1024
* ADDITIONAL_PARAMETERS = "
* OPERATINGSYSTEM = SY-OPSYS "
DESTINATION = "
TARGETSYSTEM = "
STDINCNTL = "
STDOUTCNTL = "
STDERRCNTL = "
TRACECNTL = "

IMPORTING
STRTSTAT = "
XPGID = "
CONVID = "Conversation id

TABLES
LOG = "

EXCEPTIONS
NO_PERMISSION = 1 ILLEGAL_COMMAND = 10 COMMAND_NOT_FOUND = 2 PARAMETERS_TOO_LONG = 3 SECURITY_RISK = 4 WRONG_CHECK_CALL_INTERFACE = 5 PROGRAM_START_ERROR = 6 X_ERROR = 7 PARAMETER_EXPECTED = 8 TOO_MANY_PARAMETERS = 9
.



IMPORTING Parameters details for SXPG_COMMAND_START_INT_LONG

COMMANDNAME -

Data type: SXPGCOLIST-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

TERMCNTL -

Data type: BTCXPGSTIM-TERMCNTL
Optional: No
Call by Reference: No ( called with pass by value option)

LONG_PARAMS - Character 1024

Data type: CHAR1024
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDITIONAL_PARAMETERS -

Data type: SXPGCOLIST-PARAMETERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPERATINGSYSTEM -

Data type: SXPGCOLIST-OPSYSTEM
Default: SY-OPSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESTINATION -

Data type: RFCDES-RFCDEST
Optional: No
Call by Reference: No ( called with pass by value option)

TARGETSYSTEM -

Data type: RFCDISPLAY-RFCHOST
Optional: No
Call by Reference: No ( called with pass by value option)

STDINCNTL -

Data type: BTCXPGSTIM-STDINCNTL
Optional: No
Call by Reference: No ( called with pass by value option)

STDOUTCNTL -

Data type: BTCXPGSTIM-STDOUTCNTL
Optional: No
Call by Reference: No ( called with pass by value option)

STDERRCNTL -

Data type: BTCXPGSTIM-STDERRCNTL
Optional: No
Call by Reference: No ( called with pass by value option)

TRACECNTL -

Data type: BTCXPGSTIM-TRACECNTL
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SXPG_COMMAND_START_INT_LONG

STRTSTAT -

Data type: BTCXPGSTEX-STRTSTAT
Optional: No
Call by Reference: No ( called with pass by value option)

XPGID -

Data type: BTCXPGSTEX-XPGID
Optional: No
Call by Reference: No ( called with pass by value option)

CONVID - Conversation id

Data type: GWY_STRUCT-CONVID
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SXPG_COMMAND_START_INT_LONG

LOG -

Data type: BTCXPGLOG
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_PERMISSION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_COMMAND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COMMAND_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETERS_TOO_LONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SECURITY_RISK -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WRONG_CHECK_CALL_INTERFACE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROGRAM_START_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

X_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETER_EXPECTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TOO_MANY_PARAMETERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SXPG_COMMAND_START_INT_LONG Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_log  TYPE STANDARD TABLE OF BTCXPGLOG, "   
lv_strtstat  TYPE BTCXPGSTEX-STRTSTAT, "   
lv_commandname  TYPE SXPGCOLIST-NAME, "   
lv_no_permission  TYPE SXPGCOLIST, "   
lv_termcntl  TYPE BTCXPGSTIM-TERMCNTL, "   
lv_illegal_command  TYPE BTCXPGSTIM, "   
lv_long_params  TYPE CHAR1024, "   
lv_xpgid  TYPE BTCXPGSTEX-XPGID, "   
lv_command_not_found  TYPE BTCXPGSTEX, "   
lv_additional_parameters  TYPE SXPGCOLIST-PARAMETERS, "   
lv_convid  TYPE GWY_STRUCT-CONVID, "   
lv_operatingsystem  TYPE SXPGCOLIST-OPSYSTEM, "   SY-OPSYS
lv_parameters_too_long  TYPE SXPGCOLIST, "   
lv_destination  TYPE RFCDES-RFCDEST, "   
lv_security_risk  TYPE RFCDES, "   
lv_targetsystem  TYPE RFCDISPLAY-RFCHOST, "   
lv_wrong_check_call_interface  TYPE RFCDISPLAY, "   
lv_stdincntl  TYPE BTCXPGSTIM-STDINCNTL, "   
lv_program_start_error  TYPE BTCXPGSTIM, "   
lv_x_error  TYPE BTCXPGSTIM, "   
lv_stdoutcntl  TYPE BTCXPGSTIM-STDOUTCNTL, "   
lv_stderrcntl  TYPE BTCXPGSTIM-STDERRCNTL, "   
lv_parameter_expected  TYPE BTCXPGSTIM, "   
lv_tracecntl  TYPE BTCXPGSTIM-TRACECNTL, "   
lv_too_many_parameters  TYPE BTCXPGSTIM. "   

  CALL FUNCTION 'SXPG_COMMAND_START_INT_LONG'  "
    EXPORTING
         COMMANDNAME = lv_commandname
         TERMCNTL = lv_termcntl
         LONG_PARAMS = lv_long_params
         ADDITIONAL_PARAMETERS = lv_additional_parameters
         OPERATINGSYSTEM = lv_operatingsystem
         DESTINATION = lv_destination
         TARGETSYSTEM = lv_targetsystem
         STDINCNTL = lv_stdincntl
         STDOUTCNTL = lv_stdoutcntl
         STDERRCNTL = lv_stderrcntl
         TRACECNTL = lv_tracecntl
    IMPORTING
         STRTSTAT = lv_strtstat
         XPGID = lv_xpgid
         CONVID = lv_convid
    TABLES
         LOG = lt_log
    EXCEPTIONS
        NO_PERMISSION = 1
        ILLEGAL_COMMAND = 10
        COMMAND_NOT_FOUND = 2
        PARAMETERS_TOO_LONG = 3
        SECURITY_RISK = 4
        WRONG_CHECK_CALL_INTERFACE = 5
        PROGRAM_START_ERROR = 6
        X_ERROR = 7
        PARAMETER_EXPECTED = 8
        TOO_MANY_PARAMETERS = 9
. " SXPG_COMMAND_START_INT_LONG




ABAP code using 7.40 inline data declarations to call FM SXPG_COMMAND_START_INT_LONG

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single STRTSTAT FROM BTCXPGSTEX INTO @DATA(ld_strtstat).
 
"SELECT single NAME FROM SXPGCOLIST INTO @DATA(ld_commandname).
 
 
"SELECT single TERMCNTL FROM BTCXPGSTIM INTO @DATA(ld_termcntl).
 
 
 
"SELECT single XPGID FROM BTCXPGSTEX INTO @DATA(ld_xpgid).
 
 
"SELECT single PARAMETERS FROM SXPGCOLIST INTO @DATA(ld_additional_parameters).
 
"SELECT single CONVID FROM GWY_STRUCT INTO @DATA(ld_convid).
 
"SELECT single OPSYSTEM FROM SXPGCOLIST INTO @DATA(ld_operatingsystem).
DATA(ld_operatingsystem) = SY-OPSYS.
 
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination).
 
 
"SELECT single RFCHOST FROM RFCDISPLAY INTO @DATA(ld_targetsystem).
 
 
"SELECT single STDINCNTL FROM BTCXPGSTIM INTO @DATA(ld_stdincntl).
 
 
 
"SELECT single STDOUTCNTL FROM BTCXPGSTIM INTO @DATA(ld_stdoutcntl).
 
"SELECT single STDERRCNTL FROM BTCXPGSTIM INTO @DATA(ld_stderrcntl).
 
 
"SELECT single TRACECNTL FROM BTCXPGSTIM INTO @DATA(ld_tracecntl).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!