cancel
Showing results for 
Search instead for 
Did you mean: 

WDA ALV - value grouping after column sort

Former Member
0 Kudos

Hi,

We are using the WDA ALV component in our application. Whem making use of the standard 'sort' functionality by pressing on a column header, all identical values of that

column are grouped into a single group entry.

As we still need to access every single cell of that column, I am looking for a way to

suppress this value grouping after sort. I did not find any methods in the ALV model to do so. Any ideas on how to suppress this?

Thanks for your help!

Robert

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Robert,

You can call the method set_grouping_allowed in the interface if_wd_salv_sort.

data lo_interfacecontroller type ref to iwci_salv_wd_table .

data lo_value type ref to cl_salv_wd_config_table.

data lo_field type ref to cl_salv_wd_field.

lo_interfacecontroller = wd_this->wd_cpifc_alv_comp( ).

lo_value = lo_interfacecontroller->get_model( ).

lo_field = lo_value->if_salv_wd_field_settings~get_field( fieldname = 'CURRENCY' ).

lo_field->if_salv_wd_sort~set_grouping_allowed( value = ABAP_false.).

Regards,

Neha

<i><b>PS:Reward if helpful</b></i>

Former Member
0 Kudos

Hi Neha,

This solved my issue as well. I had a CSN mesg & this thread helped me solve it immediately.

Thanks,

Phani

Answers (1)

Answers (1)

Former Member
0 Kudos

Neha,

thank you, this solved the problem.

Cheers, Robert