Skip to Content
0

Change the values of list_commentary(header data) dynamically of class CL_GUI_ALV_TREE_SIMPLE

Nov 22, 2017 at 11:00 AM

32

avatar image

For example

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

CALL METHOD tree1->set_table_for_first_display
EXPORTING
is_layout = gw_layo
it_list_commentary = lt_list_commentary
CHANGING
it_sort = i_sort
it_outtab = gt_final_item
it_fieldcatalog = i_fieldcatalog.

lt_list_commentary has some default value,i have created a button and values are calculated automatically . now i need to update the calculated vales to list_commentary(header) dynamically after pressing the button.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandra Rossi Nov 22, 2017 at 08:42 PM
0

The ALV header is not designed for interaction. Of course, it's an HTML control, so you could do it by some complex ways. Why not creating your own custom HTML control (CL_GUI_HTML_VIEWER) that you place above the ALV, it will be easier to handle the event SAPEVENT. Cf demo program SAPHTML_EVENTS_DEMO.

Of course, you could define the button in your own dynpro instead of using CL_GUI_HTML_VIEWER.

Share
10 |10000 characters needed characters left characters exceeded