SAP G_DISPLAY_SELECTION_LIST Function Module for









G_DISPLAY_SELECTION_LIST is a standard g display selection list 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 g display selection list FM, simply by entering the name G_DISPLAY_SELECTION_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function G_DISPLAY_SELECTION_LIST 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 'G_DISPLAY_SELECTION_LIST'"
EXPORTING
* ALLOW_PRINT = ' ' "
* SHOW_ALSO_1 = ' ' "
* START_COLUMN = 0 "
* START_ROW = 3 "
* WIDTH_OF_TITLES = ' ' "
* WITHOUT_SELECTION = ' ' "
* MULTIPLE_SELECTION = ' ' "
* ALLOW_SORT = 'X' "
DYNP_TITLE = "
* EXTENDED_DISPLAY = ' ' "
* FIRST_INDEX = 1 "
* KEY_COLUMNS = 0 "
* NUMBER_OF_ROWS = 8 "
* SEL_DEFAULT = 0 "
* SEL_TITLE1 = ' ' "
* SEL_TITLE2 = ' ' "

IMPORTING
FIRST_INDEX = "
SEL_INDEX = "
EXT_DISPLAY_SELECTED = "

TABLES
SEL_TABLE = "
* SEL_LINES = "

EXCEPTIONS
NO_LINES = 1 NO_LINE_PICKED = 2 INVALID_PARAMETERS = 3
.



IMPORTING Parameters details for G_DISPLAY_SELECTION_LIST

ALLOW_PRINT -

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

SHOW_ALSO_1 -

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

START_COLUMN -

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

START_ROW -

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

WIDTH_OF_TITLES -

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

WITHOUT_SELECTION -

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

MULTIPLE_SELECTION -

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

ALLOW_SORT -

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

DYNP_TITLE -

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

EXTENDED_DISPLAY -

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

FIRST_INDEX -

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

KEY_COLUMNS -

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

NUMBER_OF_ROWS -

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

SEL_DEFAULT -

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

SEL_TITLE1 -

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

SEL_TITLE2 -

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

EXPORTING Parameters details for G_DISPLAY_SELECTION_LIST

FIRST_INDEX -

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

SEL_INDEX -

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

EXT_DISPLAY_SELECTED -

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

TABLES Parameters details for G_DISPLAY_SELECTION_LIST

SEL_TABLE -

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

SEL_LINES -

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

EXCEPTIONS details

NO_LINES -

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

NO_LINE_PICKED -

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

INVALID_PARAMETERS -

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

Copy and paste ABAP code example for G_DISPLAY_SELECTION_LIST 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_no_lines  TYPE STRING, "   
lt_sel_table  TYPE STANDARD TABLE OF STRING, "   
lv_allow_print  TYPE STRING, "   ' '
lv_first_index  TYPE SY-TABIX, "   
lv_show_also_1  TYPE SY, "   ' '
lv_start_column  TYPE SY, "   0
lv_start_row  TYPE SY, "   3
lv_width_of_titles  TYPE SY, "   ' '
lv_without_selection  TYPE SY, "   ' '
lv_multiple_selection  TYPE SY, "   ' '
lv_allow_sort  TYPE SY, "   'X'
lv_sel_index  TYPE SY-TABIX, "   
lt_sel_lines  TYPE STANDARD TABLE OF RGSEL_LINE, "   
lv_dynp_title  TYPE RGSEL-DYNP_TITLE, "   
lv_no_line_picked  TYPE RGSEL, "   
lv_extended_display  TYPE RGSEL, "   ' '
lv_invalid_parameters  TYPE RGSEL, "   
lv_ext_display_selected  TYPE RGSEL, "   
lv_first_index  TYPE SY-TABIX, "   1
lv_key_columns  TYPE SY, "   0
lv_number_of_rows  TYPE SY-TABIX, "   8
lv_sel_default  TYPE SY, "   0
lv_sel_title1  TYPE SY, "   ' '
lv_sel_title2  TYPE SY. "   ' '

  CALL FUNCTION 'G_DISPLAY_SELECTION_LIST'  "
    EXPORTING
         ALLOW_PRINT = lv_allow_print
         SHOW_ALSO_1 = lv_show_also_1
         START_COLUMN = lv_start_column
         START_ROW = lv_start_row
         WIDTH_OF_TITLES = lv_width_of_titles
         WITHOUT_SELECTION = lv_without_selection
         MULTIPLE_SELECTION = lv_multiple_selection
         ALLOW_SORT = lv_allow_sort
         DYNP_TITLE = lv_dynp_title
         EXTENDED_DISPLAY = lv_extended_display
         FIRST_INDEX = lv_first_index
         KEY_COLUMNS = lv_key_columns
         NUMBER_OF_ROWS = lv_number_of_rows
         SEL_DEFAULT = lv_sel_default
         SEL_TITLE1 = lv_sel_title1
         SEL_TITLE2 = lv_sel_title2
    IMPORTING
         FIRST_INDEX = lv_first_index
         SEL_INDEX = lv_sel_index
         EXT_DISPLAY_SELECTED = lv_ext_display_selected
    TABLES
         SEL_TABLE = lt_sel_table
         SEL_LINES = lt_sel_lines
    EXCEPTIONS
        NO_LINES = 1
        NO_LINE_PICKED = 2
        INVALID_PARAMETERS = 3
. " G_DISPLAY_SELECTION_LIST




ABAP code using 7.40 inline data declarations to call FM G_DISPLAY_SELECTION_LIST

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_allow_print) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_first_index).
 
DATA(ld_show_also_1) = ' '.
 
 
DATA(ld_start_row) = 3.
 
DATA(ld_width_of_titles) = ' '.
 
DATA(ld_without_selection) = ' '.
 
DATA(ld_multiple_selection) = ' '.
 
DATA(ld_allow_sort) = 'X'.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_sel_index).
 
 
"SELECT single DYNP_TITLE FROM RGSEL INTO @DATA(ld_dynp_title).
 
 
DATA(ld_extended_display) = ' '.
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_first_index).
DATA(ld_first_index) = 1.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_number_of_rows).
DATA(ld_number_of_rows) = 8.
 
 
DATA(ld_sel_title1) = ' '.
 
DATA(ld_sel_title2) = ' '.
 


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!