Hierarchy

⤷

⤷

⤷

IMG Activity
ID | FI_ACC_PRINC_ASSIGNM | BAdI: Assignment of Accounts to Accounting Principles |
Transaction Code | S_EBJ_98000203 | (empty) |
Created on | 20121205 | |
Customizing Attributes | FI_ACC_PRINC_ASSIGNM | BAdI: Assignment of Accounts to Accounting Principles |
Customizing Activity | FI_ACC_PRINC_ASSIGNM | BAdI: Assignment of Accounts to Accounting Principles |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | FI_ACC_PRINC_ASSIGNMENT |
Use
In combination with the scenario for parallel costs of goods manufactured, you can use this Business Add-In (BAdI) to portray parallel accounting using parallel accounts. With this BAdI, you can implement your own logic for deriving accounting principles from accounts, for example, if you use prefixes or suffixes to determine the assignment key.
When posting a document, the system calls the BAdI after assessing the settings made in the Customizing activity Define Account Assignments.
Requirements
Before you can implement the BAdI, the following prerequisites need to be met:
- You use the account approach (parallel accounts) for parallel accounting.
- You have defined the assignment keys and assigned accounting principles to the company codes in the Customizing activity Define Assignment for Accounting Principles.
Standard settings
For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab 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:
- 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. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- 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.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - 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: - Choose Activate.
When the application program is executed, the code you created is run through.
Example
For the IFRS accounting principle, you use the suffix 01.
The BAdI determines the assignment key IFRS from account 4450001, which is used in the posting. When the business function CO, Parallel Valuation of Cost of Goods Manufactured is used, the system can use it to derive and update the CO version with which the IFRS accounting principle is portrayed in Controlling.
Method: Accounting Principle Assignments (DETERMINE_ACCP_ASSIGNKEY)
- You implement the method DETERMINE_ACCP_ASSIGNKEY so that the system can use the following import parameters to derive the accounting principle assignment for a line item of an FI document to be posted:
- I_BUDAT (posting date)
- I_BUKRS (company code)
- I_HKONT (G/L account)
The system uses the logic that you have implemented to determine the key of the accounting principle. The assignment key determined is returned using changing parameter C_ACPAK for further processing. Any key that has already been determined from the Customizing settings (in the Customizing activity "Define Account Assignment") is overwritten.
From the accounting principle assignment key, the system determines the assigned accounting principles for the posted company code on the posting date.
See also
For information about how to implement BAdIs in the Enhancement Framework, see SAP Library for the SAP NetWeaver Platform on the SAP Help Portal at http://help.sap.com/nw_platform. Select 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 | 617 |