Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

EXIT_SAPLABUZ_001 -

EXIT_SAPLABUZ_001 -

PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

In Release 4.0 you can determine the accounts for asset accounting line items yourself, as long as they are not reconciliation accounts of account type 'A'. You need to carry out the following activities in order to use this new function:

  • Specify the line items in Asset Accounting Customizing.
  • Modify function module EXIT_SAPLABUZ_001 according to your specific requirements (see the example).
  • Activate project ABUZ0001 using the function Project management of SAP enhancements (CMOD).

Function module EXIT_SAPLABUZ_001 offers the following parameters for the determination of base value:

  • I_AFABER - depreciation area, for which the account should be determined
  • I_BUKRS - company code in which the document was posted
  • I_KTVAR - your own variable for distinguishing the different accounts

The expected return values are: only one account (E_KONTS) for debits and one account (E_KONTH) credit postings. If you enter a debit account only, the system also uses this account if there is a credit posting.
If the customer function module does not return an account, it will terminate the document posting. This should be avoided at all costs.
Below is a simple example for function module EXIT_SAPLABUZ_001:


*---------------------------------------------------------------------*
*   INCLUDE ZXABUU01                                                  *
*---------------------------------------------------------------------*
DATA: CON_KTVAR_01  LIKE ABUZ_KONTO-KTVAR VALUE  '01',
      CON_KTVAR_02  LIKE ABUZ_KONTO-KTVAR VALUE  '02',
      CON_KTVAR_03  LIKE ABUZ_KONTO-KTVAR VALUE  '03'.

   CASE I_KTVAR.
*
     WHEN CON_KTVAR_01.
          IF I_BUKRS = '0001'.
             E_KONTS = '0003990000'.
             E_KONTH = '0003990000'.
          ELSE.
             E_KONTS = '0003990010'.
             E_KONTH = '0003990010'.
          ENDIF.

     WHEN CON_KTVAR_02.
          IF I_BUKRS = '0001'.
             E_KONTS = '0003770000'.
             E_KONTH = '0003770010'.
          ELSE.
             E_KONTS = '0003770100'.
             E_KONTH = '0003990100'.
          ENDIF.

     WHEN CON_KTVAR_03.
          IF I_BUKRS = '0001'.
             E_KONTS = '0003550000'.
             E_KONTH = '0003550000'.
          ELSE.
             IF I_AFABER = '01'.
                E_KONTS = '0003550020'.
                E_KONTH = '0003550020'.
             ELSE.
                E_KONTS = '0003560020'.
                E_KONTH = '0003560020'.
             ENDIF.
          ENDIF.
   ENDCASE.







CL_GUI_FRONTEND_SERVICES - Frontend Services   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5050 Date: 20211129 Time: 003735     sap01-206 ( 28 ms )