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 jpeg

Former Member
0 Likes
490

Hi all

I'm looking to create a pie chart and save it in order to use it as an output on a Smartform. The creation of the jpeg will be done in the print program.

I have looked through several examples and I cannot seem to work out a way of doing this without using the GUI classes that require a custom controller and an output screen to produce the chart.

I have copied GFW_PROG_PIE, added the gp_inst->if_graphic_proxy~export method. This works fine when the export method is in a PAI module on save. However, if I remove the screen element of the program and the PBO/PAI modules and run the ABAP as a straight piece of code (i.e. without the screen output) the save object is always blank.

Any idea how I can reproduce the export functionality without the screen element.

Thanks in advance.

1 REPLY 1
Read only

rosenberg_eitan
Active Contributor
0 Likes
422

Hi,

To generate charts in the back ground you can use cl_igs_chart_engine .

See

The problem is incorporating this in the smart form .

You can generate a HTML mail message that will contain the resultant chart and text data .
 
Regards .