SAP TR_DISPLAY_REQUESTS Function Module for Display Fixed Set of Requests
TR_DISPLAY_REQUESTS is a standard tr 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 Display Fixed Set of Requests 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 display requests FM, simply by entering the name TR_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 TR_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 'TR_DISPLAY_REQUESTS'"Display Fixed Set of Requests.
EXPORTING
* IV_TITLE = TEXT-AA2 "Title of window
* IV_FIRST_NODE_TEXT = TEXT-C00 "Text of uppermost node (72 characters)
IT_REQUEST_NUMBERS = "Deeply structured table of requests
* IV_PROG_TOP_OF_PAGE = ' ' "Main program for own TOP-OF-PAGE
* IV_FORM_TOP_OF_PAGE = ' ' "Form routine for own TOP-OF-PAGE
* IV_COMPLETE_REQUESTS = 'X' "
* IV_CUA_STATUS = "
CHANGING
* CS_SORT_DESCRIPTION = "Description of sort logic
IMPORTING Parameters details for TR_DISPLAY_REQUESTS
IV_TITLE - Title of window
Data type: TRWBO_TITLEDefault: TEXT-AA2
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_TEXTDefault: TEXT-C00
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_REQUEST_NUMBERS - Deeply structured table of requests
Data type: CTS_TRKORRSOptional: No
Call by Reference: No ( called with pass by value option)
IV_PROG_TOP_OF_PAGE - Main program for own TOP-OF-PAGE
Data type: SY-REPIDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_FORM_TOP_OF_PAGE - Form routine for own TOP-OF-PAGE
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMPLETE_REQUESTS -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CUA_STATUS -
Data type: STRHI_CUA_STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for TR_DISPLAY_REQUESTS
CS_SORT_DESCRIPTION - Description of sort logic
Data type: STRHI_DR_SORTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TR_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, " TEXT-AA2 | |||
| lv_cs_sort_description | TYPE STRHI_DR_SORT, " | |||
| lv_iv_first_node_text | TYPE STRHI_FIRST_NODE_TEXT, " TEXT-C00 | |||
| lv_it_request_numbers | TYPE CTS_TRKORRS, " | |||
| lv_iv_prog_top_of_page | TYPE SY-REPID, " ' ' | |||
| lv_iv_form_top_of_page | TYPE C, " ' ' | |||
| lv_iv_complete_requests | TYPE C, " 'X' | |||
| lv_iv_cua_status | TYPE STRHI_CUA_STATUS. " |
|   CALL FUNCTION 'TR_DISPLAY_REQUESTS' "Display Fixed Set of Requests |
| EXPORTING | ||
| IV_TITLE | = lv_iv_title | |
| IV_FIRST_NODE_TEXT | = lv_iv_first_node_text | |
| IT_REQUEST_NUMBERS | = lv_it_request_numbers | |
| IV_PROG_TOP_OF_PAGE | = lv_iv_prog_top_of_page | |
| IV_FORM_TOP_OF_PAGE | = lv_iv_form_top_of_page | |
| IV_COMPLETE_REQUESTS | = lv_iv_complete_requests | |
| IV_CUA_STATUS | = lv_iv_cua_status | |
| CHANGING | ||
| CS_SORT_DESCRIPTION | = lv_cs_sort_description | |
| . " TR_DISPLAY_REQUESTS | ||
ABAP code using 7.40 inline data declarations to call FM TR_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_title) | = TEXT-AA2. | |||
| DATA(ld_iv_first_node_text) | = TEXT-C00. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_iv_prog_top_of_page). | ||||
| DATA(ld_iv_prog_top_of_page) | = ' '. | |||
| DATA(ld_iv_form_top_of_page) | = ' '. | |||
| DATA(ld_iv_complete_requests) | = 'X'. | |||
Search for further information about these or an SAP related objects