on 02-02-2009 2:14 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.