06-21-2007 2:09 PM
06-21-2007 2:14 PM
Try with <b>GFW_PROG_BAR</b> or <b>GFW_PROG_COLUMNS_AND_TIME_AXIS</b> -;)
Greetings,
Blag.
06-21-2007 2:14 PM
Try with <b>GFW_PROG_BAR</b> or <b>GFW_PROG_COLUMNS_AND_TIME_AXIS</b> -;)
Greetings,
Blag.
06-21-2007 2:14 PM
Sure, here is an example. In Netweaver releases, I believe that the new way is to use the IGS. This example uses technology available in 46c
[code]
REPORT ZRICH_0005 .
DATA: BEGIN OF ITAB_DATA OCCURS 0,
DATANAME(15),
QUANTITY1 TYPE I,
QUANTITY2 TYPE I,
QUANTITY3 TYPE I,
END OF ITAB_DATA.
Data: BEGIN OF ITAB_OPTIONS OCCURS 0,
OPTION(20),
END OF ITAB_OPTIONS.
ITAB_DATA-DATANAME = 'Maple'.
ITAB_DATA-QUANTITY1 = 5500.
ITAB_DATA-QUANTITY2 = 6200.
ITAB_DATA-QUANTITY3 = 5900.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Oak'.
ITAB_DATA-QUANTITY1 = 3500.
ITAB_DATA-QUANTITY2 = 5200.
ITAB_DATA-QUANTITY3 = 4400.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Cherry'.
ITAB_DATA-QUANTITY1 = 1800.
ITAB_DATA-QUANTITY2 = 2200.
ITAB_DATA-QUANTITY3 = 1900.
APPEND ITAB_DATA.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
COL1 = 'Jan'
COL2 = 'Feb'
COL3 = 'Mar'
TITL = 'Lumber Usage in $'
TABLES
DATA = ITAB_DATA
OPTS = ITAB_OPTIONS
EXCEPTIONS
OTHERS = 1.
[/code]
Regards,
Rich Heilman
06-22-2007 1:48 PM
Hi Rich,
that's right. IGS - or the chart engine - is the new and better way to use charts in new applications. Therefore let's do not mention the old function modules
As Matthias mentioned above it's also possible to use the chart engine as a SAPGUI component; in this case the IGS is not involved at all.
Regards, Kai
06-22-2007 7:52 AM
Hi Ravi,
an example that uses the XMLCHART interpreter of the IGS is contained in program GRAPHICS_IGS_CE_TEST. A demo program which uses the chart control of SAP Gui is GRAPHICS_GUI_CE_DEMO.
Both ways use the same XML based data and customizing format. In the SDN Downloads section you can download the SAP Chart Designer. With this tool you are able to create the chart customizing interactively. It also contains a description of the data format.
Best regards
Matthias
06-22-2007 7:59 AM
Hi Ravi
Check this link
http://help.sap.com/saphelp_nw04s/helpdata/en/86/243f403f0a9354e10000000a155106/content.htm
https://www.sdn.sap.com/irj/sdn/profile?userid=3605744
Reward all helpfull answers
Regards
Pavan