SAP TR_OBJECTS_CHECK Function Module for Transport Organizer: External interface for checking objects and keys
TR_OBJECTS_CHECK is a standard tr objects check 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 checking 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 check FM, simply by entering the name TR_OBJECTS_CHECK 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_CHECK 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_CHECK'"Transport Organizer: External interface for checking objects and keys.
EXPORTING
* 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) table key with string
* IT_OBJ_ENTRIES = "Entries for transport objects with keys in CTS
IMPORTING
WE_ORDER = "Selected request (transport request)
WE_TASK = "Selected request (correction/repair)
WE_OBJECTS_APPENDABLE = "'X': TR_OBJECTS_INSERT can include objects
TABLES
WT_KO200 = "Input table for objects to be edited
* WT_E071K = "Input table for object keys to be edited
* 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_CHECK
IV_NO_STANDARD_EDITOR - General Indicator
Data type: TRPARI-FLAGDefault: ' '
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-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_EXTERNALPS -
Data type: CTSPROJECT-EXTERNALPSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_EXTERNALID -
Data type: CTSPROJECT-EXTERNALIDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NO_PS - General Indicator
Data type: TRPARI-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_E071K_STR - (Obsolete - Use IT_OBJ_ENTRIES) table key with string
Data type: E071K_STRTYPOptional: 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_ENTRIESOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TR_OBJECTS_CHECK
WE_ORDER - Selected request (transport request)
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
WE_TASK - Selected request (correction/repair)
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
WE_OBJECTS_APPENDABLE - 'X': TR_OBJECTS_INSERT can include objects
Data type: TRPARI-S_CHECKEDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TR_OBJECTS_CHECK
WT_KO200 - Input table for objects to be edited
Data type: KO200Optional: No
Call by Reference: No ( called with pass by value option)
WT_E071K - Input table for object keys to be edited
Data type: E071KOptional: Yes
Call by Reference: No ( called with pass by value option)
TT_TADIR - Output Table for Object Directory Entries
Data type: TADIROptional: 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_CHECK 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, " | |||
| lt_wt_ko200 | TYPE STANDARD TABLE OF KO200, " | |||
| lv_iv_no_standard_editor | TYPE TRPARI-FLAG, " ' ' | |||
| lv_cancel_edit_other_error | TYPE TRPARI, " | |||
| lv_we_task | TYPE E070-TRKORR, " | |||
| lt_wt_e071k | TYPE STANDARD TABLE OF E071K, " | |||
| lv_iv_no_show_option | TYPE TRPARI-FLAG, " ' ' | |||
| lv_show_only_other_error | TYPE TRPARI, " | |||
| lt_tt_tadir | TYPE STANDARD TABLE OF TADIR, " | |||
| lv_iv_externalps | TYPE CTSPROJECT-EXTERNALPS, " ' ' | |||
| lv_we_objects_appendable | TYPE TRPARI-S_CHECKED, " | |||
| 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_CHECK' "Transport Organizer: External interface for checking objects and keys |
| EXPORTING | ||
| 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 | |
| WE_OBJECTS_APPENDABLE | = lv_we_objects_appendable | |
| 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_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM TR_OBJECTS_CHECK
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 FLAG FROM TRPARI INTO @DATA(ld_iv_no_standard_editor). | ||||
| DATA(ld_iv_no_standard_editor) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_we_task). | ||||
| "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 S_CHECKED FROM TRPARI INTO @DATA(ld_we_objects_appendable). | ||||
| "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