‎2004 Oct 24 4:03 PM
Hi,
I need to generate a graph for my statistical report, ALV do provide that option but the only graph format available is bar chart, and i need a line chart. Is that an option to change the graph format and do ALV has this kind of functionality.
Any suggestions are welcome.
Thanks,
CK
‎2004 Oct 24 6:30 PM
Hi CK
ALV displays the graph using GFW. So the graph has the capability to be displayed as line chart. But I do not know whether the ALV class gives the reference of the graph object.
If it doesn't, what about you make your own graphics? You can use "GRAPH_MATRIX" function modules or GFW classes. For GFW demos, inspect programs "GFW_DEMO".
Hope this can be some clue...
*--Serdar
‎2004 Oct 24 6:37 PM
Hi again
I, now, remember a parameter <b>"IT_ALV_GRAPHICS"</b> at the interface of the method <b>"set_table_for_first_display"</b>. Using this parameter you can pass some settings. You pass an internal table of type <b>"DTC_T_TC"</b>. The row type of the table has two fields (variables/value pairs):
<b>PROP_ID :</b> Assign a constant attribute of the class <b>CL_ALV_GRAPHICS_CU</b> with prefix <b>CO_PROPID_</b> to this field to determine the changes to be made to the graphic. Use the <b>CL_ALV_GRAPHICS_CU=>CO_PROPID_TITLE</b> attribute, for example, to refer to the title of the diagram.
<b>PROP_VAL :</b> The value of the relevant topic, for example, 'My Title'.
So check out the constant attributes of the class <b>CL_ALV_GRAPHICS_CU</b> starting with <b>CO_PROPID_</b> which may be relevant to your requirement.
*--Serdar