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: 

Sorting with ALV FM does not work

Former Member
0 Kudos
87

Hi all,

I use the ALV FM and the parameter IT_SORT to sort my ALV. I have 8 parameters which I want to sort. There are all marked with the read arrow in the display. But the grouping* for equal lines does only work for the first 7 columns. I already tried to use another sorting position and also tried another data element for the column in question but no result.

*With "grouping" i mean, that, if several lines have the same value in one column, this value is only shown for the first line and the cell is enlarged to all following lines with the same value in it.

Can anybode tell me, how to resolve this problem?

Thx!

2 REPLIES 2

former_member226203
Active Contributor
0 Kudos
59

try using the class cl_salv_filters.

data: gr_table type ref to cl_salv_table.

data: gr_filter type ref to cl_salv_filters.

gr_filter = gr_table->get_filters( ).

gr_filter->add_filter( columnname = 'FIELDNAME' low = 'LH' ).

Former Member
0 Kudos
59

There might be some changes that 8 th column is not any way related to other colums. Check this