cancel
Showing results for 
Search instead for 
Did you mean: 

ALV lead selection + ALV sorting

Former Member
0 Kudos

Hi Guys,

When I sort my alv using the code below, there is no more lead selection in my alv :

    • Sort the table by date descending*

lo_field = value->if_salv_wd_field_settings~get_field( 'CREATED_ON' ).

lo_field->if_salv_wd_sort~create_sort_rule( sort_order = if_salv_wd_c_sort=>sort_order_descending ).

My alv is linked to a context node with cardinality = 0...N, selection = 0...1 and Initialize lead selection is set to 'X'.

If I delete the sorting code , the lead selection is wirking fine.

Do you know how to solve this?

Thanks

Karim

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I managed to solve this by calling method set_refresh_on_data_change of class if_salv_wd_table_settings.

kr

Karim

Former Member
0 Kudos

Thanks for your help Rohit.

Could you plaese provide the methods that have to be called?

kr

Karim

Former Member
0 Kudos

Call the ALV lead selection again and call apply ALV services method to apply the changes.

Best regards,

Rohit