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: 

Display subtotal differences in the OO ALV grid

Former Member
0 Kudos

I am implementing an ALV grid of purchase order history. The requirement is to display the quantity differences of subtotals between goods receipts and invoice receipts at the end of the ALV grid. Ideally, this needs to be displayed in a row similar to the total row.

I can display and obtain the subtotals using the subtotal_text event and <grid>-get_subtotals method. Hence, I can calculate the differences of subtotals.

How can I display the difference row in the ALV?

-


GR1

GR2

GR3

-


GR Subtotals:

-


IR1

IR2

-


IR Subototals:

-


Quantity differences: <-- how to display this row at the end of the grid?

-


Thanks in advance.

Ning

1 REPLY 1

Former Member
0 Kudos

My workaround was to modify the output table by appending a data row for quantity differences. I cleared all but the quantity fields in that row, and customized the subtotal text in the form set_subtotal_text. As a result a new subtotal line was displayed at the end of the grid below the added data row to show the differences.