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

ParameterTypeDescriptionRequired
TITLEBAR—Title of the dialog box—
DIAGNOSE_OBJECTDOKHL-OBJECTDiagnosis text (SE61)—
TEXT_QUESTION—Question textYes
TEXT_BUTTON_1—Text of the first button—
ICON_BUTTON_1ICON-NAMEIcon of the first button—
TEXT_BUTTON_2—Text of the second button—
ICON_BUTTON_2ICON-NAMEIcon of the second button—
DEFAULT_BUTTON—Default button (cursor position)—
DISPLAY_CANCEL_BUTTON—Show cancel button—
USERDEFINED_F1_HELPDOKHL-OBJECTUser-defined F1 help—
START_COLUMNSY-CUCOLStart column of the popup—
START_ROWSY-CUROWStart row of the popup—
POPUP_TYPEICON-NAMEIcon type of the popup—
IV_QUICKINFO_BUTTON_1TEXT132Tooltip of the first button—
IV_QUICKINFO_BUTTON_2TEXT132Tooltip of the second button—

Exporting parameters

ParameterTypeDescription
ANSWER—Pressed button ('1', '2' or 'A')

Tables parameters

ParameterTypeDescriptionRequired
PARAMETERSPARParameters 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.

Request a custom report