0 Replies Latest reply: Apr 8, 2008 3:08 PM by Armin Krusko RSS

Changeover methods - EXIT_SAPLAFAR_003 - Finance

Armin Krusko
Currently Being Moderated

Hi all,

 

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:

 

EXIT_SAPLAFAR_003.

 

 

 

  •                                                                     *

 

  •   INCLUDE ZXAFAU03                                    *

 

  •                                                                     *

 

  • Changeover at start of 5th year of useful life

CLEAR E_UMJAR.

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.

    ENDIF.

 

  • leave loop.

     EXIT.

  ENDLOOP.

 

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!

 

BR,

Armin

Actions