Anda di halaman 1dari 5

12/18/2017 Account assignment in purchasing document - ERP SCM - SCN Wiki

Getting Started Store

Community WIKI SAP Community Welcome, Guest Login Register Search the Community

ERP SCM / / Account Assignment

Account assignment in purchasing document


Created by Guest, last modified by Adam Kavanagh on Oct 06, 2016

Purpose
The purpose of this w iki is to provide an overview of account assignment in purchasing document, it also contains information about the customizing and the functionalities.

Overview
1.Definition.
2.Database table.
3.Account assignment category.
4.Customizing.
5.Function groups.
6.Function modules.
7.Special functionalities.
8.Tips and tricks.

Definition:
Specification of the objects (e.g. cost center, sales order, project) that are charged in the case of a purchase order for a material that is intended for direct usage or consumption

Database table:
EKKN for purchasing documents such as purchase orders, contracts...),
EBKN for purchase requisitions
T163K account assignment category customizing
T162K field selection
T163A combination of item category and account assignment category.

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 1/5
12/18/2017 Account assignment in purchasing document - ERP SCM - SCN Wiki

Account Assignment Category


The account assignment category determines:

The nature of the account assignment (cost center, sales order, and so on)
Which accounts are to be charged w hen the incoming invoice or goods receipt is posted
Which account assignment data you must provide

Customizing
The account assignment categories can be maintained in transaction code OME9.
Table T163K for setting the detailed information
Table T162K for setting the field selection information.
The automatic account assignment determination can be customized under:
Materials management - Valuation and account assignment - account determination - account determination w ithout w izard - configure automatic postings

The G/L accounts are maintained under transaction FS03:


Financial accounting - General Ledger accounting - G/L accounts - Master records - G/L account creation and processing - edit G/L account (individual processing) - Edit G/L account centrally
One important customizing for the G/L account is the field status group w hich is on the tab create/bank/interest. If you have a look inside the maintained field status group you can find many fields w hich
can also be customized in the account assignment category customizing from purchasing. The field status from both customizing must fit together.
The field status are set up in tw o places.
on G/L account ( FS03 display, OB14 Maintain )
on account assignment category in purchasing ( OLME -> OME9)
Both settings must fit to each other. If not, you receive error message ME 045 says that G/L account cannot be used.
'Earmarked fund' should never be 'Req. Entry in G/L account's field status group setting.
Because the MIGO document w ill not store 'earmarked fund' therefore no earmarked fund in accounting document either.

Function groups:
Functional group MEPO
Subroutine ITEM_PROCESS_MAIN check accounting information
Subroutine MEPO_ACCOUNTINGS_PROCESS normal checks
Subroutine KNT_COBL_PRUFEN_OHNE_KNT Co checks w hen account assignment category is initial
Subroutine FINANZMITTEL determine FM account assignments
Function group MEACCTVI
This function group is for account assignment screens. The account assignment screen are used both in PO and PR.
Screen 1000 multiple account assignment screen
Screen 1100 single account assignment screen
Screen 1200 header screen

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 2/5
12/18/2017 Account assignment in purchasing document - ERP SCM - SCN Wiki

Function modules
ME_ACCOUNTING_CHECK (only for enjoy transactions):
The main checks are made here. The structure COBL is used to call different function modules from other components w ith the same interface.
Some of these functions are:
K_COBL_CHECK: Function that belongs to the component CO-OM (Overhead Cost Controlling).
SD_ORDER_CHECK: Function that belongs to the component SD-SLS-GF-CO (SD CO interface).
FI_COBL_CHECK: Function that belongs to the component FI (Financial accounting).
CASH_FORECAST_MM_RELEVANT: Function that belongs to the component TR-CM-CM (Cash Management).
AC_COBL_FAREA_SET: Function that belongs to the component FI-GL (General Ledger Accounting).
AMIN_ORDER_ON_ASSET_CHECK: Function that belongs to FI-AA-AA (Asset Accounting).
FMRE_COBL_CHECK: Function that belongs to PSM-FM-PO-EF (Public sector - Funds management).
ME_ACCOUNT_ASSIGNMENT:
It determines the G/L account for process GBB or BSX. ( each movement type has its ow n transaction/process).
With this function module w e prepare the data to finally call the function module MR_ACCOUNT_ASSIGNMENT w hich delivers the correct G/L account according to the value maintained in the automatic
G/L account determination in customizing (TA OMWB):
Function module ME_ACCOUNT_ASSIGNMENT is used each time w here a new G/L account has to be determined in purchasing applications.
When changing account assignment category, G/L account w ill alw ays be filled by the new derived G/L account. If no G/L account derived, the G/L account field is initialized in screen.
ME_ACCOUNTING_TYPE_CHANGE:
This function module is called w hen the account assignment category is changed. A very important subroutine here is the subroutine COBL_REDUCE. In this subroutine all fields are cleared w hich are
suppressed by customizing for the new account assignment category (see also the FAQ note 496082 question 20).

Special functionalities
In a document, only 1 CO real object w ith maxim 3 CO statistical objects is allow ed. Refer to note 41103. But for CO commitment updating, it does not matter if the object is real or statistical, the determine
is done in function module K_OPEN_ITEM_PO
WBS-ELEMENT:
For the WBS-Element w e have to different values: the external presentation and the internal presentation. The external presentation w hich w ill be seen and maintained on the dynpro is the value in field
PS_POSID, the internal number is the one in field PS_PSP_PNR. Only the internal number w ill be saved in table EKKN/EBKN. There are tw o function modules to convert these numbers into each other.
These are: PSPNUM_EXTERN_TO_INTERN_CONV PSPNUM_INTERN_TO_EXTERN_CONV.
Real estate objects (IMKEY):
If w e have a accounting w ith reference to an real estate object the checks to this real estate object w ill be done in subroutine ENCODE_IMKEY in ME_ACCOUNTING_CHECK.
Assets:
We call the function module AMIN_COST_OBJECTS_GET before w e read table TRWPR in ME_ACCOUNTING_CHECK. The speciality for the asset is that w e alw ays determine special fields from the
asset.
Example:
In the asset a cost center is maintained -> this cost center w ill alw ays be determined from the asset and cannot be maintained manually in our screen. If the cost center is changeable in our transaction
and is changed manually the system w ill alw ays sw itch this value back to the asset cost center.
SD order (third party PO):
SD creates a purchase requisition w ith account assignment to a sales order. When such a purchase requisition is created w e take over the order number (AUFNR) and save the purchase requisition
w ith accounting reference to this order. The rest of the account assignment information w ill be determined from SD_ORDER_CHECK in ME_ACCOUNTING_CHECK. A PO can be created from this PREQ
but the order number can never be changed.

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 3/5
12/18/2017 Account assignment in purchasing document - ERP SCM - SCN Wiki

When enter a sales order to PO as account assignment, in ME_ACCOUNITNG_CHECK, RWIN calls SD_ORDER_CHECK, SD_ORDER_CHECK determines cobl-kzbw s (valuation of special stock) for the
sales order, if cobl-kzbw s is changed, system w ill determine the G/L account again according to the IMG settings ( Transaction OVZG and OMWB )
Functional area
Functional area can be entered manually or be derived by system.
CO w ill initialize the functional area if funds management is not active.
This may causes problem if customer alw ays enter the functional area manually.
Note 1061814 w ill take the original functional area if there is no new functional area derived.
Note 1047795 make sure MM passes G/L account to CO, therefore CO w ill initialize the functional area only if account assignment data are changed.
Funds management/cash forecast management:
Unassigned Purchasing document
The funds management must be activated on company code level.
If funds management is active, system w ill show the account assignment tab on item detail level in the new purchasing transactions.
On this tab the fields FIPOS, FISTL, GEBER, KBLNR, KBLPOS and GRANT can be maintained and w ill be stored in EKPO or EBAN.
It is not possible to maintain multi account assignment lines and there is no EKKN or EBKN entry for such items.

Tips and tricks:


When you delete the account assignment category in line item, all account assignments are deleted automatically. You enter the new account assignment category afterw ards, system w ill re-derive the
account assignment objects again.
If you change the account assignment category from A directly to B, system takes all account assignment objects from A as manual entry, and derive other account assignment objects, afterw ards
according to the field status' setting to display or hide the account assignment objects. Exception is G/L account.

The account assignment category determines:

The nature of the account assignment (cost center, sales order, and so on)
Which accounts are to be charged w hen the incoming invoice or goods receipt is posted
Which account assignment data you must provide
mm-pur-gf-acc mm_acc mm_pur_gf_acc mm_wiki mm-pur hk-ok

3 Comments
Paparao Madasu
2351326 - Error in PO on changing Account assignment lines for limit items

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 4/5
12/18/2017 Account assignment in purchasing document - ERP SCM - SCN Wiki

Marie-Christine Jusseret
Hi,

Suppose that for a purchase order item there is no record in table EKKN, could you please tell me the consequences.

In our system there are purchase order items created w ithout account assignment category and there is no record in table EKKN.

Thank you in advance for your help

Zoltan Schnitzler
Hi Marie-Christine,

the EKKN stores the account assignment data. If your PO has no account assignment, then it is normal that there is no EKKN entry.

Kind regards,

Zoltan

Contact Us SAP Help Portal


Privacy Terms of Use Legal Disclosure Copyright
Follow SCN

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 5/5

Anda mungkin juga menyukai