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: 

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

0 Kudos

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.

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

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.