In the Asset Explorer (T-CD: AW01N), Under the tab “planned Values” tab, you can click on the button “Display Dep.calculation” to check the details of the depreciation calculation, but the question is where and how to debug it?
As you konw, the depreciation for asset should be calculated with the formula = Base value * period fact * depreciation rate.
So, to find out the details of the calculation, you will need to know where to find base, and where to find the period fact, and where to find the depreciaiton rate information.
OK, the first step, please go to t-cd: SE24, with the class: CL_FAA_EE like below:
As you can see above, there are a lot of methods, for example “_ROUND_AMOUNT” “_SET_BASE_VALUE”…
You can very easily know the meaning of the method from the name and the description.
Let’s use the method _SET_BASE_VALUE for example. It is used for the base value setting.
Double click on it to check the detailed source code:
Here, you can set a break-point, then go to-AW01N for debugging.
So easy? Yes!
So, the left problem, where does the system setting get readed into the program(for example: Rounding setting, depreciation key setting)
Please go to the t-cd: SE24, with the class: CL_FAA_DC_SEGMENTS
There is a method named _PARAMETER_CREATE which can be used for the question, please set a break-point in it,
then when you go to AW01N, it will stops here and guide for what ever you want.