Skip to Content
author's profile photo Former Member
Former Member

Display subtotal differences in the OO ALV grid

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2007 at 03:58 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.