SAP SU2X_TRANSPORT_OBJECT Function Module for









SU2X_TRANSPORT_OBJECT is a standard su2x transport object 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 su2x transport object FM, simply by entering the name SU2X_TRANSPORT_OBJECT into the relevant SAP transaction such as SE37 or SE38.

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



Function SU2X_TRANSPORT_OBJECT 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 'SU2X_TRANSPORT_OBJECT'"
EXPORTING
I_NAME = "
I_TYPE = "
* I_TR_CHECK = 'X' "
* I_TR_INSERT = 'X' "
* I_DATA_FLAG = 'S' "
* ID_CHK_DELE = "

IMPORTING
E_ORDER = "
E_TASK = "

EXCEPTIONS
PARAMETER_ERROR = 1 CANCEL_EDIT = 2 SHOW_ONLY = 3 CHECK_ERROR = 4
.



IMPORTING Parameters details for SU2X_TRANSPORT_OBJECT

I_NAME -

Data type: USOBX-NAME
Optional: No
Call by Reference: Yes

I_TYPE -

Data type: USOBX-TYPE
Optional: No
Call by Reference: Yes

I_TR_CHECK -

Data type: CHAR01
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_TR_INSERT -

Data type: CHAR01
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_DATA_FLAG -

Data type: CHAR01
Default: 'S'
Optional: Yes
Call by Reference: Yes

ID_CHK_DELE -

Data type: BOOLE_D
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SU2X_TRANSPORT_OBJECT

E_ORDER -

Data type: E070-TRKORR
Optional: No
Call by Reference: Yes

E_TASK -

Data type: E070-TRKORR
Optional: No
Call by Reference: Yes

EXCEPTIONS details

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

CANCEL_EDIT -

Data type:
Optional: No
Call by Reference: Yes

SHOW_ONLY -

Data type:
Optional: No
Call by Reference: Yes

CHECK_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SU2X_TRANSPORT_OBJECT 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:
lv_i_name  TYPE USOBX-NAME, "   
lv_e_order  TYPE E070-TRKORR, "   
lv_parameter_error  TYPE E070, "   
lv_e_task  TYPE E070-TRKORR, "   
lv_i_type  TYPE USOBX-TYPE, "   
lv_cancel_edit  TYPE USOBX, "   
lv_show_only  TYPE USOBX, "   
lv_i_tr_check  TYPE CHAR01, "   'X'
lv_check_error  TYPE CHAR01, "   
lv_i_tr_insert  TYPE CHAR01, "   'X'
lv_i_data_flag  TYPE CHAR01, "   'S'
lv_id_chk_dele  TYPE BOOLE_D. "   

  CALL FUNCTION 'SU2X_TRANSPORT_OBJECT'  "
    EXPORTING
         I_NAME = lv_i_name
         I_TYPE = lv_i_type
         I_TR_CHECK = lv_i_tr_check
         I_TR_INSERT = lv_i_tr_insert
         I_DATA_FLAG = lv_i_data_flag
         ID_CHK_DELE = lv_id_chk_dele
    IMPORTING
         E_ORDER = lv_e_order
         E_TASK = lv_e_task
    EXCEPTIONS
        PARAMETER_ERROR = 1
        CANCEL_EDIT = 2
        SHOW_ONLY = 3
        CHECK_ERROR = 4
. " SU2X_TRANSPORT_OBJECT




ABAP code using 7.40 inline data declarations to call FM SU2X_TRANSPORT_OBJECT

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 NAME FROM USOBX INTO @DATA(ld_i_name).
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_e_order).
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_e_task).
 
"SELECT single TYPE FROM USOBX INTO @DATA(ld_i_type).
 
 
 
DATA(ld_i_tr_check) = 'X'.
 
 
DATA(ld_i_tr_insert) = 'X'.
 
DATA(ld_i_data_flag) = 'S'.
 
 


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!