2006 Dec 08 3:01 PM
DEAR ALL,
I want some help as to how to creat GRAPHICAL display using ABAP programing (BAR CHART) any sample codes Example will be very helpful.
Regards,
VJ
2006 Dec 08 3:05 PM
Hi,
Check this standard program for Bar chart
GRAPHICS_IGS_CHART_TEST
2006 Dec 08 3:05 PM
Hi,
Check this standard program for Bar chart
GRAPHICS_IGS_CHART_TEST
2006 Dec 08 3:08 PM
On earlier versions, you can do something like this.
[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
2006 Dec 08 3:14 PM
Hi
Please check these standard programs
GFW_PROG_BAR
GFW_PROG_PORTFOLIO
GFW_PROG_SPEEDOMETER
GRAPHICS_IGS_CHART_TEST
2006 Dec 08 10:30 PM
Hi,
Try transaction GRAL.
It will show you many examples...
Krzys
2006 Dec 11 10:31 AM
Hi,
instead of using these very old graphics tools I recommend to use the Chart Engine instead (cl_gui_chart_engine / cl_igs_chart_engine). Download the SAP Chart Designer from SDN - Downloads first and start creating your charts.
Regards, Kai
2006 Dec 11 4:57 PM
cl_gui_chart_engine / cl_igs_chart_engine
I downloaded the chart Engine but, can you give me some examples as to how to go ahead and create the barcharts on this tool.
Regards,
VJ
2006 Dec 11 10:24 PM
Hi ,
I am still having problems in choosing the right function module Please suggest me with any more options in this matter.
Regards,
VJ
how to make this FM work please help!! i am getting a blank screen when i try to work this FM.
GFW_PRES_SHOW_MULT
2006 Dec 12 8:10 AM
Hi VJ,
after starting the chart designer you see a Columns chart. Go to the Global Settings and change the property chart type, e.g. choose Bars in the list. That's all!
You can use the chart designer to create your customizing settings, save them as XML and use this XML within your application. Please also read the great web log about <a href="/people/thomas.jung3/blog/2004/08/31/bsp-150-a-developer146s-journal-part-x--igs-charting in BSP</a>.
Regards, Kai
2006 Dec 15 9:52 PM
Kai,
Can you suggest me some sample code to use XML cosd in the application to generate Graph.
Regards,
VJ
2006 Dec 18 10:00 AM
VJ,
please have a look at the programs
GRAPHICS_GUI_CE_DEMO (using chart engine locally as a SAPGUI control) and
GRAPHICS_IGS_CE_TEST (using chart engine of IGS).
Both programs use the iXML classes to generate data and customizing XML. But as mentioned before it's easier to use the Chart Designer for creating the customizing XML.
Regards, Kai
2006 Dec 15 10:44 PM
check this sample reports,
GFW_PROG_BAR
GFW_PROG_PORTFOLIO
GFW_PROG_SPEEDOMETER
Shreekant