Methods for calculations at nodes

For PnL calculation, we need to read roll up values of hierarchy node.

e.g. Node FPL-03 will have value of summation of values for accounts beneath it ( 0006111100, 0006111102, 0006111800, 0006111900).

Node FPL-04 will have value of summation of values for accounts beneath it ( 0006112100, 0006112800, 0006112900).

Node FPL-69 will have value of summation of values FPL-03 and FPL-04.

Issue:- FPL-03, FPL-04 and FPL-69 don’t have any data saved in database as these are parent nodes and data can be saved at leaf level only. These roll up values will be calculated on the fly in reports .

In PnL calculation we need values at node (e.g. at FPL-03, FPL-04 and FPL-69 ).

I tried to use method “cl_ujk_model=>get_children” to read base members of nodes, which we were using in BPC 10, which is not working in S/4 HANA. Is there any method for same functionality in S4HANA?

Could you please help us with any ABAP code wherein we can read direct roll up value or base members for node?