cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - Disable cell grouping after column sorting

Former Member
0 Kudos

Hi,

In an ALV WD table is it possible to disable the the cell grouping of identical fields after sorting?

Using simple table view would be a solution, but I need the other functions of ALV.

Thanks in Advance,

Tamas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Problem solved.

Solution:


Data: lr_field TYPE REF TO CL_SALV_WD_FIELD.

lr_field = lr_cmdl->if_salv_wd_field_settings~get_field( 'YOUR_COLUMN_NAME' ).
lr_field->if_salv_wd_sort~set_grouping_allowed( value = abap_false ).

where lr_cmdl is of type cl_salv_wd_config_table,

and you get it like:

lr_if_controller = wd_this->wd_cpifc_alv( ).

lr_cmdl = lr_if_controller->get_model( ).

/Tamas