Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

What are SAP Graphics
SAP Graphics is a tool to create 2D and 3D graphics.
SAP Graphics provide a number of display options like 2D and 3D graphs, single view or group view etc.
Function Modules for Graphics:

RAPH_2D Calling up the 2D business graphics
GRAPH_3D Calling up the 3D presentation graphics
GRAPH_BUSG_COLOR_SET Definition of color pallets for business graphics
GRAPH_BUSG_MENU_SET Pushbutton menu (tool bar) for all BUSG modules
GRAPH_MATRIX Calling up SAP Business Graphics (2D, 3D and 4D)
GRAPH_MATRIX_2D Calling up the 2D graphics (user-friendly version)
GRAPH_MATRIX_3D Structure of 3D graphics (user-friendly version)
GRAPH_MATRIX_4D Calling up a 3D graphic (4th dimension stacked representation

Simple example program

*&---------------------------------------------------------------------*
*& Report  Z71939_TEST_PROG
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT  z71939_test_prog.
DATA: BEGIN OF tab OCCURS 5,
class(5) TYPE c,
val1 TYPE i,
val2 TYPE i,
val3 TYPE i,
END OF tab.
DATA: BEGIN OF opttab OCCURS 1,
c(20),
END OF opttab.
MOVE: 'fan' TO tab-class,
12 TO tab-val1, 8 TO tab-val2, 15 TO tab-val3.
APPEND tab.
CLEAR tab.
MOVE: 'cool' TO tab-class,
15 TO tab-val1, 10 TO tab-val2, 18 TO tab-val3.
APPEND tab.
CLEAR tab.
MOVE: 'DA' TO tab-class,
17 TO tab-val1, 11 TO tab-val2, 20 TO tab-val3.
APPEND tab.
CLEAR tab.
opttab = 'FIFRST = 3D'. APPEND opttab. "// Grafik-Typ
opttab = 'P3TYPE = TO'. APPEND opttab. "// Objektart
opttab = 'P3CTYP = RO'. APPEND opttab. "// Farben der Objekte
opttab = 'TISIZE = 2'. APPEND opttab. "// Haupttitelgr?
opttab = 'CLBACK = X'. APPEND opttab. "// Background Color
CALL FUNCTION 'GRAPH_MATRIX_3D'
 EXPORTING
   AUTO_CMD_1        = ' '
   AUTO_CMD_2        = ' '
   COL1              = '2008'
   COL2              = '2007'
   COL3              = '2006'
   COL4              = ' '
   COL5              = ' '
   COL6              = ' '
   DIM1              = 'PRODUCT'
   DIM2              = 'YEAR'
   TITL              = 'TESTING SAP GRAPHS'
   WINSZX            = '50'
   WINSZY            = '50'
  TABLES
    data              = TAB
    opts              = opttab
          .
 
 
 
 
 
 
 
 

Click on Overview:

 
We get multiple views:


 

View by different groups:  Playing with different views:


 

Getting year by data using Sel. Up and Sel. Down:

 


 

 

 

Different viewing options:

2-Dimensional View:  

3-Dimensional View:  

  • No labels