cancel
Showing results for 
Search instead for 
Did you mean: 

SALV_WD_TABLE issues with views

Szczerbowski
Active Participant
0 Kudos

Hi,

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?

Accepted Solutions (1)

Accepted Solutions (1)

Szczerbowski
Active Participant

Hi,

Did you even read my question?

I want to GET not SET, the selected view.

In the end i enhanced interface IF_SALV_WD_COMP_TABLE_PERS_800

with a method GET_VIEW and implemented it in CL_SALV_WD_PERS_CONTROLLER

to get the private attribute S_CONFIG_KEY which stores the actual selected view.

Afterwards you can use standard ways to reapply it to the ALV.

Answers (1)

Answers (1)

prathamesh_gandhi
Participant
0 Kudos

Hi Michal,

Please check below link, it may help you.

WD -SALV- setting initial view | SCN