My question is for developers who have created a changeover method in Finance module before.
I am trying to create a change over method through function module (user exit) EXIT_SAPLAFAR_003.
However I am not sure how to do it. In an example that I found in the documentation for customer enhancement AFAR0003 (transaction SMOD). Following code is suggested:
INCLUDE ZXAFAU03 *
Changeover at start of 5th year of useful life
E_AKTIV = 'X'.
LOOP AT T_ANLC WHERE AFABE = I_AFABE.
IF T_ANLC-NDABJ > '004' OR
( T_ANLC-NDABJ = '004' AND T_ANLC-NDABP > '000' ).
E_UMJAR = T_ANLC-GJAHR.
However I don't see that this has been assigned to a perticular changeover method?
Also I am not sure what these return parameters E_UMJAR and E_AKTIV mean? Does it mean that when the E_AKTIV='X' then the condition is met and the depriciation key for an asset item should be changed? In that case why is value E_UMJAR (year) returned?
I would really appriciate any help and clues on resolving this issue!
Thank you in advance!