Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

cl_salv_table remove sort and filter buttons from menu and column options

former_member637921
Participant
0 Kudos
788

Hi,

I would like to remove sort and filter buttons from the menu but also from column options (when user clicks the mouse right button).

When i write the follwing code it removes the buttons menu but not from the column options.

    gcl_file_functions->set_all( 'X' ).

    gcl_file_functions
->set_group_layout( 'X' ).

    gcl_file_functions
->set_group_sort( ' ' ).

    gcl_file_functions
->set_group_filter( ' ' ).

    gcl_file_functions
->set_sort_asc( ' ' ).

    gcl_file_functions
->set_sort_desc( ' ' ).

    gcl_file_functions
->set_filter( ' ' ).

How can i prevent the user from sorting and filtering the data also from the clumn option?

Thanks'

Moshe

4 REPLIES 4

roberto_vacca2
Active Contributor
0 Kudos
189

Hi.

CHeck your screen "Other Attributes for Context Menu". There you can remove Context Menu or Customize It (if it's a custom report).

Take a look to BCALV_GRID_06 too.

Hope to help.

Bye

0 Kudos
189

Thanks for the reply.

I wanted to ask- Do i need to define a subroutine like

FORM ON_CTLMENU_XXXXX USING menu TYPE REF TO CL_CTMENU  ?

And if so, where do i define the context menu XXXXX?

Thanks,

Moshe

0 Kudos
189

Hi .

This is a guide

Context Menus - ABAP Programming (BC-ABA) - SAP Library

Should help you in creating and example and understand how it works.

Bye

0 Kudos
189

Thanks.

Read also in other links, but it seems that it is not possible to do it in SALV.

But i've learned about it so i might use it in dialog and in regular ALV