SAP SELECT_FROM_LIST Function Module for NOTRANSL: Dialogfenster zur Auswahl aus einer Liste ohne Diagnose









SELECT_FROM_LIST is a standard select from 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 NOTRANSL: Dialogfenster zur Auswahl aus einer Liste ohne Diagnose 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 select from list FM, simply by entering the name SELECT_FROM_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function SELECT_FROM_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 'SELECT_FROM_LIST'"NOTRANSL: Dialogfenster zur Auswahl aus einer Liste ohne Diagnose
EXPORTING
* CURSORLINE = 1 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MARK_FLAG = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MARK_MAX = 1 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* START_COL = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* START_ROW = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION
TEXTLINE1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TEXTLINE2 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TEXTLINE3 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
TITEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
ANSWER = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
T_SPOPLI = "Possible Selections

EXCEPTIONS
NOT_ENOUGH_ANSWERS = 1 TOO_MUCH_ANSWERS = 2 TOO_MUCH_MARKS = 3
.



IMPORTING Parameters details for SELECT_FROM_LIST

CURSORLINE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MARK_FLAG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MARK_MAX - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

START_COL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

START_ROW - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TEXTLINE1 - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TEXTLINE2 - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TEXTLINE3 - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TITEL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for SELECT_FROM_LIST

ANSWER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for SELECT_FROM_LIST

T_SPOPLI - Possible Selections

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

EXCEPTIONS details

NOT_ENOUGH_ANSWERS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TOO_MUCH_ANSWERS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TOO_MUCH_MARKS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for SELECT_FROM_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_answer  TYPE STRING, "   
lt_t_spopli  TYPE STANDARD TABLE OF SPOPLI, "   
lv_cursorline  TYPE SY-LILLI, "   1
lv_not_enough_answers  TYPE SY, "   
lv_mark_flag  TYPE SY, "   SPACE
lv_too_much_answers  TYPE SY, "   
lv_mark_max  TYPE SY, "   1
lv_too_much_marks  TYPE SY, "   
lv_start_col  TYPE SY-CUCOL, "   0
lv_start_row  TYPE SY-CUROW, "   0
lv_textline1  TYPE SY, "   
lv_textline2  TYPE SY, "   SPACE
lv_textline3  TYPE SY, "   SPACE
lv_titel  TYPE SY. "   

  CALL FUNCTION 'SELECT_FROM_LIST'  "NOTRANSL: Dialogfenster zur Auswahl aus einer Liste ohne Diagnose
    EXPORTING
         CURSORLINE = lv_cursorline
         MARK_FLAG = lv_mark_flag
         MARK_MAX = lv_mark_max
         START_COL = lv_start_col
         START_ROW = lv_start_row
         TEXTLINE1 = lv_textline1
         TEXTLINE2 = lv_textline2
         TEXTLINE3 = lv_textline3
         TITEL = lv_titel
    IMPORTING
         ANSWER = lv_answer
    TABLES
         T_SPOPLI = lt_t_spopli
    EXCEPTIONS
        NOT_ENOUGH_ANSWERS = 1
        TOO_MUCH_ANSWERS = 2
        TOO_MUCH_MARKS = 3
. " SELECT_FROM_LIST




ABAP code using 7.40 inline data declarations to call FM SELECT_FROM_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 LILLI FROM SY INTO @DATA(ld_cursorline).
DATA(ld_cursorline) = 1.
 
 
DATA(ld_mark_flag) = ' '.
 
 
DATA(ld_mark_max) = 1.
 
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_start_col).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_start_row).
 
 
DATA(ld_textline2) = ' '.
 
DATA(ld_textline3) = ' '.
 
 


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!