cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding 'STANDARD VIEW' option from the ALV dropdown in WD

Former Member
0 Kudos

Hi Expets,

We have a requirement to hide/delete the 'STANDARD VIEW' option from the ALV dropdown list for selection of views such that the user will not

be able to access the view.

The user should only be able to see the Custom created view options in the Dropdown and hiding of  the dropdown altogether is not accepted.

Any pointers regarding the solution is welcome as it is sort of urgent.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

  data lo_cmp_usage type ref to if_wd_component_usage.
  data lo_interfacecontroller type ref to iwci_salv_wd_table .

  data l_table type ref to cl_salv_wd_config_table.

  lo_cmp_usage =   wd_this->wd_cpuse_work_item_alv( ).

  if lo_cmp_usage->has_active_component( ) is initial.
    lo_cmp_usage->create_component( ).
  endif.

  lo_interfacecontroller =   wd_this->wd_cpifc_work_item_alv( ).
  l_table lo_interfacecontroller->get_model( ).

  l_table->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).

Former Member
0 Kudos

Hi Matthew,

I have tried the said approach but it leads to hiding of the dropdown altogether.

I only need to hide the 'STANDARD VIEW' option from the dropdown list and the user should be able to select from a list of other Custom created views.

0 Kudos

Please try

  l_table->if_salv_wd_std_functions~SET_FILTER_COMPLEX_ALLOWED( abap_true ).

  l_table->if_salv_wd_std_functions~SET_FILTER_FILTERLINE_ALLOWED( abap_true ).

as well

Former Member
0 Kudos

No..still not working as desired.

Answers (0)