2023 May 17 10:43 AM
Hi all,
I have a report in which I need to display two columns, which I completed with REUSE_ALV_GRID_DISPLAY.
But below the report, I need to display sum of values from an internal table in tabular format, how this can be done? please help
In figure the above table is the report output. From an internal table I need to do sum of Opening balance, Receipt, Issue and Closing Balance, and that total sum I need to display in tabular form like four rows and two columns below the report(as shown in figure). How this can be done please suggest.
2023 May 17 11:28 AM
Hi maheshshetkar
Output is possible with below format if you are using REUSE_ALV_GRID_DISPLAY.
Like first display all the data of the report and end of the report display those four rows and then total.
Otherwise go with container concept of OO ABAP.
2023 May 17 7:29 PM
ALV is very simple concept and allows only simple data manipulations for sums (like sums considering filtering).
If you don't want to allow the user doing any manipulation, then go for static values.
Otherwise, what you are trying to do is more like a "form" with 2 parts, so it should be 1 ALV (above table) and 1 below screen containing exactly 4 fields. It can be done with dynpro + custom control above containing ALV grid + below 4 dynpro fields... I see one solution to do it with only one ALV, but which is quite cumbersome.