SAP TRINT_DISPLAY_REQUESTS Function Module for @10@ Display tasks and requests in a hierarchical list









TRINT_DISPLAY_REQUESTS is a standard trint display requests SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for @10@ Display tasks and requests in a hierarchical list 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 trint display requests FM, simply by entering the name TRINT_DISPLAY_REQUESTS into the relevant SAP transaction such as SE37 or SE38.

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



Function TRINT_DISPLAY_REQUESTS 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_DISPLAY_REQUESTS'"@10@ Display tasks and requests in a hierarchical list
EXPORTING
* IV_TITLE = "Title of window
* IV_FORM_TOP_OF_PAGE = ' ' "
* IV_TARGET_REQUEST = ' ' "Target request (merge object lists)
* IV_FIRST_NODE_TEXT = "Text of uppermost node (72 characters)
* IV_MARK_DEFAULT_REQUEST = ' ' "'X': Highlight standard requests in color
* IV_CUA_STATUS = 'TDR_FULL' "STRH GUI status to be selected
* IS_NEW_REQUEST_PROPS = "Restriction for requests that can be created new
* IS_POPUP = "Coordinates of the dialog box; fullscreen if empty
IT_REQUESTS = "Deeply structured table of requests
* IT_SPECIAL_REQUESTS = "
* IV_PROG_TOP_OF_PAGE = ' ' "ABAP Program: Current Main Program

IMPORTING
EV_REFRESH = "If 'X', select again
EV_SWITCH_TO_REQUEST = "Individual display only: New request
ES_SELECTED_REQUEST = "Request selected by the user
ES_SELECTED_TASK = "Task selected by the user
EV_USER_CANCELLED = "
ET_MERGED_OBJECTS = "
ET_MERGED_KEYS = "
ET_MERGED_KEYS_STR = "

CHANGING
* CS_SORT_DESCRIPTION = "Description of sort logic
* CS_LAYOUT = "
* CV_USERNAME = ' ' "User name (for TR_DISPLAY_REQUESTS only)
.



IMPORTING Parameters details for TRINT_DISPLAY_REQUESTS

IV_TITLE - Title of window

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

IV_FORM_TOP_OF_PAGE -

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

IV_TARGET_REQUEST - Target request (merge object lists)

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

IV_FIRST_NODE_TEXT - Text of uppermost node (72 characters)

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

IV_MARK_DEFAULT_REQUEST - 'X': Highlight standard requests in color

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

IV_CUA_STATUS - STRH GUI status to be selected

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

IS_NEW_REQUEST_PROPS - Restriction for requests that can be created new

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

IS_POPUP - Coordinates of the dialog box; fullscreen if empty

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

IT_REQUESTS - Deeply structured table of requests

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

IT_SPECIAL_REQUESTS -

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

IV_PROG_TOP_OF_PAGE - ABAP Program: Current Main Program

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

EXPORTING Parameters details for TRINT_DISPLAY_REQUESTS

EV_REFRESH - If 'X', select again

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

EV_SWITCH_TO_REQUEST - Individual display only: New request

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

ES_SELECTED_REQUEST - Request selected by the user

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

ES_SELECTED_TASK - Task selected by the user

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

EV_USER_CANCELLED -

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

ET_MERGED_OBJECTS -

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

ET_MERGED_KEYS -

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

ET_MERGED_KEYS_STR -

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

CHANGING Parameters details for TRINT_DISPLAY_REQUESTS

CS_SORT_DESCRIPTION - Description of sort logic

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

CS_LAYOUT -

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

CV_USERNAME - User name (for TR_DISPLAY_REQUESTS only)

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

Copy and paste ABAP code example for TRINT_DISPLAY_REQUESTS 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_iv_title  TYPE TRWBO_TITLE, "   
lv_ev_refresh  TYPE C, "   
lv_cs_sort_description  TYPE STRHI_DR_SORT, "   
lv_iv_form_top_of_page  TYPE C, "   ' '
lv_iv_target_request  TYPE E070-TRKORR, "   ' '
lv_cs_layout  TYPE STRHI_REFRESH_PARAMETERS, "   
lv_iv_first_node_text  TYPE STRHI_FIRST_NODE_TEXT, "   
lv_ev_switch_to_request  TYPE TRWBO_REQUEST_HEADER-TRKORR, "   
lv_cv_username  TYPE SY-UNAME, "   ' '
lv_es_selected_request  TYPE TRWBO_REQUEST_HEADER, "   
lv_iv_mark_default_request  TYPE C, "   ' '
lv_iv_cua_status  TYPE STRHI_CUA_STATUS, "   'TDR_FULL'
lv_es_selected_task  TYPE TRWBO_REQUEST_HEADER, "   
lv_ev_user_cancelled  TYPE C, "   
lv_is_new_request_props  TYPE TRWBO_NEW_REQ_PROPS, "   
lv_is_popup  TYPE STRHI_POPUP, "   
lv_et_merged_objects  TYPE TR_OBJECTS, "   
lv_it_requests  TYPE STRHI_REQUESTS_WD, "   
lv_et_merged_keys  TYPE TR_KEYS, "   
lv_et_merged_keys_str  TYPE E071K_STRTYP, "   
lv_it_special_requests  TYPE STRHI_SPECIAL_REQUESTS, "   
lv_iv_prog_top_of_page  TYPE SY-REPID. "   ' '

  CALL FUNCTION 'TRINT_DISPLAY_REQUESTS'  "@10@ Display tasks and requests in a hierarchical list
    EXPORTING
         IV_TITLE = lv_iv_title
         IV_FORM_TOP_OF_PAGE = lv_iv_form_top_of_page
         IV_TARGET_REQUEST = lv_iv_target_request
         IV_FIRST_NODE_TEXT = lv_iv_first_node_text
         IV_MARK_DEFAULT_REQUEST = lv_iv_mark_default_request
         IV_CUA_STATUS = lv_iv_cua_status
         IS_NEW_REQUEST_PROPS = lv_is_new_request_props
         IS_POPUP = lv_is_popup
         IT_REQUESTS = lv_it_requests
         IT_SPECIAL_REQUESTS = lv_it_special_requests
         IV_PROG_TOP_OF_PAGE = lv_iv_prog_top_of_page
    IMPORTING
         EV_REFRESH = lv_ev_refresh
         EV_SWITCH_TO_REQUEST = lv_ev_switch_to_request
         ES_SELECTED_REQUEST = lv_es_selected_request
         ES_SELECTED_TASK = lv_es_selected_task
         EV_USER_CANCELLED = lv_ev_user_cancelled
         ET_MERGED_OBJECTS = lv_et_merged_objects
         ET_MERGED_KEYS = lv_et_merged_keys
         ET_MERGED_KEYS_STR = lv_et_merged_keys_str
    CHANGING
         CS_SORT_DESCRIPTION = lv_cs_sort_description
         CS_LAYOUT = lv_cs_layout
         CV_USERNAME = lv_cv_username
. " TRINT_DISPLAY_REQUESTS




ABAP code using 7.40 inline data declarations to call FM TRINT_DISPLAY_REQUESTS

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.

 
 
 
DATA(ld_iv_form_top_of_page) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_target_request).
DATA(ld_iv_target_request) = ' '.
 
 
 
"SELECT single TRKORR FROM TRWBO_REQUEST_HEADER INTO @DATA(ld_ev_switch_to_request).
 
"SELECT single UNAME FROM SY INTO @DATA(ld_cv_username).
DATA(ld_cv_username) = ' '.
 
 
DATA(ld_iv_mark_default_request) = ' '.
 
DATA(ld_iv_cua_status) = 'TDR_FULL'.
 
 
 
 
 
 
 
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_iv_prog_top_of_page).
DATA(ld_iv_prog_top_of_page) = ' '.
 


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!