Skip to Content

Can we modify the total bar in ALV grid?

alv.jpg

I need to show a total of a column in ALV grid total bar but that column has no values. The total which i need to show is from somewhere else. Is it possible to modify the total bar to show a value there?

alv.jpg (28.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 01, 2017 at 01:47 PM

    Yes, it's possible by handling some event and calling some methods

    • Event to handle - grid_after_refresh
    • Methods to call - in sequence get_subtotals, refresh_table_display
    • Warning - You must insure no infinite loop as the refresh display will trigger the event again (setting some flag)
    • Options: Also use get_filtered_entries and get_frontend_fieldcatalog if identification of hidden fields and current sort criteria are required in subtotals calculation
    Add comment
    10|10000 characters needed characters exceeded