Skip to Content
0

Can we modify the total bar in ALV grid?

Sep 01, 2017 at 07:55 AM

26

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Sep 01, 2017 at 01:47 PM
0

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
Share
10 |10000 characters needed characters left characters exceeded