cancel
Showing results for 
Search instead for 
Did you mean: 

Hide [Standard View] choice in the view selection dropdown

Former Member
0 Kudos

Hi experts!

We've created some set of views with nice names for our ALV. So '[Standard View]' choice is not needed. Is there a way to hide it (not the dropdown itself - only the item in it)?

Accepted Solutions (0)

Answers (2)

Answers (2)

Abhijeet-K
Active Participant
0 Kudos

Hi,

We have a similar requirement as the one you started this thread with, viz., remove the standard view, once specific views are created. The solutions listed here don't suit the objective. Any headway on the same?

-Abhijeet.

Former Member
0 Kudos

Hi,

DATA:
  lr_model type ref to cl_salv_wd_config_table,
  lr_filter  TYPE REF TO if_salv_wd_std_functions.    "Reference for the standard alv function

*" Set the UI elements.
if lr_model is not initial.
  lr_filter  ?= lr_model.         "Model object for ALV


lr_filter->set_view_list_allowed( abap_false ).

Regards,

Lekha.

Former Member
0 Kudos

Lekha, unfortunately this code hides whole dropdown list. But I need to remove only one item in it - 'Standard View' item.

Former Member
0 Kudos

Hi Lehka - I'm trying to hide all the ALV header (VIEW, PRINT VERSION, Export, filter settings) but trying this code I received an error saying " Access via "NULL" object reference not possible"

Can you explain to me why this is happening?

Thanks!

Jason P-V

Former Member
0 Kudos

Can you check in ST22 for NUll reference....Paste your code...

Former Member
0 Kudos

Hi,

You are on which version of Netweaver.... i don't think so we can delete an item from that dropdown....

Former Member
0 Kudos

I figure it out....I made a simple mistake adding the interface to the view.

its working properly now. Thanks.

Jason P-V

Former Member
0 Kudos

one thing I cant delete the "FILTER and Setting" from the toolbar.

Do you know how?

Jason P-V

Former Member
0 Kudos

Hi

Use the following method SET_FILTER_FILTERLINE_ALLOWED, SET_DIALOG_SETTINGS_ALLOWED in the interface IF_SALV_WD_STD_FUNCTIONS.

Ranganathan.