Skip to Content
avatar image
Former Member

Dynamic subtotal REquired

Friends,

I have a requirement where user can select (out of 18 in my case) cols in the ALV output, and i shd internally get get subtotals acc to cols selected and divide all the subtotals by one known predetermined field's subtotal and insert the new <b>subtotalled and divided</b> line .

I am able to get the cols selected by get_selected_columns method.

Now to achieve the subtotal ..i am not able to use a dynamic IF condition. I am trying dynamic read,,but thats also giving problems in logic. In short i need to get subtotals dynmically acc to cols selected by user.

Can any one please help...

Regards,

Venkat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 20, 2007 at 08:30 AM

    Sai,

    First you have to decide based on what you want to get the subtotals.Then you select that field and click on the subtotals button(in the toolbar of alv output).

    Now select all the fields for which you want the subtotals and click on the Aggregation button.This will give you the subtotals.

    ALV itself provides you this option,there is no need to write any code.

    K.Kiran.

    Add comment
    10|10000 characters needed characters exceeded