Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV REPORT

0 Kudos
465

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.

2 REPLIES 2

anujawani2426
Active Participant
0 Kudos
338

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.

Sandra_Rossi
Active Contributor
0 Kudos
338

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.