Hi Gurus,
I am in a situation where I want to move certain accounts to a particular costcenter section. Imagine that I have Accont 123 hitting/having multiple cost centers 456,457..459 and the total result when drilling down by
account and cost center is 1000.
Now I want to replace all the cost centers 456,457..459 etc to a single dummy cost center 460 but need the same result 1000( or total of all the original costcenters) for Account 123. In other words when drilling
down by account 123 and costcenter 460 the result should be 1000. I created the following end routine and the problem I am facing now is that I am able to replace the original costcenters with the dummy costcenter but I am not getting the currect total.
loop at RESULT_PACKAGE assigning<result_fields>.
case <result_fields>-gl_account.
when 123 .
<result_fields>-costcenter = 460.
endcase.
append <result_fields> to itab_refresh.
endloop.
RESULT_PACKAGE[] = itab_refresh[].
Any help is highly appreciated.
Thanks,
Naveen