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: 

ALV Graphics

Former Member
0 Kudos

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.

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

<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

0 Kudos

Nice, Raymond. Starting to understand.

Any Example?

0 Kudos

Sorry, not in my current site

Regards

0 Kudos

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

OttoGold
Active Contributor
0 Kudos

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