SAP GRAPH_DIALOG Function Module for Execute graphics toolbox dialog









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

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



Function GRAPH_DIALOG 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_DIALOG'"Execute graphics toolbox dialog
EXPORTING
* CLOSE = ' ' "Close: ALL windows
* FWDID = ' ' "internal use only !!
* INBUF = ' ' "Standard dialog parameters (documentation only)
* KWDID = ' ' "Close: Window ID
* PWDID = ' ' "Standard dialog parameters (documentation only)
* STAT = ' ' "Standard dialog parameters
* SUPER = ' ' "Standard dialog parameters (documentation only)
* WINID = ' ' "Standard dialog parameters (documentation only)

IMPORTING
M_TYP = "Standard dialog parameters
RBUFF = "Standard dialog parameters
RWNID = "Standard dialog parameters
.




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_DIALOG

CLOSE - Close: ALL windows

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

FWDID - internal use only !!

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

INBUF - Standard dialog parameters (documentation only)

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

KWDID - Close: Window ID

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

PWDID - Standard dialog parameters (documentation only)

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

STAT - Standard dialog parameters

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

SUPER - Standard dialog parameters (documentation only)

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

WINID - Standard dialog parameters (documentation only)

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

EXPORTING Parameters details for GRAPH_DIALOG

M_TYP - Standard dialog parameters

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

RBUFF - Standard dialog parameters

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

RWNID - Standard dialog parameters

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

Copy and paste ABAP code example for GRAPH_DIALOG 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_close  TYPE STRING, "   SPACE
lv_m_typ  TYPE STRING, "   
lv_fwdid  TYPE STRING, "   SPACE
lv_rbuff  TYPE STRING, "   
lv_inbuf  TYPE STRING, "   SPACE
lv_rwnid  TYPE STRING, "   
lv_kwdid  TYPE STRING, "   SPACE
lv_pwdid  TYPE STRING, "   SPACE
lv_stat  TYPE STRING, "   SPACE
lv_super  TYPE STRING, "   SPACE
lv_winid  TYPE STRING. "   SPACE

  CALL FUNCTION 'GRAPH_DIALOG'  "Execute graphics toolbox dialog
    EXPORTING
         CLOSE = lv_close
         FWDID = lv_fwdid
         INBUF = lv_inbuf
         KWDID = lv_kwdid
         PWDID = lv_pwdid
         STAT = lv_stat
         SUPER = lv_super
         WINID = lv_winid
    IMPORTING
         M_TYP = lv_m_typ
         RBUFF = lv_rbuff
         RWNID = lv_rwnid
. " GRAPH_DIALOG




ABAP code using 7.40 inline data declarations to call FM GRAPH_DIALOG

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_close) = ' '.
 
 
DATA(ld_fwdid) = ' '.
 
 
DATA(ld_inbuf) = ' '.
 
 
DATA(ld_kwdid) = ' '.
 
DATA(ld_pwdid) = ' '.
 
DATA(ld_stat) = ' '.
 
DATA(ld_super) = ' '.
 
DATA(ld_winid) = ' '.
 


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!