Question:
Hi,
There is a requirement of getting the closing inventory value.
Closing inventory value = closing inventory * current selling price.
In business content, 0CPTOTSTOBU is the closing inventory. It is not stored in the cube. It is a non-cumulative KF with Inflow and Outflow.
So the calculation of closing inventory value is in the user exit ZXRSRU02. Current selling price is also retrieve in the user exit.
So there is one virtual KF in the cube which will will be populated in the user by using 0CPTOTSTOBU and current selling price.
It did not work. I did debug the user exit and found out that there are two type of processing. First processing is the data in the cube. So this time 0CPTOTSTOBU is not populated (before 0CPTOTSTOBU is populated with inflow and outflow). Then i continue to debug and realised that later it did go through the same coding and this time it is populated. My problem is where and how should i put my coding after the 0CPTOTSTOBU is populated? Currently, the report seems like only taking the result before the 0CPTOTSTOBU is populated, hence my closing inventory value is always 0 as 0CPTOTSTOBU is always 0.
Thank you.
Regards,
Slamdunk
Answer:
Can you give some more details are you using RSR00002. If you can put in your code
Dinesh