Skip to Content
Former Member
Dec 20, 2011 at 10:37 PM

ALV Issue with Average in Subtotal Line


Hi experts,

Glad to see you again. Actually we've been displaying an ALV report with subtotals (DO_SUM = 'X' in field catalog).

In this link you can see the report as we get

[Image in Picasa|]

In the last column, we've just marked DO_SUM in field catalog structure and SUBTOT in sort table.

As seen, report is ok, but we don't want a sum at the end of the report; we need an average of the other subtotals.

We tested marking DO_SUM with other values (A, B, C, F, M...), without successful result.

We've done tests with FM REUSE_ALV_LIST_DISPLAY and class CL_GUI_ALV_GRID, with the same results.

Now, our question is, can we get an average as we need it?

Thanks in advance,

Jorge H. Rojas