‎2007 Nov 06 9:41 AM
Hi All,
I am looking for Sample code, how to draw Pie chart using standard class: cl_igs_chart.
I found a Standard SAP prog: GRAPHICS_IGS_CHART_TEST for drawing Bar chart, looking for pie chart now?
Please help me!!
Thanks in advance.
‎2007 Nov 06 10:12 AM
Hi,
Have look at this "GFW_PROG_PIE"....
If the hint is useful . Say thanks by reward .
Regards,
Prabhu Rajesh
‎2007 Nov 06 10:12 AM
Hi,
Have look at this "GFW_PROG_PIE"....
If the hint is useful . Say thanks by reward .
Regards,
Prabhu Rajesh
‎2007 Nov 06 10:27 AM
Thanks for your Quick reply, When i am running the code GFW_PROG_PIE in background , it is failing.
‎2007 Nov 06 10:43 AM
Hi Vipin
Programs that run in the background cannot address controls on the frontend. The program probably is accessing front end controls and this is not supported in the background mode.
Regards
Arun
‎2007 Nov 06 11:48 AM
Thanks Arun for you reply, I need a code which i can run as background job.
‎2007 Nov 06 2:40 PM
Hi,
if you want to create charts in the background using the IGS is the right choice!
Let's have a look at cl_igs_chart:
creating a pie chart can be done easily by changing the demo report graphics_igs_chart_test; just change the line
igs_chart->type = cl_igs_chart=>co_type_bars.
by replacing co_type_bars with co_type_pie (check the attributes of cl_igs_chart to see a list of chart types).
However, as cl_igs_chart does not provide further customizing settings I recommend that you download the SAP Chart Designer (as mentioned above) and use the class cl_igs_chart_engine instead. Demo report is graphics_igs_ce_test.
Regards, Kai
‎2007 Nov 06 4:21 PM
Thanks Kai for your reply.
Even when i am trying to run graphics_igs_ce_test as background job it is failing but when i am running in forground, i can see output.
any suggestion?
‎2007 Nov 06 4:27 PM
Sure, the chart created by the IGS is passed to an HTML control. Copy the report and remove this part with the control (cl_gui_html_viewer). Then you will see that the IGS can be used without SAPGUI.
Regards, Kai
‎2007 Nov 06 10:24 AM
Hi
Check transaction GRAL and in that specifically GFW_PROG_PIE should help you.
In addition to this please also check the chart engine (cl_gui_chart_engine).
You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS.
Regards
Arun