SAP GRAPH_POPUP Function Module for Interactive dialog box with texts, value fields and buttons









GRAPH_POPUP is a standard graph popup SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Interactive dialog box with texts, value fields and 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 graph popup FM, simply by entering the name GRAPH_POPUP into the relevant SAP transaction such as SE37 or SE38.

Function Group: GRAP
Program Name: SAPLGRAP
Main Program: SAPLGRAP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GRAPH_POPUP 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 'GRAPH_POPUP'"Interactive dialog box with texts, value fields and buttons
EXPORTING
* FRM_TITLE = ' ' "Pop-up title
* STAT = ' ' "Dialog parameter
* WINID = ' ' "Dialog parameter
* SNUM_ROW_HEIGHT = 4 "Level of a line
* SNUM_ROW_OFFSET = 4 "Line Spacing
* SNUM_XPOS = 5 "Starting position of the SNUM_TAB (line)
* SNUM_YPOS = 2 "Starting position of the SNUM_TAB (column)
* FRM_XC = ' ' "Absolute pop-up size, vertical
* FRM_XV = ' ' "Position grid, vertical
* FRM_YC = ' ' "Absolute pop-up size, horizontal
* FRM_YV = ' ' "Position grid, horizontal
* LINKTYPE = ' ' "Dialog parameter
* SNUM_BLANK_WIDTH = 5 "Width of the interval text / value column
* SNUM_TEXT_WIDTH = 70 "Width of the text column
* SNUM_VAL_WIDTH = 35 "Width of the value column

TABLES
BTTN_TAB = "Table with buttons
SNUM_TAB = "Table with scrolled number fields

EXCEPTIONS
INVALID_STAT = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLGRAP_001 Customer-specific authorization check and trace for download
EXIT_SAPLGRAP_002 Customer-specific check of the upload data (for example, for viruses)

IMPORTING Parameters details for GRAPH_POPUP

FRM_TITLE - Pop-up title

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

STAT - Dialog parameter

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

WINID - Dialog parameter

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

SNUM_ROW_HEIGHT - Level of a line

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

SNUM_ROW_OFFSET - Line Spacing

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

SNUM_XPOS - Starting position of the SNUM_TAB (line)

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

SNUM_YPOS - Starting position of the SNUM_TAB (column)

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

FRM_XC - Absolute pop-up size, vertical

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

FRM_XV - Position grid, vertical

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

FRM_YC - Absolute pop-up size, horizontal

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

FRM_YV - Position grid, horizontal

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

LINKTYPE - Dialog parameter

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

SNUM_BLANK_WIDTH - Width of the interval text / value column

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

SNUM_TEXT_WIDTH - Width of the text column

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

SNUM_VAL_WIDTH - Width of the value column

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

TABLES Parameters details for GRAPH_POPUP

BTTN_TAB - Table with buttons

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

SNUM_TAB - Table with scrolled number fields

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

EXCEPTIONS details

INVALID_STAT - Wrong value for STAT

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

Copy and paste ABAP code example for GRAPH_POPUP 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:
lt_bttn_tab  TYPE STANDARD TABLE OF STRING, "   
lv_frm_title  TYPE STRING, "   SPACE
lv_invalid_stat  TYPE STRING, "   
lv_stat  TYPE STRING, "   SPACE
lv_winid  TYPE STRING, "   SPACE
lv_snum_row_height  TYPE STRING, "   4
lv_snum_row_offset  TYPE STRING, "   4
lv_snum_xpos  TYPE STRING, "   5
lv_snum_ypos  TYPE STRING, "   2
lv_frm_xc  TYPE STRING, "   SPACE
lt_snum_tab  TYPE STANDARD TABLE OF GPOPSNUM, "   
lv_frm_xv  TYPE GPOPSNUM, "   SPACE
lv_frm_yc  TYPE GPOPSNUM, "   SPACE
lv_frm_yv  TYPE GPOPSNUM, "   SPACE
lv_linktype  TYPE GPOPSNUM, "   SPACE
lv_snum_blank_width  TYPE GPOPSNUM, "   5
lv_snum_text_width  TYPE GPOPSNUM, "   70
lv_snum_val_width  TYPE GPOPSNUM. "   35

  CALL FUNCTION 'GRAPH_POPUP'  "Interactive dialog box with texts, value fields and buttons
    EXPORTING
         FRM_TITLE = lv_frm_title
         STAT = lv_stat
         WINID = lv_winid
         SNUM_ROW_HEIGHT = lv_snum_row_height
         SNUM_ROW_OFFSET = lv_snum_row_offset
         SNUM_XPOS = lv_snum_xpos
         SNUM_YPOS = lv_snum_ypos
         FRM_XC = lv_frm_xc
         FRM_XV = lv_frm_xv
         FRM_YC = lv_frm_yc
         FRM_YV = lv_frm_yv
         LINKTYPE = lv_linktype
         SNUM_BLANK_WIDTH = lv_snum_blank_width
         SNUM_TEXT_WIDTH = lv_snum_text_width
         SNUM_VAL_WIDTH = lv_snum_val_width
    TABLES
         BTTN_TAB = lt_bttn_tab
         SNUM_TAB = lt_snum_tab
    EXCEPTIONS
        INVALID_STAT = 1
. " GRAPH_POPUP




ABAP code using 7.40 inline data declarations to call FM GRAPH_POPUP

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_frm_title) = ' '.
 
 
DATA(ld_stat) = ' '.
 
DATA(ld_winid) = ' '.
 
DATA(ld_snum_row_height) = 4.
 
DATA(ld_snum_row_offset) = 4.
 
DATA(ld_snum_xpos) = 5.
 
DATA(ld_snum_ypos) = 2.
 
DATA(ld_frm_xc) = ' '.
 
 
DATA(ld_frm_xv) = ' '.
 
DATA(ld_frm_yc) = ' '.
 
DATA(ld_frm_yv) = ' '.
 
DATA(ld_linktype) = ' '.
 
DATA(ld_snum_blank_width) = 5.
 
DATA(ld_snum_text_width) = 70.
 
DATA(ld_snum_val_width) = 35.
 


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!