SAP TR_OBJECTS_INSERT Function Module for Transport Organizer: External interface for inserting objects and keys









TR_OBJECTS_INSERT is a standard tr objects insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transport Organizer: External interface for inserting objects and keys processing and below is the pattern details for this FM, 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 tr objects insert FM, simply by entering the name TR_OBJECTS_INSERT into the relevant SAP transaction such as SE37 or SE38.

Function Group: STRD
Program Name: SAPLSTRD
Main Program: SAPLSTRD
Appliation area: S
Release date: 08-Oct-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TR_OBJECTS_INSERT 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 'TR_OBJECTS_INSERT'"Transport Organizer: External interface for inserting objects and keys
EXPORTING
* WI_ORDER = ' ' "Default request (priority before request search)
* IV_NO_STANDARD_EDITOR = ' ' "General Indicator
* IV_NO_SHOW_OPTION = ' ' "No 'display' on error dialog box
* IV_EXTERNALPS = ' ' "
* IV_EXTERNALID = ' ' "
* IV_NO_PS = ' ' "General Indicator
* IT_E071K_STR = "(Obsolete - use IT_OBJ_ENTRIES verwenden) table key with string field
* IT_OBJ_ENTRIES = "Entries for transport objects with keys in CTS

IMPORTING
WE_ORDER = "Selected request (transport request)
WE_TASK = "Selected request (correction/repair)

TABLES
WT_KO200 = "Input table of edited objects
* WT_E071K = "Input table of edited object keys
* TT_TADIR = "Output Table for Object Directory Entries

EXCEPTIONS
CANCEL_EDIT_OTHER_ERROR = 1 SHOW_ONLY_OTHER_ERROR = 2
.



IMPORTING Parameters details for TR_OBJECTS_INSERT

WI_ORDER - Default request (priority before request search)

Data type: E070-TRKORR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_STANDARD_EDITOR - General Indicator

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_SHOW_OPTION - No 'display' on error dialog box

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_EXTERNALPS -

Data type: CTSPROJECT-EXTERNALPS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_EXTERNALID -

Data type: CTSPROJECT-EXTERNALID
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_PS - General Indicator

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_E071K_STR - (Obsolete - use IT_OBJ_ENTRIES verwenden) table key with string field

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

IT_OBJ_ENTRIES - Entries for transport objects with keys in CTS

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

EXPORTING Parameters details for TR_OBJECTS_INSERT

WE_ORDER - Selected request (transport request)

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

WE_TASK - Selected request (correction/repair)

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

TABLES Parameters details for TR_OBJECTS_INSERT

WT_KO200 - Input table of edited objects

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

WT_E071K - Input table of edited object keys

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

TT_TADIR - Output Table for Object Directory Entries

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

EXCEPTIONS details

CANCEL_EDIT_OTHER_ERROR - Cancel

Data type:
Optional: No
Call by Reference: Yes

SHOW_ONLY_OTHER_ERROR - Cancel, user wants to go to display mode

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TR_OBJECTS_INSERT 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_we_order  TYPE E070-TRKORR, "   
lv_wi_order  TYPE E070-TRKORR, "   ' '
lt_wt_ko200  TYPE STANDARD TABLE OF KO200, "   
lv_cancel_edit_other_error  TYPE KO200, "   
lv_we_task  TYPE E070-TRKORR, "   
lt_wt_e071k  TYPE STANDARD TABLE OF E071K, "   
lv_iv_no_standard_editor  TYPE TRPARI-FLAG, "   ' '
lv_show_only_other_error  TYPE TRPARI, "   
lt_tt_tadir  TYPE STANDARD TABLE OF TADIR, "   
lv_iv_no_show_option  TYPE TRPARI-FLAG, "   ' '
lv_iv_externalps  TYPE CTSPROJECT-EXTERNALPS, "   ' '
lv_iv_externalid  TYPE CTSPROJECT-EXTERNALID, "   ' '
lv_iv_no_ps  TYPE TRPARI-FLAG, "   ' '
lv_it_e071k_str  TYPE E071K_STRTYP, "   
lv_it_obj_entries  TYPE CTS_OBJ_ENTRIES. "   

  CALL FUNCTION 'TR_OBJECTS_INSERT'  "Transport Organizer: External interface for inserting objects and keys
    EXPORTING
         WI_ORDER = lv_wi_order
         IV_NO_STANDARD_EDITOR = lv_iv_no_standard_editor
         IV_NO_SHOW_OPTION = lv_iv_no_show_option
         IV_EXTERNALPS = lv_iv_externalps
         IV_EXTERNALID = lv_iv_externalid
         IV_NO_PS = lv_iv_no_ps
         IT_E071K_STR = lv_it_e071k_str
         IT_OBJ_ENTRIES = lv_it_obj_entries
    IMPORTING
         WE_ORDER = lv_we_order
         WE_TASK = lv_we_task
    TABLES
         WT_KO200 = lt_wt_ko200
         WT_E071K = lt_wt_e071k
         TT_TADIR = lt_tt_tadir
    EXCEPTIONS
        CANCEL_EDIT_OTHER_ERROR = 1
        SHOW_ONLY_OTHER_ERROR = 2
. " TR_OBJECTS_INSERT




ABAP code using 7.40 inline data declarations to call FM TR_OBJECTS_INSERT

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 TRKORR FROM E070 INTO @DATA(ld_we_order).
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_wi_order).
DATA(ld_wi_order) = ' '.
 
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_we_task).
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_no_standard_editor).
DATA(ld_iv_no_standard_editor) = ' '.
 
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_no_show_option).
DATA(ld_iv_no_show_option) = ' '.
 
"SELECT single EXTERNALPS FROM CTSPROJECT INTO @DATA(ld_iv_externalps).
DATA(ld_iv_externalps) = ' '.
 
"SELECT single EXTERNALID FROM CTSPROJECT INTO @DATA(ld_iv_externalid).
DATA(ld_iv_externalid) = ' '.
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_no_ps).
DATA(ld_iv_no_ps) = ' '.
 
 
 


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!