11-09-2007 11:45 AM
Hi, friends.
I'm using REUSE_ALV_GRID_DISPLAY FM. Everthing works fine. But I need to personalize the Graphic that is show when the user click in Graphic button.
I saw a parameter "IT_ALV_GRAPHICS", check it a but dont have a clue if this can solve my problem and how it works.
Is possible to personalize the Graphic using this FM? Any Examples?
José Oliveira.
11-09-2007 12:13 PM
<b>IT_ALV_GRAPHICS</b>
<i>
Settings for displaying the ALV list as a diagram (for example, axis labels). The row type of the table has two fields (variables/value pairs):
PROP_ID: Assign a constant attribute of the class CL_ALV_GRAPHICS_CU with prefix CO_PROPID_ to this field to determine the changes to be made to the graphic. Use the CL_ALV_GRAPHICS_CU=>CO_PROPID_TITLE attribute, for example, to refer to the title of the diagram.
PROP_VAL: The value of the relevant topic, for example, 'My Title'.</i>
So look (SE24) at attributes of the class CL_ALV_GRAPHICS_CU.
Regards
11-09-2007 1:23 PM
11-09-2007 1:36 PM
11-22-2007 9:43 AM
Hello,
I think i have the same problem. Fist i fill an internal table with my personal
datas (title, x-title, y-title).
DATA: it_alv_grafik TYPE TABLE OF dtc_s_tc.
DATA: wa_alv_grafik TYPE dtc_s_tc.
wa_alv_grafik-prop_id = cl_alv_graphics_cu=>co_propid_title.
wa_alv_grafik-prop_val = 'Jahresuebersicht'.
APPEND wa_alv_grafik TO it_alv_grafik.
wa_alv_grafik-prop_id = cl_alv_graphics_cu=>co_propid_x_title.
wa_alv_grafik-prop_val = 'Jahre'.
APPEND wa_alv_grafik TO it_alv_grafik.
wa_alv_grafik-prop_id = cl_alv_graphics_cu=>co_propid_y_title.
wa_alv_grafik-prop_val = 'Anzahl Belege'.
APPEND wa_alv_grafik TO it_alv_grafik.
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
is_layout = wa_layout
it_toolbar_excluding = it_funktionen
<b> it_alv_graphics = it_alv_grafik</b>
CHANGING
it_outtab = lt_uebersicht_jahr
it_fieldcatalog = gt_fieldcat.
But when i click on the graphic button there is no title, x-title or y-title.
Where is my failure or is there an other way to change the alv graphics?
Can somebody help me?
Regards
07-07-2010 11:48 AM
The thread seems to be very useful but would be cool to get an update.
Are there any more pieces of experience you could share?
Thank you, Otto