cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Sorting functionality of ALV

Former Member
0 Kudos

Hello,

How can you disable the SORT functionality of teh ALV which is shown with each column head. I want to disable for all the columns.

Thnx

-Sid

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Using the if_salv_wd_field_settings, get the field name and apply the sort functionality method value to none.

Using this both filter and sort is disabled for all the columns in the ALV.

DATA:  lr_filter  TYPE REF TO if_salv_wd_std_functions.

*" Set the UI elements.
  lr_filter  ?= lr_model.

*" Specify the setting for using ALV filter
  lr_filter->set_filter_complex_allowed( value = abap_false ).
  lr_filter->set_sort_headerclick_allowed( abap_false ).
  lr_filter->set_filter_filterline_allowed( abap_false ).
  lr_filter->set_sort_complex_allowed( abap_false ).
  lr_filter->set_view_list_allowed( abap_false ).
  lr_filter->set_pdf_allowed( abap_false ).

Regards,

Lekha.

Former Member
0 Kudos

Bingo!! It worked !

Thnx

-Sid

Answers (0)