Cost Center in SAP MM: Purchase Orders and Goods Issues
cost center in sap mm
Also searched as
- cost centre in sap mm
- sap account assignment category K
- post goods issue to cost center sap movement type 201
- sap po account assignment cost center
Short answer
In SAP MM a cost center is charged in two ways: on a purchase order with account assignment category K, and on a goods issue to cost center with movement type 201. Both post to a consumption expense account and a CO line item on the cost center.
Applies to: SAP ECC 6.0 and S/4HANA, MM integrated with FI and CO
How to charge a cost center from MM
- 1In ME21N, enter the item and set the Account Assignment Category column to K (cost center).
- 2Open the Account Assignment tab of the item. Enter the cost center and the G/L account, or let the system propose the account from the material group.
- 3For a stock material, you can also leave the PO without account assignment and issue later: MIGO, action Goods Issue, movement type 201, enter the cost center.
- 4Post. The goods issue creates an accounting document debiting the consumption account and a controlling document on the cost center.
- 5Reverse a mistaken issue with movement type 202, referencing the original material document.
- 6Check the result in KSB1 (cost center line items) or MB51 (material document list).
Account assignment on the purchase order
Account assignment category K means the cost is charged directly to a cost center. The category controls which account assignment fields appear: for K, the cost center and G/L account. Other categories include A (asset), P (project), F (internal order) and Q (project stock).
For a PO line without a stock material, goods receipt can post straight to the cost center as an expense. The account assignment is stored in table EKKN, linked to the PO item in EKPO.
Whether the default G/L account and cost center are proposed depends on configuration. Default account assignment by material group is maintained in the IMG (OKB9 is the common transaction for default account assignment).
Goods issue and account determination
A goods issue to a cost center (movement type 201) debits a consumption account and credits the inventory account. The accounts come from automatic account determination in OBYC. For movement 201 the consumption posting uses transaction key GBB with account modifier VBR.
The inventory side uses transaction key BSX, per valuation class. Different material types and valuation classes can therefore post to different inventory accounts, while the expense account is set by the combination of GBB, VBR and valuation class.
If the posting stops with a message about missing account determination, the valuation class or the GBB/VBR entry for that chart of accounts is almost always the cause. The related error is covered in the KI 235 page below.
Reporting on cost center postings
KSB1 shows every posting on a cost center by cost element, including MM goods issues and purchase postings. MB51 shows the material documents, filtered by movement type 201 and 202 and by cost center.
For reconciliation between stock and G/L, compare MB51 totals for the period with the GBB/VBR account in FBL3N. In S/4HANA all line items also live in the universal journal table ACDOCA, which is the base for modern reporting.
Try it here, free
SAP PO Item Category, Account Assignment and Special Stock Reference
Searchable list of the codes you choose on a PO line: item category, account assignment category and special stock indicator.
Common pitfalls
- !The cost center must be valid for the posting date and in the controlling area of the company code.
- !The cost element or G/L account must exist as a primary cost element for CO to accept the posting.
- !A goods issue without a reversal reference creates a new document when you wanted to cancel. Use 202 with the original document.
- !Mixing a K-assigned PO with a stock material changes the posting logic. Check whether you meant a consumable or a stock item.
- !Cost center blocks for posting (set in KS02) stop the goods issue with a message from controlling.
How an ERP-grounded AI assistant handles this
An assistant grounded in your SAP data can answer 'what was posted to cost center X from MM last quarter and which POs caused it' by combining EKKN, MSEG and the controlling line items, and can point to which account determination entry applies. Read-only access with the generated query visible keeps finance comfortable with the output.
Frequently asked questions
What is account assignment category K?
It tells SAP that a PO item is charged to a cost center. The item then needs a cost center and a G/L account, stored in EKKN.
Which movement type issues stock to a cost center?
Movement type 201 posts a goods issue to a cost center, and 202 reverses it. Both are posted in MIGO or MB1A.
Where does the expense account come from?
For goods issues it comes from OBYC transaction key GBB with modifier VBR. For K-assigned POs it is the G/L account entered or defaulted on the account assignment.
Is the cost centre spelling different in SAP?
No. SAP uses the same object, cost center, whatever spelling you search for. The master data is maintained in KS01, KS02 and KS03.
Related
SAP KI 235: G/L Account Requires an Assignment to a CO Object
KI 235 means a primary cost or revenue element exists (or should exist) on a P&L account, but the posting you are entering has no valid Controlling object - cost center, order, WBS element or profitability segment - to receive it. Add the account assignment on the posting, or set a default cost center via OKB9 so future postings resolve automatically.
How-toHow to Create a Purchase Order in SAP MM (ME21N)
Create a purchase order in SAP with ME21N: enter the vendor and organisational data in the header, add items with material, quantity, plant and price, and save. A PO can also be created from a requisition through ME21N adopt, ME58 or ME59N.
Error fixSAP: error in determining actual costs for order (and valuation with material cost estimate errors)
These errors usually mean the system cannot value an order or a goods movement because the costing setup is incomplete: no released standard cost estimate for the material, a costing variant or valuation variant that does not match, or a missing settlement rule or profile. Fix the cost estimate release first, then check the order's costing variant and settlement setup.
How-toSAP MM Approval Process: Release Strategies, Workflow and Fiori
SAP MM approval is built on release strategies: rules that block a purchase requisition (PR) or purchase order (PO) until the right people release it with release codes. Strategies are configured with classification characteristics and can be released in ME28 or ME29N, through workflow, or in Fiori approval apps. In S/4HANA there are also flexible workflows for PRs.
Error fixSAP M7 021: Deficit of SL Stock Quantity
M7 021 fires during a goods issue, delivery, or confirmation when SAP checks the unrestricted-use (SL) stock for the exact plant, storage location and batch combination and finds less than what you are trying to post out. Fix the entry (batch, storage location, quantity) first; only enable negative stock or downgrade the message to a warning if the business genuinely needs to post ahead of a receipt.
Error fixSAP IDoc Status 51: Application Document Not Posted
Status 51 tells you the IDoc reached the application layer and failed to post, but the status text itself is not the error - the real cause sits in the status record's long text or the linked application log. Fix the underlying data or configuration, then reprocess the IDoc through BD87 rather than editing the status.
AI for ERPAI for SAP S/4HANA, Running On-Prem or in Your Private Cloud
Run AI on SAP S/4HANA without sending ERP data to a public API. On-prem and private-cloud architecture, CDS views, OData, and honest deployment trade-offs.
AI for ERPAI Agents for SAP Production Planning, MRP, and Exception Triage
AI agents that triage SAP MD04 exceptions, explain predictive MRP shortages, and draft planned-order actions, grounded on your own SAP data, deployed on-prem.
Stuck on SAP ERP / S/4HANA?
Talk to engineers who work inside SAP ERP / S/4HANA every week, and who build private AI that answers these questions from your own ERP data.
Keep exploring
Free tools
- SAP PO Item Category, Account Assignment and Special Stock ReferenceSearchable list of the codes you choose on a PO line: item category, account assignment category and special stock indicator.
- SAP Movement Types ReferenceSearchable table of the most used SAP MM movement types with their reversal type, stock effect and typical use.
- SAP MM Table Relationships and Join Keys ReferenceA searchable relationship map of SAP MM tables listing the join keys between purchasing, goods movement, invoice, material master and cost center tables.
ERP fixes and how-tos
- How to Create a Purchase Order in SAP MM (ME21N)Step-by-step purchase order creation in SAP MM with ME21N: manual PO, PO from requisition, account assignment, release and the order-to-invoice flow.
- SAP MM Errors and Solutions: The Common Ones, by Process StepCommon SAP MM errors by process step, with cause and fix: stock deficit, closed periods, release strategy, blocked invoices and account determination.
- SAP MM Return to Vendor Process: Return PO, MIGO 161 and Credit MemoReturn goods to a vendor in SAP MM: return PO, MIGO movement 161 or 122, credit memo in MIRO, and how to handle scrap, rework and replacement shipments.
AI on your ERP
- AI for SAP S/4HANA Procurement (MM) That Reads POs, Receipts and Invoices TogetherAI for SAP S/4HANA procurement: query purchase orders, goods receipts and invoice matching in plain English, on-prem if needed, read-only by default.
- AI for SAP Business One Purchasing, From Purchase Request to A/P InvoiceGround AI in SAP Business One purchasing: purchase requests, POs, goods receipts and A/P invoices via Service Layer, read-only, on-prem or private cloud.