Subtotals in ALV Tree at every node

 

Hi,

I have an ALV Tree like this

stri01_0-1724567067262.png

Here I want the subtotals for every node in their parent node level. So those nodes should have the summation of it’s child node values instead of 0.00 – In this case GL Senders should be added to GL Account, GL Accounts to FS Items, FS Items to TSIJ.

I have used cl_salv_tree=>factory method to make the ALV Tree. I have checked there is a do_sum method but that only works for Field Catalogues. 

Can you please help me with an example code on how to do it?

Thanks in advance!

Scroll to Top