Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.?




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)



1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question