SAP GRAPHIC_DATA Function Module for









GRAPHIC_DATA is a standard graphic data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 graphic data FM, simply by entering the name GRAPHIC_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function GRAPHIC_DATA 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 'GRAPHIC_DATA'"
EXPORTING
CODE = "
* EXIM = 'EX' "
* I_GRAPHIC = "
WINID = "
* I_PORTFOLIO = "

IMPORTING
E_GRAPHIC = "
E_PORTFOLIO = "

TABLES
* 2D_TAB = "
* DIM3_TAB = "
* I_OBJT = "
* OPTIONS = "
* OPTION_TAB = "
* VALUES = "
* 3D_TAB = "
* AREA = "
* AXIS = "
* COL_ROW_TEXT = "
* COL_TEXT_TAB = "
* DATE_TAB = "
* DIM1_TAB = "
* DIM2_TAB = "
.



IMPORTING Parameters details for GRAPHIC_DATA

CODE -

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

EXIM -

Data type: CFCODES-M_EXIM
Default: 'EX'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GRAPHIC -

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

WINID -

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

I_PORTFOLIO -

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

EXPORTING Parameters details for GRAPHIC_DATA

E_GRAPHIC -

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

E_PORTFOLIO -

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

TABLES Parameters details for GRAPHIC_DATA

2D_TAB -

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

DIM3_TAB -

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

I_OBJT -

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

OPTIONS -

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

OPTION_TAB -

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

VALUES -

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

3D_TAB -

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

AREA -

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

AXIS -

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

COL_ROW_TEXT -

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

COL_TEXT_TAB -

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

DATE_TAB -

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

DIM1_TAB -

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

DIM2_TAB -

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

Copy and paste ABAP code example for GRAPHIC_DATA 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_code  TYPE T242P-WTYPE, "   
lt_2d_tab  TYPE STANDARD TABLE OF CFB2D01, "   
lv_e_graphic  TYPE CFGRAPHIC, "   
lt_dim3_tab  TYPE STANDARD TABLE OF CFBDI02, "   
lt_i_objt  TYPE STANDARD TABLE OF GPOOBJT, "   
lt_options  TYPE STANDARD TABLE OF CFOPTTAB, "   
lt_option_tab  TYPE STANDARD TABLE OF CFBOP01, "   
lt_values  TYPE STANDARD TABLE OF CFBVL01, "   
lv_exim  TYPE CFCODES-M_EXIM, "   'EX'
lt_3d_tab  TYPE STANDARD TABLE OF CFB3D01, "   
lv_e_portfolio  TYPE CFPOFOLIO, "   
lt_area  TYPE STANDARD TABLE OF GPOAREA, "   
lv_i_graphic  TYPE CFGRAPHIC, "   
lt_axis  TYPE STANDARD TABLE OF GPOAXIS, "   
lv_winid  TYPE T242P-WINID, "   
lv_i_portfolio  TYPE CFPOFOLIO, "   
lt_col_row_text  TYPE STANDARD TABLE OF CFBCT01, "   
lt_col_text_tab  TYPE STANDARD TABLE OF CFBDI02, "   
lt_date_tab  TYPE STANDARD TABLE OF CFBDT01, "   
lt_dim1_tab  TYPE STANDARD TABLE OF CFBDI02, "   
lt_dim2_tab  TYPE STANDARD TABLE OF CFBDI02. "   

  CALL FUNCTION 'GRAPHIC_DATA'  "
    EXPORTING
         CODE = lv_code
         EXIM = lv_exim
         I_GRAPHIC = lv_i_graphic
         WINID = lv_winid
         I_PORTFOLIO = lv_i_portfolio
    IMPORTING
         E_GRAPHIC = lv_e_graphic
         E_PORTFOLIO = lv_e_portfolio
    TABLES
         2D_TAB = lt_2d_tab
         DIM3_TAB = lt_dim3_tab
         I_OBJT = lt_i_objt
         OPTIONS = lt_options
         OPTION_TAB = lt_option_tab
         VALUES = lt_values
         3D_TAB = lt_3d_tab
         AREA = lt_area
         AXIS = lt_axis
         COL_ROW_TEXT = lt_col_row_text
         COL_TEXT_TAB = lt_col_text_tab
         DATE_TAB = lt_date_tab
         DIM1_TAB = lt_dim1_tab
         DIM2_TAB = lt_dim2_tab
. " GRAPHIC_DATA




ABAP code using 7.40 inline data declarations to call FM GRAPHIC_DATA

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.

"SELECT single WTYPE FROM T242P INTO @DATA(ld_code).
 
 
 
 
 
 
 
 
"SELECT single M_EXIM FROM CFCODES INTO @DATA(ld_exim).
DATA(ld_exim) = 'EX'.
 
 
 
 
 
 
"SELECT single WINID FROM T242P INTO @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!