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