SAP POPUP_TO_DECIDE_LIST Function Module for Dialog box for choosing from a list without diagnosis
POPUP_TO_DECIDE_LIST is a standard popup to decide 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 Dialog box for choosing from a list without diagnosis 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 popup to decide list FM, simply by entering the name POPUP_TO_DECIDE_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SPO5
Program Name: SAPLSPO5
Main Program: SAPLSPO5
Appliation area:
Release date: 03-Feb-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function POPUP_TO_DECIDE_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 'POPUP_TO_DECIDE_LIST'"Dialog box for choosing from a list without diagnosis.
EXPORTING
* CURSORLINE = 1 "Cursor/proposal line radio button line
* DISPLAY_ONLY = ' ' "Display only, selection not possible
* MARK_FLAG = ' ' "Selection list with check buttons flag
* MARK_MAX = 1 "maximum allowed number of selections
* START_COL = 0 "Column in which the dialog box begins
* START_ROW = 0 "Line in which the popup starts
TEXTLINE1 = "first text line
* TEXTLINE2 = ' ' "second text line
* TEXTLINE3 = ' ' "third text line
TITEL = "Popup header line
IMPORTING
ANSWER = "Return Value for Cancel/Select Option
TABLES
T_SPOPLI = "Possible Selections
EXCEPTIONS
NOT_ENOUGH_ANSWERS = 1 TOO_MUCH_ANSWERS = 2 TOO_MUCH_MARKS = 3
IMPORTING Parameters details for POPUP_TO_DECIDE_LIST
CURSORLINE - Cursor/proposal line radio button line
Data type: SY-LILLIDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY_ONLY - Display only, selection not possible
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MARK_FLAG - Selection list with check buttons flag
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MARK_MAX - maximum allowed number of selections
Data type:Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
START_COL - Column in which the dialog box begins
Data type: SY-CUCOLOptional: Yes
Call by Reference: No ( called with pass by value option)
START_ROW - Line in which the popup starts
Data type: SY-CUROWOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXTLINE1 - first text line
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE2 - second text line
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXTLINE3 - third text line
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITEL - Popup header line
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for POPUP_TO_DECIDE_LIST
ANSWER - Return Value for Cancel/Select Option
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for POPUP_TO_DECIDE_LIST
T_SPOPLI - Possible Selections
Data type: SPOPLIOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_ENOUGH_ANSWERS - not enough responses proposed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TOO_MUCH_ANSWERS - too many responses (>15) proposed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TOO_MUCH_MARKS - too many selections
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for POPUP_TO_DECIDE_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_display_only | TYPE SY, " SPACE | |||
| 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 'POPUP_TO_DECIDE_LIST' "Dialog box for choosing from a list without diagnosis |
| EXPORTING | ||
| CURSORLINE | = lv_cursorline | |
| DISPLAY_ONLY | = lv_display_only | |
| 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 | ||
| . " POPUP_TO_DECIDE_LIST | ||
ABAP code using 7.40 inline data declarations to call FM POPUP_TO_DECIDE_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_display_only) | = ' '. | |||
| 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