SAP DISPLAY_SET Function Module for Displays Set Hierarchy in a Dialog Window or as Full Screen
DISPLAY_SET is a standard display set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Displays Set Hierarchy in a Dialog Window or as Full Screen 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 display set FM, simply by entering the name DISPLAY_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RGSD
Program Name: SAPLRGSD
Main Program:
Appliation area:
Release date: 01-Jan-1970
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DISPLAY_SET 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 'DISPLAY_SET'"Displays Set Hierarchy in a Dialog Window or as Full Screen.
EXPORTING
* CLASS = ' ' "Obsolete, use ID in parameter SETNAME!
* INDEX = 0 "Index of Set in Set Buffer
* REFRESH_BUFFER = ' ' "'X': Delete Buffer of Set Manager before Reading
* ECOLUMN = '87' "Final Column of the Window
* EROW = '18' "Final Line of the Window
* MODE = 'W' "Screen Mode (W=Window,F=Full Screen)
* SCOLUMN = '02' "Start Column of the Window
* SETNAME = ' ' "Set ID
* SREPORT = '0' "Obsolete, do not use
* SROW = '2' "Start Line of the Window
* TABLE = ' ' "Obsolete, use ID in parameter SETNAME!
IMPORTING Parameters details for DISPLAY_SET
CLASS - Obsolete, use ID in parameter SETNAME!
Data type: RGSBS-CLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDEX - Index of Set in Set Buffer
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
REFRESH_BUFFER - 'X': Delete Buffer of Set Manager before Reading
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ECOLUMN - Final Column of the Window
Data type: NDefault: '87'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EROW - Final Line of the Window
Data type: NDefault: '18'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE - Screen Mode (W=Window,F=Full Screen)
Data type: CDefault: 'W'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCOLUMN - Start Column of the Window
Data type: NDefault: '02'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SETNAME - Set ID
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SREPORT - Obsolete, do not use
Data type: NDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SROW - Start Line of the Window
Data type: NDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE - Obsolete, use ID in parameter SETNAME!
Data type: TABNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DISPLAY_SET 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_class | TYPE RGSBS-CLASS, " SPACE | |||
| lv_index | TYPE SY-TABIX, " 0 | |||
| lv_refresh_buffer | TYPE SY-DATAR, " SPACE | |||
| lv_ecolumn | TYPE N, " '87' | |||
| lv_erow | TYPE N, " '18' | |||
| lv_mode | TYPE C, " 'W' | |||
| lv_scolumn | TYPE N, " '02' | |||
| lv_setname | TYPE C, " SPACE | |||
| lv_sreport | TYPE N, " '0' | |||
| lv_srow | TYPE N, " '2' | |||
| lv_table | TYPE TABNAME. " SPACE |
|   CALL FUNCTION 'DISPLAY_SET' "Displays Set Hierarchy in a Dialog Window or as Full Screen |
| EXPORTING | ||
| CLASS | = lv_class | |
| INDEX | = lv_index | |
| REFRESH_BUFFER | = lv_refresh_buffer | |
| ECOLUMN | = lv_ecolumn | |
| EROW | = lv_erow | |
| MODE | = lv_mode | |
| SCOLUMN | = lv_scolumn | |
| SETNAME | = lv_setname | |
| SREPORT | = lv_sreport | |
| SROW | = lv_srow | |
| TABLE | = lv_table | |
| . " DISPLAY_SET | ||
ABAP code using 7.40 inline data declarations to call FM DISPLAY_SET
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 CLASS FROM RGSBS INTO @DATA(ld_class). | ||||
| DATA(ld_class) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_index). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_refresh_buffer). | ||||
| DATA(ld_refresh_buffer) | = ' '. | |||
| DATA(ld_ecolumn) | = '87'. | |||
| DATA(ld_erow) | = '18'. | |||
| DATA(ld_mode) | = 'W'. | |||
| DATA(ld_scolumn) | = '02'. | |||
| DATA(ld_setname) | = ' '. | |||
| DATA(ld_sreport) | = '0'. | |||
| DATA(ld_srow) | = '2'. | |||
| DATA(ld_table) | = ' '. | |||
Search for further information about these or an SAP related objects