cancel
Showing results for 
Search instead for 
Did you mean: 

Column Grouping in WebDynPro ALV

Former Member
0 Kudos

Hi,

Is there any way that we can do column aggregation or column grouping in the WebDynpro ALV like we do row grouping or row aggregation in WD ALV.

Best Regards

Sid

Accepted Solutions (1)

Accepted Solutions (1)

former_member182190
Active Participant
0 Kudos

Hi Sid,

Try using this line of code.

lr_field_settings->->set_multi_column_sort( 'X' ).

Hope this helps.

Regards,

Ismail.

Answers (1)

Answers (1)

former_member182190
Active Participant
0 Kudos

Hi Sid,

You can do group by column this way in ALV

data: lr_field type ref to cl_salv_wd_field,

lr_field_settings type ref to if_salv_wd_field_settings.

lr_field = lr_field_settings->get_field( 'CHANGD_ON' ).

lr_field->if_salv_wd_sort~create_sort_rule( ).

lr_field->if_salv_wd_sort~set_grouping_allowed( '' ).

Hope this helps.

Regards,

Ismail.

Former Member
0 Kudos

Hi,

It was a very helpful answer.

But my problem is say I have two colums

Column1 and Column 2 ( both arithmetic).

Now, I want to select column 1 and column2 and find the sum in column3.

Is there a possibility for this.

Best Regards

Sid