cancel
Showing results for 
Search instead for 
Did you mean: 

Disable "User settings" context menu for ALV

Former Member
0 Kudos

Hi!

I've disabled "Settings" button for the ALV with code:

lr_alv_config->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).

lr_alv_config->if_salv_wd_std_functions~set_display_settings_allowed( abap_false ).

But settings dialog is still available from the context menu of the grid ("User Settings" item). How can this menu item be disabled?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You mean when you right click on the ALV grid, the USer settings of the context menu.. should get disbaled right.

In the WD application, use the parameter WDDISABLEUSERPERSONLIZATION to false('X').

Regards,

Lekha.

Answers (1)

Answers (1)

yesrajkumar
Active Participant
0 Kudos

Hi,

Try using the following methods, it will help you.

lr_alv_config->if_salv_wd_std_functions~IS_DIALOG_SETTINGS_ALLOWED( abap_false ).

lr_alv_config->if_salv_wd_std_functions~IS_FILTER_COMPLEX_ALLOWED( abap_false ).

lr_alv_config->if_salv_wd_std_functions~IS_FILTER_FILTERLINE_ALLOWED( abap_false ).

Thanks,

Rajkumar S.

Former Member
0 Kudos

Lekha, thanks, your recommendation has solved the problem (full points!).

WDDISABLEUSERPERSONLIZATION = X

Attention, X should be without quotes!

Edited by: abap 4 on Mar 24, 2009 8:55 AM