SAP EBA_SELECTION_LIST Function Module for INTERN: Popup zur Auswahl aus einer Liste
EBA_SELECTION_LIST is a standard eba 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 for INTERN: Popup zur Auswahl aus einer Liste 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 eba selection list FM, simply by entering the name EBA_SELECTION_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: EBA2
Program Name: SAPLEBA2
Main Program: SAPLEBA2
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EBA_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 'EBA_SELECTION_LIST'"INTERN: Popup zur Auswahl aus einer Liste.
EXPORTING
* X_TITLE = "Titelzeile
* X_MINLEN_TYPE = 0 "Mindestausgabelänge Typspalte
* X_MINLEN_KEY = 0 "Mindestausgabelänge Schlüsselspalte
* X_MINLEN_TEXT = 10 "Mindestausgabelänge Textspalte
* X_CALLBACK_PROGRAM = "Programmname der Callback-Forms
* X_CALLBACK_USER_COMMAND = "Callback-Formname 'AT USER COMMAND'
* X_CALLBACK_STATUS = "Callback-Formname zum Setzen des PF-Status
* X_CUA_STATUS = "zu setzender Status (aus cb-Programm)
* X_POPUP = 'X' "Kennz: Anzeige als Popup
* X_SELECT_MODE = 'S' "Kennz: mehrere zeilen selektierbar
* X_HOTSPOT = "Kennz: Pickup per Hotspot (SelMode S)
* X_COMMENT1 = "Kommentartext Zeile 1
* X_COMMENT2 = "Kommentartext Zeile 2
* X_COMMENT3 = "Kommentartext Zeile 3
* X_SUPPRESS_TYPE = 'X' "Kennz: Typspalte ausblenden
* X_SUPPRESS_KEY = ' ' "Kennz: Keyspalte ausblenden
IMPORTING
Y_SELECTIND = "Zeilenindex bei Einzelauswahl
TABLES
T_SELECTLIST = "Auswahlliste
EXCEPTIONS
CANCELLED = 1
IMPORTING Parameters details for EBA_SELECTION_LIST
X_TITLE - Titelzeile
Data type: EBAGEN-TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_TYPE - Mindestausgabelänge Typspalte
Data type: EBAGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_KEY - Mindestausgabelänge Schlüsselspalte
Data type: EBAGEN-TEXTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MINLEN_TEXT - Mindestausgabelänge Textspalte
Data type: EBAGEN-TEXTLENDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_PROGRAM - Programmname der Callback-Forms
Data type: SY-REPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_USER_COMMAND - Callback-Formname 'AT USER COMMAND'
Data type: SY-XFORMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CALLBACK_STATUS - Callback-Formname zum Setzen des PF-Status
Data type: SY-XFORMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CUA_STATUS - zu setzender Status (aus cb-Programm)
Data type: SY-PFKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
X_POPUP - Kennz: Anzeige als Popup
Data type: EBAGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SELECT_MODE - Kennz: mehrere zeilen selektierbar
Data type: EBAGEN-SELECTMODEDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_HOTSPOT - Kennz: Pickup per Hotspot (SelMode S)
Data type: EBAGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT1 - Kommentartext Zeile 1
Data type: EBAGEN-TEXTLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT2 - Kommentartext Zeile 2
Data type: EBAGEN-TEXTLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMMENT3 - Kommentartext Zeile 3
Data type: EBAGEN-TEXTLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SUPPRESS_TYPE - Kennz: Typspalte ausblenden
Data type: EBAGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SUPPRESS_KEY - Kennz: Keyspalte ausblenden
Data type: EBAGEN-KENNZXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EBA_SELECTION_LIST
Y_SELECTIND - Zeilenindex bei Einzelauswahl
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EBA_SELECTION_LIST
T_SELECTLIST - Auswahlliste
Data type: EBASELLISTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED - Abbruch durch Benutzer
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EBA_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 EBAGEN-TITLE, " | |||
lv_cancelled | TYPE EBAGEN, " | |||
lv_y_selectind | TYPE SY-TABIX, " | |||
lt_t_selectlist | TYPE STANDARD TABLE OF EBASELLIST, " | |||
lv_x_minlen_type | TYPE EBAGEN-TEXTLEN, " 0 | |||
lv_x_minlen_key | TYPE EBAGEN-TEXTLEN, " 0 | |||
lv_x_minlen_text | TYPE EBAGEN-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_popup | TYPE EBAGEN-KENNZX, " 'X' | |||
lv_x_select_mode | TYPE EBAGEN-SELECTMODE, " 'S' | |||
lv_x_hotspot | TYPE EBAGEN-KENNZX, " | |||
lv_x_comment1 | TYPE EBAGEN-TEXTLINE, " | |||
lv_x_comment2 | TYPE EBAGEN-TEXTLINE, " | |||
lv_x_comment3 | TYPE EBAGEN-TEXTLINE, " | |||
lv_x_suppress_type | TYPE EBAGEN-KENNZX, " 'X' | |||
lv_x_suppress_key | TYPE EBAGEN-KENNZX. " SPACE |
  CALL FUNCTION 'EBA_SELECTION_LIST' "INTERN: Popup zur Auswahl aus einer Liste |
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_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 | |
TABLES | ||
T_SELECTLIST | = lt_t_selectlist | |
EXCEPTIONS | ||
CANCELLED = 1 | ||
. " EBA_SELECTION_LIST |
ABAP code using 7.40 inline data declarations to call FM EBA_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 TITLE FROM EBAGEN INTO @DATA(ld_x_title). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_y_selectind). | ||||
"SELECT single TEXTLEN FROM EBAGEN INTO @DATA(ld_x_minlen_type). | ||||
"SELECT single TEXTLEN FROM EBAGEN INTO @DATA(ld_x_minlen_key). | ||||
"SELECT single TEXTLEN FROM EBAGEN 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 EBAGEN INTO @DATA(ld_x_popup). | ||||
DATA(ld_x_popup) | = 'X'. | |||
"SELECT single SELECTMODE FROM EBAGEN INTO @DATA(ld_x_select_mode). | ||||
DATA(ld_x_select_mode) | = 'S'. | |||
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_hotspot). | ||||
"SELECT single TEXTLINE FROM EBAGEN INTO @DATA(ld_x_comment1). | ||||
"SELECT single TEXTLINE FROM EBAGEN INTO @DATA(ld_x_comment2). | ||||
"SELECT single TEXTLINE FROM EBAGEN INTO @DATA(ld_x_comment3). | ||||
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_suppress_type). | ||||
DATA(ld_x_suppress_type) | = 'X'. | |||
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_suppress_key). | ||||
DATA(ld_x_suppress_key) | = ' '. | |||
Search for further information about these or an SAP related objects