POPUP_TO_CONFIRM is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
Associated Function Group:
Released Date: 27.11.1996
Processing type: Normal fucntion module
CALL FUNCTION 'POPUP_TO_CONFIRM' "Standard Dialog Popup EXPORTING * titlebar = SPACE " Title of dialog box * diagnose_object = SPACE " dokhl-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 = SPACE " icon-name Icon on first pushbutton * text_button_2 = 'Nein'(002) " Text on the second pushbutton * icon_button_2 = SPACE " icon-name Icon on second pushbutton * default_button = '1' " Cursor position * display_cancel_button = 'X' " Button for displaying cancel pushbutton * userdefined_f1_help = SPACE " dokhl-object User-Defined F1 Help * start_column = 25 " sy-cucol Column in which the POPUP begins * start_row = 6 " sy-curow Line in which the POPUP begins * popup_type = " icon-name Icon type * iv_quickinfo_button_1 = SPACE " text132 Quick Info on First Pushbutton * iv_quickinfo_button_2 = SPACE " text132 Quick Info on Second Pushbutton IMPORTING answer = " Return values: '1', '2', 'A' * TABLES * parameter = " spar Text transfer table for parameter in text EXCEPTIONS TEXT_NOT_FOUND = 1 " Diagnosis text not found . " POPUP_TO_CONFIRM
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
|ld_answer||TYPE STRING ,|
|it_parameter||TYPE STANDARD TABLE OF SPAR,"TABLES PARAM|
|wa_parameter||LIKE LINE OF it_parameter .|
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
|ld_answer||TYPE STRING ,|
|ld_titlebar||TYPE STRING ,|
|it_parameter||TYPE STANDARD TABLE OF SPAR ,|
|wa_parameter||LIKE LINE OF it_parameter,|
|ld_diagnose_object||TYPE DOKHL-OBJECT ,|
|ld_text_question||TYPE STRING ,|
|ld_text_button_1||TYPE STRING ,|
|ld_icon_button_1||TYPE ICON-NAME ,|
|ld_text_button_2||TYPE STRING ,|
|ld_icon_button_2||TYPE ICON-NAME ,|
|ld_default_button||TYPE STRING ,|
|ld_display_cancel_button||TYPE STRING ,|
|ld_userdefined_f1_help||TYPE DOKHL-OBJECT ,|
|ld_start_column||TYPE SY-CUCOL ,|
|ld_start_row||TYPE SY-CUROW ,|
|ld_popup_type||TYPE ICON-NAME ,|
|ld_iv_quickinfo_button_1||TYPE TEXT132 ,|
|ld_iv_quickinfo_button_2||TYPE TEXT132 .|
The new POPUP_TO_CONFIRM includes the functions of the previous POPUP_TO_CONFIRM_..... . The transfer of diagnosis and question texts ...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name POPUP_TO_CONFIRM or its description.