Application Development 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: 

Plotting line graph in SAP ABAP

Former Member
0 Kudos

Hi friends,

I have a requirement to plot a line graph for a given set of data. Now i went through some of the demo programs in the transaction GRAL but none confirm to my requirement. I need to plot minimum 36 points on the x axis (at least 3 years data for each month) and my Y- axis  will have a range from -10 to 10. But the range -10 to 10 should lie above the x-axis. the program 'DEMO_GFW_PRES_SHOW' shows the negative values below the X-axis(mathematically perfect, but i am trying to plot sales data) and X axis can plot maximum of 32 points only....again i tried the program 'GRSTAT_2' (sine/cosine function), this plots negative values above the X-axis but, displays values like 1.5, 2.3,3.7, etc. etc on X-axis. So again it does not serve the purpose as i want whole numbers bot on X and Y axis.

Please let me know if you have any suggestions.

Best Regards,

MK.

1 REPLY 1

david_liu1
Advisor
Advisor
0 Kudos

Hello,

Unfortunately there is no way to print the graphics displayed in the demo program DEMO_GFW_PRES_SHOW_MULT.  This is a just demo program and there is no further development on these demo programs to support new functionality.

You may need to check the class CL_GUI_CHART_ENGINE and use the same.
A good starting point for using the chart engine is the download of the SAP Chart Designer in SDN: in
http://www.sdn.sap.com/irj/scn/downloads look for the section of SAP Chart Designer and download the package.

Regards,

David