L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Développement · SKILL.md

sap-mm

sap-mm

This skill handles SAP MM (Materials Management) including purchase requisitions, purchase orders, goods receipts, invoice verification, inventory management, GR/IR clearing, material master, vendor evaluation, and period-end closing. Use when user mentions MM, purchasing, procurement, MIGO, MIRO, ME21N, ME23N, MB52, MR11, GR/IR, material master, inventory,…

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: sap-mm description: > This skill handles SAP MM (Materials Management) including purchase requisitions, purchase orders, goods receipts, invoice verification, inventory management, GR/IR clearing, material master, vendor evaluation, and period-end closing. Use when user mentions MM, purchasing, procurement, MIGO, MIRO, ME21N, ME23N, MB52, MR11, GR/IR, material master, inventory, stock, MRP, info record, outline agreement, MMPV, account determination, OBYC, movement type, physical inventory, batch management, valuation class. allowed-tools: Read, Grep

1. Procurement Cycle

PR (ME51N) → RFQ (ME41) → Quotation (ME47) → PO (ME21N)
→ GR (MIGO 101) → IV (MIRO) → Payment (F110)

Shortcut flows:

  • Without RFQ: PR → PO (ME58 — auto-convert PR to PO)
  • Consignment: PO item cat K → GR → settlement (MRKO)
  • Subcontracting: PO item cat L → GI components → GR finished

2. Purchase Order Issues

Account assignment errors

  • Category K (cost center): cost center must exist and be active
  • Category A (asset): asset master must exist, depreciation area active
  • Category F (internal order): order must be in Released status
  • Category P (project/WBS): WBS element must be open for costs

Tolerance check (MIRO)

  • OMR6 → tolerance keys: BD (amount) / VP (moving avg price variance) / PP (price)
  • Tolerance = percentage + absolute amount — both must be within limits

GR-based invoice verification

  • PO item → Invoice tab → GR-Based IV flag = X
  • With flag: MIRO only possible after GR; invoice quantity = GR quantity

3. Goods Receipt (MIGO)

Key Movement Types

MVTDescriptionNotes
101GR for purchase orderStandard GR
102Return to vendor (reversal of 101)Requires original GR doc
122Return delivery to vendorWith return PO
161GR for return POFor returns with credit
201GI to cost centerFree goods issue
261GI for production orderComponent consumption
301Transfer plant to plant (1 step)Same company code
311Transfer storage location to storage locationSame plant
551ScrappingWrite-off to loss account

Account Determination (OBYC)

  • Transaction key BSX: inventory posting (stock G/L account)
  • Transaction key WRX: GR/IR clearing account
  • Transaction key PRD: price difference account (standard price)
  • Transaction key GBB: goods issue / offsetting accounts
  • Valuation class (material master → Accounting 1) links material to G/L accounts

4. Invoice Verification (MIRO)

Blocking reasons

CodeReasonRelease T-code
RManual blockMR02 / MRBR
AAmount exceeds toleranceMRBR (automatic)
DDate issueMRBR
QQuantity varianceMRBR
PPrice varianceMRBR

Parked invoices: MIR7 (park) → MIRA (mass release) / MIR4 (display)

Credit memos: MIRO → transaction = Credit Memo → reverses original invoice logic


5. Inventory Management

Physical inventory process

  1. MI01: create physical inventory document → print count sheet
  2. MI04: enter count results (or MI09 if system count differs)
  3. MI07: post inventory differences → generates MM document + FI document
  4. MI20: list of inventory differences for review

Key reports

T-codeReport
MMBEStock overview (all stock types)
MB52Warehouse stocks of material
MB53Plant stock availability
MB5BStocks for posting date
MB51Material document list

6. Material Master Key Views

ViewKey Fields
MRP 1MRP type, MRP controller, lot size procedure
MRP 2Planned delivery time, safety stock
MRP 3Strategy group (make-to-stock vs make-to-order)
MRP 4BOM explosion, individual/collective requirements
Accounting 1Valuation class, price control (S/V), standard/moving avg price
PurchasingPurchasing group, info update, GR processing time
Plant Data/Stor.1Storage conditions, shelf life, batch management

Extend to new plant: MM01 → select org levels → plant / storage location


7. MM Period Close

  • MMPV: close MM posting period — must precede FI period close (OB52)
  • MMRV: allow posting to previous MM period (emergency use only — document reason)
  • Check open GR/IR before closing: MB5S → identify items needing MR11

8. S/4HANA MM Differences

TopicECCS/4HANA
Material document tablesMKPF / MSEGMATDOC
CDS accessSELECT MKPF/MSEGI_MaterialDocumentItem
Stock in transitNot availableNew concept for plant-to-plant
Inbound deliveryOptionalMandatory for some scenarios
MRP runMD01MD01N (MRP Live — HANA optimized)
Purchase order historyEKBEI_PurchaseOrderHistory (CDS)
Skills enregistrées