Skip to Content
author's profile photo Former Member
Former Member

Column Grouping in WebDynPro ALV

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 21, 2008 at 01:46 PM

    Hi Sid,

    Try using this line of code.

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

    Hope this helps.

    Regards,

    Ismail.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 18, 2008 at 04:44 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.