We have WD application where we are using multiple tabs. In those tabs, we are showing data in ALV. we are using 5 to 6 ALV, and as per requirement we need to set the table headings as defined by business. Setting column heading is done in WDDOINIT method for each ALV.
below code is used for it,
LOOP AT lt_columns INTO ls_column. " get header of column
lr_col_header = ls_column-r_column->create_header( ).
lr_col_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none ).
Get the text symbols
l_string = wd_assist->if_wd_component_assistance~get_text( '026' ).
lr_col_header->set_text( EXPORTING value = l_string ).
My Question is, each time when the application is refreshed, it will go to WDDOINIT method and execute all this code again. And as there are 5 ALV, it seems performance issue.
Is there any better way to improve on this? Also is there any way to set ALV when only particular tab is selected?
Please let me know.