SAP ABAP IMG Activity BADI_FCML_ACCT_MOD (BAdI: Exchange of Accounts According to Accounting Principle)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   CO-PC-ACT (Application Component) Actual Costing/Material Ledger
     FCML_COGM (Package) Parallel Cost of Goods Manufactured
IMG Activity
ID BADI_FCML_ACCT_MOD BAdI: Exchange of Accounts According to Accounting Principle  
Transaction Code S_EB5_05000227   (empty) 
Created on 20090305    
Customizing Attributes BADI_FCML_ACCT_MOD   BAdI: Exchange of Accounts According to Accounting Principle 
Customizing Activity BADI_FCML_ACCT_MOD   BAdI: Exchange of Accounts According to Accounting Principle 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_FCML_ACCOUNT_MODIFICATION    

Use

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.

Requirements

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).
  • You have defined assignment keys and assigned them to the company code using the accounting principles in Customizing activity Define Assignment for Accounting Principles.

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).
  • In Product Cost Controlling Customizing under Transfer Closing Entries from Material Ledger to Controlling, you have made the following settings:
    • 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.

Standard settings

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).

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

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.

See also

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.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20121205 
SAP Release Created in 605