CA
Function module
Used the same way in S/4HANA
POPUP_TO_CONFIRM Confirmation Dialog Popup
Displays a standard dialog box with a question and two configurable buttons plus an optional cancel button, and returns which button was pressed. It is used in dialog programs and reports before critical steps such as saving, deleting or posting. Check ANSWER: '1' for the first button, '2' for the second and 'A' for cancel; do not use it in background jobs or RFC calls.
- Function group
- SPO1
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| TITLEBAR | — | Title of the dialog box | — |
| DIAGNOSE_OBJECT | DOKHL-OBJECT | Diagnosis text (SE61) | — |
| TEXT_QUESTION | — | Question text | Yes |
| TEXT_BUTTON_1 | — | Text of the first button | — |
| ICON_BUTTON_1 | ICON-NAME | Icon of the first button | — |
| TEXT_BUTTON_2 | — | Text of the second button | — |
| ICON_BUTTON_2 | ICON-NAME | Icon of the second button | — |
| DEFAULT_BUTTON | — | Default button (cursor position) | — |
| DISPLAY_CANCEL_BUTTON | — | Show cancel button | — |
| USERDEFINED_F1_HELP | DOKHL-OBJECT | User-defined F1 help | — |
| START_COLUMN | SY-CUCOL | Start column of the popup | — |
| START_ROW | SY-CUROW | Start row of the popup | — |
| POPUP_TYPE | ICON-NAME | Icon type of the popup | — |
| IV_QUICKINFO_BUTTON_1 | TEXT132 | Tooltip of the first button | — |
| IV_QUICKINFO_BUTTON_2 | TEXT132 | Tooltip of the second button | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| ANSWER | — | Pressed button ('1', '2' or 'A') |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PARAMETER | SPAR | Parameters for the text | — |
Exceptions
- TEXT_NOT_FOUND — Diagnosis text not found
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = lv_text_question
IMPORTING
answer = lv_answer
TABLES
parameter = lt_parameter
EXCEPTIONS
text_not_found = 1
OTHERS = 2.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.