Sub topic 8
Procurement and Materials Management
What this chapter covers and what it assumes
This chapter assumes you know the organizational levels from the earlier chapters (client, company code, plant, purchasing organization) and the idea of a business partner. You should also be comfortable with relational joins and with the basics of accounts payable (payables owed to suppliers). Procurement in SAP S/4HANA is delivered mainly by Materials Management (MM). It covers buying goods and services, receiving them, and checking the supplier's invoice. It is the first half of procure-to-pay.
What Procurement is responsible for
Procurement answers four questions: what do we need, from whom do we buy it, on what terms, and did we get what we paid for? It does not own money or stock. It creates documents that trigger postings in Inventory and Finance.
| Area | Procurement's role |
|---|---|
| Requirements | Capture demand as purchase requisitions, from users or from material planning |
| Sourcing | Choose a supplier and price using info records, contracts, and source lists |
| Ordering | Create and send purchase orders |
| Receiving | Record goods receipts against the order |
| Invoice verification | Compare the supplier invoice with the order and receipt |
The organizational anchors
Procurement documents depend on three organizational levels:
- Purchasing organization negotiates terms and is the commercial owner of the order. It is assigned to a company code, or to several, depending on your design.
- Purchasing group is the buyer or buyer team responsible for the order. It is not a legal or accounting unit.
- Plant is where the goods are delivered and stocked. Item-level plant and storage location decide which inventory is affected.
A purchase order therefore belongs to a purchasing organization and a company code at header level. Each item points to a plant. This is why a single order can deliver to several plants and still post to one company code.
Master data Procurement depends on
Procurement reads four main master data objects:
- Supplier, maintained as a business partner with a supplier role. Company-code data holds payment terms and the reconciliation account. Purchasing-organization data holds order currency and incoterms.
- Material master, with purchasing views (order unit, purchasing group) and accounting views (valuation class, price control).
- Purchasing info record, which links one supplier to one material with a price, a delivery time, and conditions.
- Source list and contracts, which restrict or prefer certain suppliers and fix agreed prices.
Valuation settings in the material master matter later in Finance. Price control S (standard price) values stock at a fixed price and sends price differences to a variance account. Price control V (moving average price) recalculates the price on each receipt.
The document chain
A purchase requisition is an internal request and has no commitment to a supplier. A purchase order is a binding external document. The goods receipt and the invoice receipt both refer back to the order. That reference is how SAP tracks what has been delivered and billed.
The purchase order does not post to the general ledger by default. It commits budget only if you use a cost object with commitment management. The accounting postings start with the goods receipt.
Account assignment and item types
Each purchase order item has an account assignment category. The choice decides whether the item becomes stock or is charged directly to cost.
- Blank (stock item): The material goes to inventory. The goods receipt posts to a stock account.
- K (cost center): The cost goes straight to a cost center, usually for consumables or services. No inventory account is involved.
- P (project) or F (internal order): The cost goes to a project WBS element or an order.
An item can also be a service item or a subcontracting item. Services use service entry sheets in place of goods receipts, but the logic is the same: a receipt step confirms the work before the invoice is accepted.
Goods receipt, invoice, and the GR/IR account
A goods receipt in S/4HANA creates a material document. Material documents are stored in the table MATDOC. This replaced the older split into MKPF and MSEG, and it is one of the simplification changes in S/4HANA. A goods receipt against a purchase order uses movement type 101. A reversal uses 102.
For a stock item, the goods receipt and invoice produce these postings:
| Step | Debit | Credit |
|---|---|---|
| Goods receipt (101) | Inventory (stock account) | GR/IR clearing account |
| Invoice receipt | GR/IR clearing account | Supplier payable (accounts payable) |
| Payment | Supplier payable | Bank |
The GR/IR account (goods receipt / invoice receipt) holds the value of goods received but not yet invoiced. At the end of a correct cycle its balance for that order is zero. A balance that stays open points to a missing invoice or a missing receipt, which is why the account is reviewed at period end.
Invoice verification (transaction MIRO, or the Fiori app for supplier invoices) performs a three-way match between order, receipt, and invoice. It compares price and quantity against tolerances. If the invoice exceeds a tolerance, the system blocks it for payment until someone releases it.
How Procurement connects to other modules
- Inventory: The goods receipt increases stock in the plant and storage location and changes the stock value.
- Finance: Every receipt and invoice creates accounting documents in the Universal Journal (ACDOCA). The material document and accounting document are linked by reference.
- Manufacturing: Material requirements planning (MRP) creates purchase requisitions for components, and external procurement fills the gap that production cannot.
- Sales: Third-party and make-to-order sales scenarios can create purchase requisitions straight from a sales order.
Reading procurement data
Purchase order data sits in a header table (EKKO) and an item table (EKPO). The purchase order history table (EKBE) records each goods receipt and invoice against an item. Purchase requisitions are in EBAN. The following program lists open purchase order items for a purchasing organization:
REPORT zp2p_po_items.
SELECT FROM ekko
INNER JOIN ekpo ON ekpo~ebeln = ekko~ebeln
FIELDS ekko~ebeln, ekko~lifnr, ekko~bukrs,
ekpo~ebelp, ekpo~matnr, ekpo~werks,
ekpo~menge, ekpo~meins
WHERE ekko~ekorg = '1010'
AND ekpo~loekz = @space
INTO TABLE @DATA(po_items)
UP TO 100 ROWS.
LOOP AT po_items INTO DATA(item).
WRITE: / item-ebeln, item-ebelp, item-matnr, item-werks, item-menge, item-meins.
ENDLOOP.The condition loekz = @space excludes items flagged for deletion. The supplier number lifnr in EKKO is the supplier account number, which corresponds to the business partner through the customer/vendor integration.
For quantities that were actually delivered, read EKBE, where the field vgabe has the value 1 for goods receipts and 2 for invoice receipts. Reversals appear with the debit/credit indicator shkzg set to H, so a sum of quantities must account for it.
Common errors and gotchas
- Posting a receipt to the wrong plant. The receipt takes the plant from the order item. If the plant is wrong, the stock and its value land in the wrong place. Correct the order before receiving.
- Missing valuation class or account determination. A goods receipt fails if the material's valuation class has no account assigned for the plant's chart of accounts. This is a configuration problem, not a data entry problem.
- Invoice blocked for price or quantity. The invoice price is outside the tolerance, or the invoice quantity exceeds the received quantity. Check the tolerance keys and the delivery status.
- Open GR/IR balances. A receipt without an invoice, or an invoice without a receipt, leaves a balance. Clearing it needs a periodic GR/IR clearing run or manual correction.
- Confusing the supplier with the business partner. In S/4HANA you create the business partner first. The supplier account is then generated from it. Editing the supplier role data without the partner leads to inconsistencies.
- Assuming the order posts to Finance. Without commitment management, a purchase order alone does not appear in the ledger.
Exercise
A stock item for 100 pieces at 10.00 each is received, then invoiced at 1,020.00 in total. Assume price control V. Which accounts are debited and credited at goods receipt and at invoice receipt, and what is the GR/IR balance after both steps?
Show answer
At goods receipt, debit inventory 1,000.00 and credit GR/IR 1,000.00. At invoice receipt, debit GR/IR 1,000.00 and debit the price difference of 20.00 to the inventory account (price control V adjusts stock value if the stock is still on hand), and credit the supplier payable 1,020.00. The GR/IR balance for this order is then zero.
Exercise
Why would a purchase order item with account assignment category K never create stock, and which step replaces the stock posting?
Show answer
Category K charges the cost to a cost center, so there is no inventory account involved. The goods receipt (or service entry) debits the consumption account and the cost center, and credits GR/IR. The invoice then clears GR/IR as usual.