SAP POPUP_TO_CONFIRM Function Module for Standard Dialog Popup









POPUP_TO_CONFIRM is a standard popup to confirm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Standard Dialog Popup 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 confirm FM, simply by entering the name POPUP_TO_CONFIRM into the relevant SAP transaction such as SE37 or SE38.

Function Group: SPO1
Program Name: SAPLSPO1
Main Program: SAPLSPO1
Appliation area: S
Release date: 27-Nov-1996
Mode(Normal, Remote etc): Normal Function Module
Update:



Function POPUP_TO_CONFIRM 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_CONFIRM'"Standard Dialog Popup
EXPORTING
* TITLEBAR = ' ' "Title of dialog box
* USERDEFINED_F1_HELP = ' ' "User-Defined F1 Help
* START_COLUMN = 25 "Column in which the POPUP begins
* START_ROW = 6 "Line in which the POPUP begins
* POPUP_TYPE = "Icon type
* IV_QUICKINFO_BUTTON_1 = ' ' "Quick Info on First Pushbutton
* IV_QUICKINFO_BUTTON_2 = ' ' "Quick Info on Second Pushbutton
* DIAGNOSE_OBJECT = ' ' "Diagnosis text (maintain via SE61)
TEXT_QUESTION = "Question text in dialog box
* TEXT_BUTTON_1 = 'Ja'(001) "Text on the first pushbutton
* ICON_BUTTON_1 = ' ' "Icon on first pushbutton
* TEXT_BUTTON_2 = 'Nein'(002) "Text on the second pushbutton
* ICON_BUTTON_2 = ' ' "Icon on second pushbutton
* DEFAULT_BUTTON = '1' "Cursor position
* DISPLAY_CANCEL_BUTTON = 'X' "Button for displaying cancel pushbutton

IMPORTING
ANSWER = "Return values: '1', '2', 'A'

TABLES
* PARAMETER = "Text transfer table for parameter in text

EXCEPTIONS
TEXT_NOT_FOUND = 1
.



IMPORTING Parameters details for POPUP_TO_CONFIRM

TITLEBAR - Title of dialog box

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

USERDEFINED_F1_HELP - User-Defined F1 Help

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

START_COLUMN - Column in which the POPUP begins

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

START_ROW - Line in which the POPUP begins

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

POPUP_TYPE - Icon type

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

IV_QUICKINFO_BUTTON_1 - Quick Info on First Pushbutton

Data type: TEXT132
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_QUICKINFO_BUTTON_2 - Quick Info on Second Pushbutton

Data type: TEXT132
Default: SPACE
Optional: Yes
Call by Reference: Yes

DIAGNOSE_OBJECT - Diagnosis text (maintain via SE61)

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

TEXT_QUESTION - Question text in dialog box

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

TEXT_BUTTON_1 - Text on the first pushbutton

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

ICON_BUTTON_1 - Icon on first pushbutton

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

TEXT_BUTTON_2 - Text on the second pushbutton

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

ICON_BUTTON_2 - Icon on second pushbutton

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

DEFAULT_BUTTON - Cursor position

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

DISPLAY_CANCEL_BUTTON - Button for displaying cancel pushbutton

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

EXPORTING Parameters details for POPUP_TO_CONFIRM

ANSWER - Return values: '1', '2', 'A'

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

TABLES Parameters details for POPUP_TO_CONFIRM

PARAMETER - Text transfer table for parameter in text

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

EXCEPTIONS details

TEXT_NOT_FOUND - Diagnosis text not found

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

Copy and paste ABAP code example for POPUP_TO_CONFIRM 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, "   
lv_titlebar  TYPE STRING, "   SPACE
lt_parameter  TYPE STANDARD TABLE OF SPAR, "   
lv_text_not_found  TYPE SPAR, "   
lv_userdefined_f1_help  TYPE DOKHL-OBJECT, "   SPACE
lv_start_column  TYPE SY-CUCOL, "   25
lv_start_row  TYPE SY-CUROW, "   6
lv_popup_type  TYPE ICON-NAME, "   
lv_iv_quickinfo_button_1  TYPE TEXT132, "   SPACE
lv_iv_quickinfo_button_2  TYPE TEXT132, "   SPACE
lv_diagnose_object  TYPE DOKHL-OBJECT, "   SPACE
lv_text_question  TYPE DOKHL, "   
lv_text_button_1  TYPE DOKHL, "   'Ja'(001)
lv_icon_button_1  TYPE ICON-NAME, "   SPACE
lv_text_button_2  TYPE ICON, "   'Nein'(002)
lv_icon_button_2  TYPE ICON-NAME, "   SPACE
lv_default_button  TYPE ICON, "   '1'
lv_display_cancel_button  TYPE ICON. "   'X'

  CALL FUNCTION 'POPUP_TO_CONFIRM'  "Standard Dialog Popup
    EXPORTING
         TITLEBAR = lv_titlebar
         USERDEFINED_F1_HELP = lv_userdefined_f1_help
         START_COLUMN = lv_start_column
         START_ROW = lv_start_row
         POPUP_TYPE = lv_popup_type
         IV_QUICKINFO_BUTTON_1 = lv_iv_quickinfo_button_1
         IV_QUICKINFO_BUTTON_2 = lv_iv_quickinfo_button_2
         DIAGNOSE_OBJECT = lv_diagnose_object
         TEXT_QUESTION = lv_text_question
         TEXT_BUTTON_1 = lv_text_button_1
         ICON_BUTTON_1 = lv_icon_button_1
         TEXT_BUTTON_2 = lv_text_button_2
         ICON_BUTTON_2 = lv_icon_button_2
         DEFAULT_BUTTON = lv_default_button
         DISPLAY_CANCEL_BUTTON = lv_display_cancel_button
    IMPORTING
         ANSWER = lv_answer
    TABLES
         PARAMETER = lt_parameter
    EXCEPTIONS
        TEXT_NOT_FOUND = 1
. " POPUP_TO_CONFIRM




ABAP code using 7.40 inline data declarations to call FM POPUP_TO_CONFIRM

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.

 
DATA(ld_titlebar) = ' '.
 
 
 
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_userdefined_f1_help).
DATA(ld_userdefined_f1_help) = ' '.
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_start_column).
DATA(ld_start_column) = 25.
 
"SELECT single CUROW FROM SY INTO @DATA(ld_start_row).
DATA(ld_start_row) = 6.
 
"SELECT single NAME FROM ICON INTO @DATA(ld_popup_type).
 
DATA(ld_iv_quickinfo_button_1) = ' '.
 
DATA(ld_iv_quickinfo_button_2) = ' '.
 
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_diagnose_object).
DATA(ld_diagnose_object) = ' '.
 
 
DATA(ld_text_button_1) = 'Ja'.
 
"SELECT single NAME FROM ICON INTO @DATA(ld_icon_button_1).
DATA(ld_icon_button_1) = ' '.
 
DATA(ld_text_button_2) = 'Nein'.
 
"SELECT single NAME FROM ICON INTO @DATA(ld_icon_button_2).
DATA(ld_icon_button_2) = ' '.
 
DATA(ld_default_button) = '1'.
 
DATA(ld_display_cancel_button) = 'X'.
 


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!