Ansicht
Dokumentation

BADI_FCML_ACCT_MOD - BAdI: Exchange of Accounts According to Accounting Principle

BADI_FCML_ACCT_MOD - BAdI: Exchange of Accounts According to Accounting Principle

Vendor Master (General Section)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Product Cost Controlling (CO-PC) component. You can use this BAdI if you are using the accounts approach to portray parallel accounting.

  • Determine Acc. According to Accounting Principle (Enhanced) Method (GET_ALT_ACCOUNT_ACP)
This method allows you to exchange accounts together with parallel costs of goods manufactured in:
  • Real-time integration

  • Closing entries for material ledger

If you portray parallel accounting using parallel accounts, the system has to be able to determine accounts depending on the accounting principle. For this, the account determined in the account determination of the calling application is replaced depending on the accounting principle. You use the method if you want to use a separate logic rather than the Customizing settings to derive the accounts (Customizing activity Determine Accounts Depending on Accounting Principle).
The method is called once an attempt has been made to replace the accounts supplied by the calling application with the replacements defined in Customizing.
The original cost element is not available for the real-time integration and closing entries for material ledger calling applications. The account can only be determined depending on the account found by the calling application, chart of accounts, company code (if applicable), and the posting date.
  • Alternative Account for Accounting Principle Method (GET_ALTERNATIVE_ACCOUNT)
This method only addresses the exchange of accounts in the closing entries of the material ledger.
If you do not want to make closing entries using the standard accounts that are automatically selected by material account determination, you can use this BAdI to define alternative accounts: If you use prefixes or suffixes for the alternative accounts, you can derive the alternative accounts automatically using this method (see also the Example). Implementing this method replaces maintenance of the Customizing settings (Customizing activity Define Alternative Accounts for Material Ledger Postings).
When determining the alternative accounts for the material ledger postings, the system proceeds as follows:
If there is an a table entry in the corresponding Customizing table, the system uses this entry; otherwise it uses the result of the method. However, you can specify that the result of the method overrides other values.
The method is called once the account has been replaced by the alternative account from Customizing.

Before you can implement the Determine Acc. According to Accounting Principle (Enhanced) method (GET_ALT_ACCOUNT_ACP), the following prerequisites must be met:

  • You are using parallel accounts to portray parallel accounting (accounts approach).

Before you can implement the Alternative Account for Accounting Principle method (GET_ALTERNATIVE_ACCOUNT), the following prerequisites must be met:

  • You are using parallel accounts to portray parallel accounting (accounts approach).
  • You have set up material account determination for the relevant areas (in Customizing of Materials Management under Valuation and Account Assignment -> Account Determination).
  • You have ensured that the prerequisites detailed there have been met.

  • You have defined how the closing entries are to be transferred from the material ledger to Controlling.

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab page in the BAdI Builder (transaction SE18).

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

You are using the prefix 01 for the IFRS accounting principle.

For inventory account 300000, the BAdI determines the following alternative account for the closing entries: 0100300000.

BAdI method documentation:

For information on how to implement BAdIs in the Enhancement Framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then choose Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View -> Application Server ABAP -> Application Development on AS ABAP -> ABAP Customer Development -> Enhancement Framework.






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 8067 Date: 20240524 Time: 013516     sap01-206 ( 138 ms )