SAP J_2GLPPOPUP_4_BUTTONS Function Module for A popup dialog with 4 buttons









J_2GLPPOPUP_4_BUTTONS is a standard j 2glppopup 4 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 4 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 4 buttons FM, simply by entering the name J_2GLPPOPUP_4_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_4_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_4_BUTTONS'"A popup dialog with 4 buttons
EXPORTING
* DEFAULTOPTION = '1' "Highlighted button
TITLE = "title
OPTION1_TEXT = "button 1 text
OPTION2_TEXT = "button 2 text
OPTION3_TEXT = "button 3 text
OPTION4_TEXT = "button 4 text
* START_COLUMN = 5 "start column
* START_ROW = 6 "start row
TEXTLINE1 = "line 1
TEXTLINE2 = "line 2
TEXTLINE3 = "line 3
TEXTLINE4 = "line 4
TEXTLINE5 = "line 5
TEXTLINE6 = "line 6
TEXTLINE7 = "line 7
TEXTLINE8 = "line 8

IMPORTING
ANSWER = "user's answer
.



IMPORTING Parameters details for J_2GLPPOPUP_4_BUTTONS

DEFAULTOPTION - Highlighted button

Data type:
Default: '1'
Optional: Yes
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)

OPTION2_TEXT - button 2 text

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

OPTION3_TEXT - button 3 text

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

OPTION4_TEXT - button 4 text

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

START_COLUMN - start column

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

START_ROW - start row

Data type: SY-CUROW
Default: 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 - line 5

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

TEXTLINE6 - line 6

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

TEXTLINE7 - line 7

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

TEXTLINE8 - line 8

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

EXPORTING Parameters details for J_2GLPPOPUP_4_BUTTONS

ANSWER - user's answer

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

Copy and paste ABAP code example for J_2GLPPOPUP_4_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_title  TYPE STRING, "   
lv_option1_text  TYPE STRING, "   
lv_option2_text  TYPE STRING, "   
lv_option3_text  TYPE STRING, "   
lv_option4_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_textline7  TYPE SY, "   
lv_textline8  TYPE SY. "   

  CALL FUNCTION 'J_2GLPPOPUP_4_BUTTONS'  "A popup dialog with 4 buttons
    EXPORTING
         DEFAULTOPTION = lv_defaultoption
         TITLE = lv_title
         OPTION1_TEXT = lv_option1_text
         OPTION2_TEXT = lv_option2_text
         OPTION3_TEXT = lv_option3_text
         OPTION4_TEXT = lv_option4_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
         TEXTLINE7 = lv_textline7
         TEXTLINE8 = lv_textline8
    IMPORTING
         ANSWER = lv_answer
. " J_2GLPPOPUP_4_BUTTONS




ABAP code using 7.40 inline data declarations to call FM J_2GLPPOPUP_4_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



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!