SAP POPUP_TO_CONFIRM_MSG_WITH_CALL Function Module for Dialog box to confirm and to call function module without parameters
POPUP_TO_CONFIRM_MSG_WITH_CALL is a standard popup to confirm msg with call 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 to confirm and to call function module without parameters 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 msg with call FM, simply by entering the name POPUP_TO_CONFIRM_MSG_WITH_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: MWGT
Program Name: SAPLMWGT
Main Program: SAPLMWGT
Appliation area:
Release date: 18-Nov-1997
Mode(Normal, Remote etc): Normal Function Module
Update:
Function POPUP_TO_CONFIRM_MSG_WITH_CALL 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_MSG_WITH_CALL'"Dialog box to confirm and to call function module without parameters.
EXPORTING
TXT01 = "
* NEW_LINE2 = ' ' "
* NEW_LINE3 = ' ' "
TITLE = "
LENGTH = "
* TXT_FIRST_PUSHBUTTON = "
* TXT_SECOND_PUSHBUTTN = "
* FUNCT_MODULE = ' ' "
* TXT02 = ' ' "
* TXT03 = ' ' "
* TXT04 = ' ' "
* PAR01 = ' ' "
* PAR02 = ' ' "
* PAR03 = ' ' "
* PAR04 = ' ' "
* NEW_LINE1 = ' ' "
EXCEPTIONS
FUNCTION_MODULE_MISSED = 1 TEXT_SECOND_PUSHBUTTON_MISSED = 2
IMPORTING Parameters details for POPUP_TO_CONFIRM_MSG_WITH_CALL
TXT01 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NEW_LINE2 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEW_LINE3 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LENGTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TXT_FIRST_PUSHBUTTON -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TXT_SECOND_PUSHBUTTN -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
FUNCT_MODULE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TXT02 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TXT03 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TXT04 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR01 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR02 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR03 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR04 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEW_LINE1 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FUNCTION_MODULE_MISSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXT_SECOND_PUSHBUTTON_MISSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for POPUP_TO_CONFIRM_MSG_WITH_CALL 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_txt01 | TYPE STRING, " | |||
lv_function_module_missed | TYPE STRING, " | |||
lv_new_line2 | TYPE STRING, " SPACE | |||
lv_new_line3 | TYPE STRING, " SPACE | |||
lv_title | TYPE STRING, " | |||
lv_length | TYPE STRING, " | |||
lv_txt_first_pushbutton | TYPE STRING, " | |||
lv_txt_second_pushbuttn | TYPE STRING, " | |||
lv_funct_module | TYPE STRING, " SPACE | |||
lv_txt02 | TYPE STRING, " SPACE | |||
lv_text_second_pushbutton_missed | TYPE STRING, " | |||
lv_txt03 | TYPE STRING, " SPACE | |||
lv_txt04 | TYPE STRING, " SPACE | |||
lv_par01 | TYPE STRING, " SPACE | |||
lv_par02 | TYPE STRING, " SPACE | |||
lv_par03 | TYPE STRING, " SPACE | |||
lv_par04 | TYPE STRING, " SPACE | |||
lv_new_line1 | TYPE STRING. " SPACE |
  CALL FUNCTION 'POPUP_TO_CONFIRM_MSG_WITH_CALL' "Dialog box to confirm and to call function module without parameters |
EXPORTING | ||
TXT01 | = lv_txt01 | |
NEW_LINE2 | = lv_new_line2 | |
NEW_LINE3 | = lv_new_line3 | |
TITLE | = lv_title | |
LENGTH | = lv_length | |
TXT_FIRST_PUSHBUTTON | = lv_txt_first_pushbutton | |
TXT_SECOND_PUSHBUTTN | = lv_txt_second_pushbuttn | |
FUNCT_MODULE | = lv_funct_module | |
TXT02 | = lv_txt02 | |
TXT03 | = lv_txt03 | |
TXT04 | = lv_txt04 | |
PAR01 | = lv_par01 | |
PAR02 | = lv_par02 | |
PAR03 | = lv_par03 | |
PAR04 | = lv_par04 | |
NEW_LINE1 | = lv_new_line1 | |
EXCEPTIONS | ||
FUNCTION_MODULE_MISSED = 1 | ||
TEXT_SECOND_PUSHBUTTON_MISSED = 2 | ||
. " POPUP_TO_CONFIRM_MSG_WITH_CALL |
ABAP code using 7.40 inline data declarations to call FM POPUP_TO_CONFIRM_MSG_WITH_CALL
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_new_line2) | = ' '. | |||
DATA(ld_new_line3) | = ' '. | |||
DATA(ld_funct_module) | = ' '. | |||
DATA(ld_txt02) | = ' '. | |||
DATA(ld_txt03) | = ' '. | |||
DATA(ld_txt04) | = ' '. | |||
DATA(ld_par01) | = ' '. | |||
DATA(ld_par02) | = ' '. | |||
DATA(ld_par03) | = ' '. | |||
DATA(ld_par04) | = ' '. | |||
DATA(ld_new_line1) | = ' '. | |||
Search for further information about these or an SAP related objects