SAP EFG_SELECTION_LIST Function Module for
EFG_SELECTION_LIST is a standard efg 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 efg selection list FM, simply by entering the name EFG_SELECTION_LIST 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_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 'EFG_SELECTION_LIST'".
EXPORTING
* X_TITLE = "Title line
* X_MINLEN_TYPE = 0 "
* X_MINLEN_KEY = 0 "
* X_MINLEN_TEXT = 10 "
* X_CALLBACK_PROGRAM = "
* X_CALLBACK_USER_COMMAND = "
* X_CALLBACK_STATUS = "
* X_CUA_STATUS = "
* X_ALLOW_CLIPBOARD = "
* X_SHOW_EXPORT_ICON = "
* X_STR_HEADER = "
* X_POPUP = 'X' "
* X_STR_SEL_STATE = "Status of Selection Dialog
* X_FLG_ALV = "
* X_RIF_ALV_CALLBACK = "
* X_WIDTH = 0 "
* 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 = "Selection List Structure
Y_STR_SEL_STATE = "Status of Selection Dialog
TABLES
T_SELECTLIST = "Selection List
EXCEPTIONS
CANCELLED = 1
IMPORTING Parameters details for EFG_SELECTION_LIST
X_TITLE - Title line
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_TYPE -
Data type: EFGGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_KEY -
Data type: EFGGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_TEXT -
Data type: EFGGEN-TEXTLENDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_PROGRAM -
Data type: SY-REPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_USER_COMMAND -
Data type: SY-XFORMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_STATUS -
Data type: SY-XFORMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CUA_STATUS -
Data type: SY-PFKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ALLOW_CLIPBOARD -
Data type: RFGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SHOW_EXPORT_ICON -
Data type: RFGEN-KENNZXOptional: 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_POPUP -
Data type: EFGGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_STR_SEL_STATE - Status of Selection Dialog
Data type: EFG_STR_SEL_STATEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FLG_ALV -
Data type: EFG_DTE_FLAGOptional: 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_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_LIST
Y_SELECTIND -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
Y_STR_SELECTED - Selection List Structure
Data type: EFGSELLISTOptional: No
Call by Reference: No ( called with pass by value option)
Y_STR_SEL_STATE - Status of Selection Dialog
Data type: EFG_STR_SEL_STATEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EFG_SELECTION_LIST
T_SELECTLIST - Selection List
Data type: EFGSELLISTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED - Canceled by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EFG_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_x_title | TYPE STRING, " | |||
| lv_cancelled | TYPE STRING, " | |||
| lv_y_selectind | TYPE SY-TABIX, " | |||
| lt_t_selectlist | TYPE STANDARD TABLE OF EFGSELLIST, " | |||
| lv_x_minlen_type | TYPE EFGGEN-TEXTLEN, " 0 | |||
| lv_x_minlen_key | TYPE EFGGEN-TEXTLEN, " 0 | |||
| lv_x_minlen_text | TYPE EFGGEN-TEXTLEN, " 10 | |||
| lv_x_callback_program | TYPE SY-REPID, " | |||
| lv_x_callback_user_command | TYPE SY-XFORM, " | |||
| lv_x_callback_status | TYPE SY-XFORM, " | |||
| lv_x_cua_status | TYPE SY-PFKEY, " | |||
| lv_x_allow_clipboard | TYPE RFGEN-KENNZX, " | |||
| lv_x_show_export_icon | TYPE RFGEN-KENNZX, " | |||
| lv_x_str_header | TYPE EFGSELLIST, " | |||
| lv_x_popup | TYPE EFGGEN-KENNZX, " 'X' | |||
| lv_y_str_selected | TYPE EFGSELLIST, " | |||
| lv_x_str_sel_state | TYPE EFG_STR_SEL_STATE, " | |||
| lv_x_flg_alv | TYPE EFG_DTE_FLAG, " | |||
| lv_x_rif_alv_callback | TYPE IF_EFG_SELLIST_ALV, " | |||
| lv_x_width | TYPE I, " 0 | |||
| lv_x_select_mode | TYPE EFGGEN-SELECTMODE, " 'S' | |||
| lv_y_str_sel_state | TYPE EFG_STR_SEL_STATE, " | |||
| 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_LIST' " |
| EXPORTING | ||
| X_TITLE | = lv_x_title | |
| X_MINLEN_TYPE | = lv_x_minlen_type | |
| X_MINLEN_KEY | = lv_x_minlen_key | |
| X_MINLEN_TEXT | = lv_x_minlen_text | |
| X_CALLBACK_PROGRAM | = lv_x_callback_program | |
| X_CALLBACK_USER_COMMAND | = lv_x_callback_user_command | |
| X_CALLBACK_STATUS | = lv_x_callback_status | |
| X_CUA_STATUS | = lv_x_cua_status | |
| X_ALLOW_CLIPBOARD | = lv_x_allow_clipboard | |
| X_SHOW_EXPORT_ICON | = lv_x_show_export_icon | |
| X_STR_HEADER | = lv_x_str_header | |
| X_POPUP | = lv_x_popup | |
| X_STR_SEL_STATE | = lv_x_str_sel_state | |
| X_FLG_ALV | = lv_x_flg_alv | |
| X_RIF_ALV_CALLBACK | = lv_x_rif_alv_callback | |
| X_WIDTH | = lv_x_width | |
| 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 | |
| Y_STR_SEL_STATE | = lv_y_str_sel_state | |
| TABLES | ||
| T_SELECTLIST | = lt_t_selectlist | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| . " EFG_SELECTION_LIST | ||
ABAP code using 7.40 inline data declarations to call FM EFG_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.| "SELECT single TABIX FROM SY INTO @DATA(ld_y_selectind). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_minlen_type). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_minlen_key). | ||||
| "SELECT single TEXTLEN FROM EFGGEN INTO @DATA(ld_x_minlen_text). | ||||
| DATA(ld_x_minlen_text) | = 10. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_x_callback_program). | ||||
| "SELECT single XFORM FROM SY INTO @DATA(ld_x_callback_user_command). | ||||
| "SELECT single XFORM FROM SY INTO @DATA(ld_x_callback_status). | ||||
| "SELECT single PFKEY FROM SY INTO @DATA(ld_x_cua_status). | ||||
| "SELECT single KENNZX FROM RFGEN INTO @DATA(ld_x_allow_clipboard). | ||||
| "SELECT single KENNZX FROM RFGEN INTO @DATA(ld_x_show_export_icon). | ||||
| "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