‎2008 Jan 11 10:52 AM
Hi all,
I have requirement for displaying output as graphs .
Pls tell me if any function modules are available.
I need the column graphs,pie charts etc as o/p.
‎2008 Jan 11 10:54 AM
Hi,
use this function modules
GRAPH_2D
GRAPH_3D
regards,
Santosh Thorat
‎2008 Jan 11 10:55 AM
Hi shital,
Functions for Drawing Business Graphics
You can call SAP Business Graphics from an ABAP program, and generate a business graphic at the user's workstation terminal. Your program specifies the data and calls one of the following function modules:
GRAPH_2D
GRAPH_3D
GRAPH_MATRIX_2D
GRAPH_MATRIX_3D
GRAPH_MATRIX_4D
GRAPH_MATRIX
<REMOVED BY MODERATOR>
Sandeep
Edited by: Alvaro Tejada Galindo on Jan 11, 2008 5:59 PM
‎2008 Jan 11 10:56 AM
To add a graphics functionality to ALV Grid;
1. Add a user button on the ALV Grid control, utilizing "toolbar" event and "set_toolbar_interactive" methods of the class "cl_gui_alv_grid".
2. As the function of this button, your routine should use GFW objects or "GRAPH_MATRIX..." function modules to display your graph. You implement your routine at the event "user_command".
Additionaly, you can have a look at this
SAP Graphics Help
-
http://help.sap.com/saphelp_46c/helpdata/en/a1/d9883672d57c73e10000009b38f889/frameset.htm
data: begin of i_tab occurs 0,
name(5) type c,
value type p,
end of i_tab.
i_tab-name = 'SAP'.
i_tab-value = '40'.
append i_tab.
clear i_tab.
i_tab-name = 'MSN'.
i_tab-value = '30'.
append i_tab.
clear i_tab.
i_tab-name = 'CNN'.
i_tab-value = '27'.
append i_tab.
clear i_tab.
i_tab-name = 'ABC'.
i_tab-value = '56'.
append i_tab.
clear i_tab.
call function 'GRAPH_2D'
EXPORTING
TYPE = 'PI'
TITL = 'My Graph'
tables
data = i_tab
EXCEPTIONS
GUI_REFUSE_GRAPHIC = 1
OTHERS = 2
.
if sy-subrc 0.
endif.
Also,Check the fun modules
GRAPH_2D Calling up the 2D business graphics
GRAPH_2D_MENUE DO NOT USE (use 'GRAPH_2D' and 'GRAPH_BUSG_MENU_SET')
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)
Regards,
‎2008 Jan 14 2:04 PM
Hi,
if you use these outdated GRAPH* function modules the charts always appear in a separate window.
If you want to use the latest chart technology and/or see the chart in an arbitraty dynpro container use the chart engine (CL_GUI_CHART_ENGINE). See the reports GRAPHICS_GUI_CE_DEMO and GRAPHICS_IGS_CE_TEST. BTW, the SAP Chart Designer is available on SDN - Downloads - WebAS for creating the charts settings interactively.
Regards, Kai