Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pie chart using Class cl_igs_chart ??

Former Member
0 Likes
1,476

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,298

Hi,

Have look at this "GFW_PROG_PIE"....

If the hint is useful…. Say thanks by reward….

Regards,

Prabhu Rajesh

8 REPLIES 8
Read only

Former Member
0 Likes
1,299

Hi,

Have look at this "GFW_PROG_PIE"....

If the hint is useful…. Say thanks by reward….

Regards,

Prabhu Rajesh

Read only

0 Likes
1,298

Thanks for your Quick reply, When i am running the code GFW_PROG_PIE in background , it is failing.

Read only

0 Likes
1,298

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

Read only

0 Likes
1,298

Thanks Arun for you reply, I need a code which i can run as background job.

Read only

kai_gutenkunst
Product and Topic Expert
Product and Topic Expert
0 Likes
1,298

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

Read only

0 Likes
1,298

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?

Read only

kai_gutenkunst
Product and Topic Expert
Product and Topic Expert
0 Likes
1,298

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

Read only

Former Member
0 Likes
1,298

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