Skip to Content

ABAP : Running total in alvgrid

Dear ABAP Experts,

How can I add running sum in alvgrid.? I have developed a code but when user sorts on anycolumn then the total becomes wrong because it has been calculated in the code. Is there any auto feature in alvgrid.?

Regards

Aneel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 09, 2014 at 12:24 PM

    You may be required to either

    • Prevent sort management by user
    • Handle event after_refresh to recalculate running total after analyzing the sort criteria and using get_sort_criteria , get_filtered_entries , get_subtotals and refresh_table_display  methods (also prevent infinite loops as refresh_table will trigger another after_refresh)

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded