SAP J_2GLPPOPUP_2_BUTTONS Function Module for A popup dialog with 2 buttons
J_2GLPPOPUP_2_BUTTONS is a standard j 2glppopup 2 buttons SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for A popup dialog with 2 buttons 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 j 2glppopup 2 buttons FM, simply by entering the name J_2GLPPOPUP_2_BUTTONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: J2GLPPOPUP
Program Name: SAPLJ2GLPPOPUP
Main Program: SAPLJ2GLPPOPUP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_2GLPPOPUP_2_BUTTONS 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 'J_2GLPPOPUP_2_BUTTONS'"A popup dialog with 2 buttons.
EXPORTING
* DEFAULTOPTION = '1' "Highlighted button
OPTION2_TEXT = "button 2 text
* START_COLUMN = 5 "
* START_ROW = 6 "
TEXTLINE1 = "line 1
TEXTLINE2 = "line 2
TEXTLINE3 = "line 3
TEXTLINE4 = "line 4
TEXTLINE5 = "
TEXTLINE6 = "
TITLE = "title
OPTION1_TEXT = "button 1 text
IMPORTING
ANSWER = "
IMPORTING Parameters details for J_2GLPPOPUP_2_BUTTONS
DEFAULTOPTION - Highlighted button
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION2_TEXT - button 2 text
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
START_COLUMN -
Data type: SY-CUCOLDefault: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)
START_ROW -
Data type: SY-CUROWDefault: 6
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXTLINE1 - line 1
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE2 - line 2
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE3 - line 3
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE4 - line 4
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE5 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXTLINE6 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TITLE - title
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPTION1_TEXT - button 1 text
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_2GLPPOPUP_2_BUTTONS
ANSWER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_2GLPPOPUP_2_BUTTONS 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_defaultoption | TYPE STRING, " '1' | |||
| lv_option2_text | TYPE STRING, " | |||
| lv_start_column | TYPE SY-CUCOL, " 5 | |||
| lv_start_row | TYPE SY-CUROW, " 6 | |||
| lv_textline1 | TYPE SY, " | |||
| lv_textline2 | TYPE SY, " | |||
| lv_textline3 | TYPE SY, " | |||
| lv_textline4 | TYPE SY, " | |||
| lv_textline5 | TYPE SY, " | |||
| lv_textline6 | TYPE SY, " | |||
| lv_title | TYPE SY, " | |||
| lv_option1_text | TYPE SY. " |
|   CALL FUNCTION 'J_2GLPPOPUP_2_BUTTONS' "A popup dialog with 2 buttons |
| EXPORTING | ||
| DEFAULTOPTION | = lv_defaultoption | |
| OPTION2_TEXT | = lv_option2_text | |
| START_COLUMN | = lv_start_column | |
| START_ROW | = lv_start_row | |
| TEXTLINE1 | = lv_textline1 | |
| TEXTLINE2 | = lv_textline2 | |
| TEXTLINE3 | = lv_textline3 | |
| TEXTLINE4 | = lv_textline4 | |
| TEXTLINE5 | = lv_textline5 | |
| TEXTLINE6 | = lv_textline6 | |
| TITLE | = lv_title | |
| OPTION1_TEXT | = lv_option1_text | |
| IMPORTING | ||
| ANSWER | = lv_answer | |
| . " J_2GLPPOPUP_2_BUTTONS | ||
ABAP code using 7.40 inline data declarations to call FM J_2GLPPOPUP_2_BUTTONS
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_defaultoption) | = '1'. | |||
| "SELECT single CUCOL FROM SY INTO @DATA(ld_start_column). | ||||
| DATA(ld_start_column) | = 5. | |||
| "SELECT single CUROW FROM SY INTO @DATA(ld_start_row). | ||||
| DATA(ld_start_row) | = 6. | |||
Search for further information about these or an SAP related objects