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: 

Bar graph in Smartforms

Former Member
0 Kudos

Hi

I am trying to create Bar graph in Smartforms with table data following thread http://scn.sap.com/thread/1323437 replied by Sandip Panigrahi.  Actually I am stuck at creating empty space text to reduce background color to show as graph.  Can anyone help me?

Thanks

Prasad

Posted by Sandip Panigrahi:

"You create a window resembling the bar with some background color.  If you print window, it will print like a bar with color that you have given.

Now, create a table with one cell whose position and width should overlap the created window.  Then according to the data you fill up the table (note that the contents of the cell will be space).  That way the window will be reduced from the top and hence will represent a bar displaying data.

Similarly you can create other windows and their corresponding tables so at the end it looks like a bar-chart.  It works well and I have dont it.

First you try with one window and table.  Let me know if you need more clarification.

Regards,

Sandip.

Edited by: Sandip Panigrahi on Apr 28, 2009 4:09 PM"

2 REPLIES 2

Former Member
0 Kudos

Hi Parsad,

The main window with one background color, bar window with a 'TABLE'.

Say main window height 50. You know the output sequence is from top to bottom, then if you want output a height 30 bar. you need fill 20 blank cell to 'TABLE'. that`s the 'reduce' manning.

Full detail show in this wiki, Smartform with BAR GRAPH - ABAP Development - SCN Wiki

regards,

Archer

Former Member
0 Kudos

Hi Archer

I am able to get it as I missed the point of both windows should overlap each other with same dimensions.  One with some color and other one with white line using table with data to reduce color.

Thanks for your help to rethink how I am trying to understand.

Prasad