Scenario 25 — MM ↔ PM Integration (Spare Parts for Maintenance Orders)

TIER 9 · CROSS-MODULE ★★★★☆ ⏱️ ~2 hours IW31 → ME21N (acct F) → MIGO → IW32 (confirm)
← Previous
Scenario 24: Withholding Tax
Next →
Scenario 26: MM ↔ PS (Project Procurement)
⚠️ Not yet live-tested
This page is built from researched standard-SAP content and has not yet been executed end-to-end in our IDES. The T-codes, fields, and accounts follow SAP standard but may need small adjustments on your S/4HANA 2023 system — we'll confirm and correct them when you run this scenario live. Hit a snag? See the Troubleshooting Center.

📊 Business Case

This scenario is where MM hands off to Plant Maintenance (PM). When equipment breaks down, the maintenance team raises a maintenance order that needs a spare part. The order generates a purchase requisition with account assignment F (Internal/PM order) — so the cost of the spare flows to the maintenance work order, not directly to a cost center or into inventory. After the repair, the order's accumulated cost is settled to the cost center of the affected line. It shows MM's role as a central enabler feeding other SAP modules.

🕐 When to use it

Whenever a maintenance/repair job needs a part bought specifically for that job — the spare is consumed against the maintenance order rather than stocked.

❓ Why it matters

It teaches account assignment F and how a PR is triggered from PM (not manually). Cost accumulates on the maintenance order so the true cost of each repair is visible before settlement.

👤 Who triggers it

The maintenance planner creates the order (IW31); the MM buyer converts the PR to a PO and handles GR/IV; PM/CO settles the order at month-end (KO88).

🔁 The key distinction

Cost goes to the order, not inventory. With account assignment F there is no stock posting — the spare is expensed straight to the maintenance order and shows in the order cost report.

💰 Financial Impact — The Easy-Money Example

A CNC machine needs a new bearing (SP-BEARING-01, PKR 5,000). Because the PO carries account assignment F against maintenance order 8000001234, the money never touches inventory — it lands on the order and later settles to the production cost center:

🔧 GR against PM order (acct F)
Maint. Expense ↑ PKR 5,000
410100 Maintenance Material Expense Dr / GR-IR Cr — cost tagged to order 8000001234, no inventory posting.
📋 Cost sits on the order
Order = PKR 5,000
The maintenance order accumulates the spare cost; visible in the order's cost report before settlement.
📊 Settle to cost center (KO88)
PKKHI-PROD +5,000
Month-end settlement moves the cost from the order to cost center PKKHI-PROD.

The big idea: account assignment F means the spare is never an inventory asset — it is expensed directly to the maintenance order at GR. The order is a temporary cost collector; KO88 settlement then pushes the accumulated cost onto the responsible cost center, so management sees the full cost of the repair.

💡 Lesson: With account assignment F, procurement cost is charged to the maintenance order, not to inventory — and it becomes visible in the order/cost-center report, not in stock value. MM enables the buy; PM and CO own the cost.

🇵🇰 The Business Story

The Karachi Factory (PK01) has a critical CNC machine failure. The maintenance team creates a Maintenance Order (IW31) requesting a new bearing. The order generates a PR with account assignment F (Internal Order) — meaning the cost goes to the maintenance work order, not directly to a cost center. After repair, the maintenance order is settled to the affected production line cost center.

🎯 What you'll learn

⚙️ Prerequisite Setup

This scenario needs the PM module activated. If PM isn't set up in your IDES, you can:
📦 Material needed — create first (just-in-time)

SP-BEARING-01 (ERSA, spare part) — create steps. First time? the why behind every field.

🔧 Step-by-Step — Transaction Flow

25.1 — PM Maintenance Order · IW31

PM consultant / maintenance planner creates a maintenance order:

  1. IW31 · Order Type: PM01 · Technical Object: CNC-PK01-MIL01 · Plant: PK01
  2. Operations tab: Repair sequence
  3. Components tab: Required spare part SP-BEARING-01, Qty 1 EA
  4. Save → Maintenance Order # (e.g., 8000001234)
  5. This auto-creates PR if component not in stock + Procurement Type external

MM consultant's role: Ensure spare part material master is created (MM01 ERSA) with Purchasing view + valuation class.

25.2 — Convert PR to PO · ME21N with account assignment F
  1. ME21N · pull in auto-created PR
  2. Verify Account Assignment: F (Internal Order)
  3. Order field shows the PM order # (8000001234)
  4. G/L auto-determined (e.g., 410100 Maintenance Material Expense)
  5. Save

Posting at GR: Material Cost Dr / GR-IR Cr — cost tagged to PM order, not cost center directly.

25.3 — Goods Receipt · MIGO mvt 101

Standard GR. Cost flows to PM order via account assignment F.

Maintenance Expense (410100)Dr 5,000PM Order: 8000001234
GR/IR (191100)Cr 5,000
25.4 — Settle PM Order to Cost Center · KO88 (end of month)

PM/CO consultant runs KO88 to settle the maintenance order's accumulated cost to the receiver (cost center PKKHI-PROD).

  1. KO88 · Order: 8000001234 · Settlement period
  2. Settlement rule: 100% to cost center PKKHI-PROD
  3. Execute → cost moves from order to cost center
💡 MM consultant's role in PM integration
You don't configure PM, but you DO:

✅ Verification

#T-codeCheck
1IW33Maintenance order 8000001234 shows the spare component and the linked PR/PO
2ME23NPO line has Account Assignment Category F with order 8000001234 and G/L 410100
3MB03 / FB03GR document: Maintenance Expense 410100 Dr / GR-IR Cr — no inventory (300xxx) line
4S_ALR_87013611After KO88, cost center PKKHI-PROD shows the settled 5,000 (order balance returns to zero)

🎓 Interview-Ready Answers

Q: What does account assignment category F mean, and why use it for a spare part?

F = order (internal/PM/maintenance order). It tells SAP the procured item is consumed against that order rather than received into stock. At GR there is no inventory posting — the cost is expensed (e.g. to 410100 Maintenance Material Expense) and tagged to the order. Use it when a part is bought for a specific repair job so the order carries its true cost.

Q: How does a purchase requisition get created from Plant Maintenance?

When the maintenance order (IW31) has a non-stock component (or a stock item that's unavailable) with external procurement, releasing/saving the order auto-generates a PR carrying account assignment F and the order number. MM doesn't type it manually — it flows in like an MRP-driven requisition, and the buyer converts it to a PO.

Q: If the cost hits the order at GR, how does it reach the cost center?

The maintenance order is a temporary cost collector. At month-end, KO88 settles it according to its settlement rule — typically 100% to the responsible cost center (e.g. PKKHI-PROD). The cost moves from the order to the cost center and the order balance returns to zero.

Q: What is the MM consultant actually responsible for in this PM scenario?

Not PM config. MM owns the spare-part material masters (ERSA type with purchasing view and valuation class), source lists / alternative vendors, reorder points and safety stock for critical spares, the external procurement setting, and the GR/invoice verification for parts bought via PM orders. MM enables the buy; PM and CO own the maintenance cost.

← Previous
Scenario 24: Withholding Tax
Next →
Scenario 26: MM ↔ PS (Project Procurement)