Skip to Content
Jun 17, 2016 at 02:58 PM

SALV_WD_TABLE issues with views



I have a selection screen with EXECUTE button to search, and and ALV below that displays values.

The problem is with the standard view.

If the user pick a custom layout, goes back to [standard view] and executes search that refreshes ALV, then [standard view] look and feel is applied, but custom layout is highlighted in the selection dropdown of the view.

I also tried to get the current selected view, but it either always returns current or previous custom view:

wd_this->ls_view_key = wd_this->wd_cpifc_result_table( )->wd_get_api( )->get_component( )->get_configuration_key( )

or always returns empty description, which is the standard view:

wd_this->wd_cpifc_result_table( )->wd_get_api( )->get_component( )->get_configuration_key( ).

So i never know which one to reapply.

Any hints?