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

ALV Graph

Former Member
0 Likes
530

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

2 REPLIES 2
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
492

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

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
492

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