SAP TRINT_SELECT_OBJECTS Function Module for









TRINT_SELECT_OBJECTS is a standard trint select objects 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 trint select objects FM, simply by entering the name TRINT_SELECT_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

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



Function TRINT_SELECT_OBJECTS 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 'TRINT_SELECT_OBJECTS'"
EXPORTING
* IV_SRCSYSTEM = "Original System
* IV_DEVCLASS = "Package
* IV_ONLY_EXISTING_OBJECTS = 'X' "
* IV_SRCSYSTEM_VISIBLE = 'X' "
* IV_DEVCLASS_VISIBLE = 'X' "
* IV_TITLE = "
* IV_VIA_SELSCREEN = 'X' "

IMPORTING
ET_OBJECTS = "Objects
ET_OBJECTS_TADIR = "
EV_NUMBER_OF_OBJECTS = "Number of objects selected

EXCEPTIONS
CANCELLED_BY_USER = 1 INVALID_INPUT = 2
.



IMPORTING Parameters details for TRINT_SELECT_OBJECTS

IV_SRCSYSTEM - Original System

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

IV_DEVCLASS - Package

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

IV_ONLY_EXISTING_OBJECTS -

Data type: TRBOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SRCSYSTEM_VISIBLE -

Data type: TRBOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DEVCLASS_VISIBLE -

Data type: TRBOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TITLE -

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

IV_VIA_SELSCREEN -

Data type: TRBOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TRINT_SELECT_OBJECTS

ET_OBJECTS - Objects

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

ET_OBJECTS_TADIR -

Data type: SCTS_TADIR
Optional: No
Call by Reference: Yes

EV_NUMBER_OF_OBJECTS - Number of objects selected

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

EXCEPTIONS details

CANCELLED_BY_USER - Cancellation by user

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

INVALID_INPUT -

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

Copy and paste ABAP code example for TRINT_SELECT_OBJECTS 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_et_objects  TYPE STRWB_OBJECTS, "   
lv_iv_srcsystem  TYPE TADIR-SRCSYSTEM, "   
lv_cancelled_by_user  TYPE TADIR, "   
lv_iv_devclass  TYPE TADIR-DEVCLASS, "   
lv_invalid_input  TYPE TADIR, "   
lv_et_objects_tadir  TYPE SCTS_TADIR, "   
lv_ev_number_of_objects  TYPE I, "   
lv_iv_only_existing_objects  TYPE TRBOOLEAN, "   'X'
lv_iv_srcsystem_visible  TYPE TRBOOLEAN, "   'X'
lv_iv_devclass_visible  TYPE TRBOOLEAN, "   'X'
lv_iv_title  TYPE RSEU1-TIT_TEXT, "   
lv_iv_via_selscreen  TYPE TRBOOLEAN. "   'X'

  CALL FUNCTION 'TRINT_SELECT_OBJECTS'  "
    EXPORTING
         IV_SRCSYSTEM = lv_iv_srcsystem
         IV_DEVCLASS = lv_iv_devclass
         IV_ONLY_EXISTING_OBJECTS = lv_iv_only_existing_objects
         IV_SRCSYSTEM_VISIBLE = lv_iv_srcsystem_visible
         IV_DEVCLASS_VISIBLE = lv_iv_devclass_visible
         IV_TITLE = lv_iv_title
         IV_VIA_SELSCREEN = lv_iv_via_selscreen
    IMPORTING
         ET_OBJECTS = lv_et_objects
         ET_OBJECTS_TADIR = lv_et_objects_tadir
         EV_NUMBER_OF_OBJECTS = lv_ev_number_of_objects
    EXCEPTIONS
        CANCELLED_BY_USER = 1
        INVALID_INPUT = 2
. " TRINT_SELECT_OBJECTS




ABAP code using 7.40 inline data declarations to call FM TRINT_SELECT_OBJECTS

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 SRCSYSTEM FROM TADIR INTO @DATA(ld_iv_srcsystem).
 
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_iv_devclass).
 
 
 
 
DATA(ld_iv_only_existing_objects) = 'X'.
 
DATA(ld_iv_srcsystem_visible) = 'X'.
 
DATA(ld_iv_devclass_visible) = 'X'.
 
"SELECT single TIT_TEXT FROM RSEU1 INTO @DATA(ld_iv_title).
 
DATA(ld_iv_via_selscreen) = 'X'.
 


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!