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.?
Raymond Giuseppi replied
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)