SAP EFG_SELECTION_LISTX Function Module for
EFG_SELECTION_LISTX is a standard efg selection listx 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 efg selection listx FM, simply by entering the name EFG_SELECTION_LISTX into the relevant SAP transaction such as SE37 or SE38.
Function Group: EFGSELLIST
Program Name: SAPLEFGSELLIST
Main Program: SAPLEFGSELLIST
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EFG_SELECTION_LISTX 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 'EFG_SELECTION_LISTX'".
EXPORTING
* X_TITLE = "
* X_LENGTH_TYPE = 0 "
* X_LENGTH_KEY = 0 "
* X_LENGTH_TEXT = 0 "
* X_STR_HEADER = "
* X_FLG_ALV = 'X' "
* X_RIF_ALV_CALLBACK = "
* X_WIDTH = 0 "
* X_POPUP = 'X' "
* X_SELECT_MODE = 'S' "
* X_HOTSPOT = "
* X_COMMENT1 = "
* X_COMMENT2 = "
* X_COMMENT3 = "
* X_SUPPRESS_TYPE = 'X' "
* X_SUPPRESS_KEY = ' ' "
IMPORTING
Y_SELECTIND = "
Y_STR_SELECTED = "
TABLES
T_SELECTLIST = "
EXCEPTIONS
CANCELLED = 1
IMPORTING Parameters details for EFG_SELECTION_LISTX
X_TITLE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LENGTH_TYPE -
Data type: EFGGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_LENGTH_KEY -
Data type: EFGGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_LENGTH_TEXT -
Data type: EFGGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_STR_HEADER -
Data type: EFGSELLISTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FLG_ALV -
Data type: EFG_DTE_FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RIF_ALV_CALLBACK -
Data type: IF_EFG_SELLIST_ALVOptional: Yes
Call by Reference: No ( called with pass by value option)
X_WIDTH -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
X_POPUP -
Data type: EFGGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SELECT_MODE -
Data type: EFGGEN-SELECTMODEDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_HOTSPOT -
Data type: EFGGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT1 -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT2 -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT3 -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_SUPPRESS_TYPE -
Data type: EFGGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SUPPRESS_KEY -
Data type: EFGGEN-KENNZXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EFG_SELECTION_LISTX
Y_SELECTIND -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
Y_STR_SELECTED -
Data type: EFGSELLISTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EFG_SELECTION_LISTX
T_SELECTLIST -
Data type: EFGSELLISTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EFG_SELECTION_LISTX 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_x_title | TYPE STRING, " | |||
| lv_cancelled | TYPE STRING, " | |||
| lv_y_selectind | TYPE SY-TABIX, " | |||
| lt_t_selectlist | TYPE STANDARD TABLE OF EFGSELLIST, " | |||
| lv_x_length_type | TYPE EFGGEN-TEXTLEN, " 0 | |||
| lv_x_length_key | TYPE EFGGEN-TEXTLEN, " 0 | |||
| lv_x_length_text | TYPE EFGGEN-TEXTLEN, " 0 | |||
| lv_x_str_header | TYPE EFGSELLIST, " | |||
| lv_x_flg_alv | TYPE EFG_DTE_FLAG, " 'X' | |||
| lv_x_rif_alv_callback | TYPE IF_EFG_SELLIST_ALV, " | |||
| lv_x_width | TYPE I, " 0 | |||
| lv_x_popup | TYPE EFGGEN-KENNZX, " 'X' | |||
| lv_y_str_selected | TYPE EFGSELLIST, " | |||
| lv_x_select_mode | TYPE EFGGEN-SELECTMODE, " 'S' | |||
| lv_x_hotspot | TYPE EFGGEN-KENNZX, " | |||
| lv_x_comment1 | TYPE C, " | |||
| lv_x_comment2 | TYPE C, " | |||
| lv_x_comment3 | TYPE C, " | |||
| lv_x_suppress_type | TYPE EFGGEN-KENNZX, " 'X' | |||
| lv_x_suppress_key | TYPE EFGGEN-KENNZX. " SPACE |
|   CALL FUNCTION 'EFG_SELECTION_LISTX' " |
| EXPORTING | ||
| X_TITLE | = lv_x_title | |
| X_LENGTH_TYPE | = lv_x_length_type | |
| X_LENGTH_KEY | = lv_x_length_key | |
| X_LENGTH_TEXT | = lv_x_length_text | |
| X_STR_HEADER | = lv_x_str_header | |
| X_FLG_ALV | = lv_x_flg_alv | |
| X_RIF_ALV_CALLBACK | = lv_x_rif_alv_callback | |
| X_WIDTH | = lv_x_width | |
| X_POPUP | = lv_x_popup | |
| X_SELECT_MODE | = lv_x_select_mode | |
| X_HOTSPOT | = lv_x_hotspot | |
| X_COMMENT1 | = lv_x_comment1 | |
| X_COMMENT2 | = lv_x_comment2 | |
| X_COMMENT3 | = lv_x_comment3 | |
| X_SUPPRESS_TYPE | = lv_x_suppress_type | |
| X_SUPPRESS_KEY | = lv_x_suppress_key | |
| IMPORTING | ||
| Y_SELECTIND | = lv_y_selectind | |
| Y_STR_SELECTED | = lv_y_str_selected | |
| TABLES | ||
| T_SELECTLIST | = lt_t_selectlist | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| . " EFG_SELECTION_LISTX | ||
ABAP code using 7.40 inline data declarations to call FM EFG_SELECTION_LISTX
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 TABIX FROM SY INTO @DATA(ld_y_selectind). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_length_type). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_length_key). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_length_text). | ||||
| DATA(ld_x_flg_alv) | = 'X'. | |||
| "SELECT single KENNZX FROM EFGGEN INTO @DATA(ld_x_popup). | ||||
| DATA(ld_x_popup) | = 'X'. | |||
| "SELECT single SELECTMODE FROM EFGGEN INTO @DATA(ld_x_select_mode). | ||||
| DATA(ld_x_select_mode) | = 'S'. | |||
| "SELECT single KENNZX FROM EFGGEN INTO @DATA(ld_x_hotspot). | ||||
| "SELECT single KENNZX FROM EFGGEN INTO @DATA(ld_x_suppress_type). | ||||
| DATA(ld_x_suppress_type) | = 'X'. | |||
| "SELECT single KENNZX FROM EFGGEN INTO @DATA(ld_x_suppress_key). | ||||
| DATA(ld_x_suppress_key) | = ' '. | |||
Search for further information about these or an SAP related objects