Skip to Content
avatar image
Former Member

Bar graph in Smartforms

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"

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 24, 2014 at 03:02 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 24, 2014 at 04:20 PM

    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 

    Add comment
    10|10000 characters needed characters exceeded