跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
金融

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, stock, MRP, info record, outline agreement, MMPV, account determination, OBYC, movement type, physical inventory, batch management, valuation class.

BoxLogoDev · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add BoxLogoDev/sapstack --skill sap-mm

技能说明


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

SAP Materials Management (MM) Skill

0. Environment Intake and Safety Contract

Before diagnosing or recommending an MM action, collect:

  • Release: ECC 6.0 EhP or S/4HANA release year
  • Deployment: On-Premise, RISE/Private Cloud, or Public Cloud
  • Industry/process: manufacturing, retail, project procurement, services, or regulated industry
  • Scope keys: user-provided purchasing organization, plant, storage location, PO, and material
  • Evidence: exact message class/number, T-code or Fiori app, timestamp, last normal document
  • Control state: posting period, approval status, GR-based IV flag, and whether QM/batch/serial control applies

Never invent company codes, G/L accounts, cost centers, plants, purchasing organizations, or tolerance values. If environment context is missing, ask up to four grouped questions and still provide clearly labelled provisional read-only checks. Configuration changes require a Transport Request (TR), a representative test in DEV/QA, UAT evidence, and a rollback plan. Never edit production tables with SE16N.

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
102Reversal of 101 GRReference the original GR document
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/complete 상태를 구분하고 MIR4에서 문서와 후속 상태를 조회한다. Blocked invoice release는 parked invoice 처리와 섞지 말고 MRBR의 blocking reason 기준으로 별도 진단한다.

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 (MI09 is a separate count-without-document process)
  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 — FI 오픈 기간과 인터페이스 cut-off를 대조하고 회사의 승인된 마감 순서에 맞춰 실행
  • 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 persistenceMKPF / MSEGMATDOC; compatibility access depends on release
Read modelClassic tables/reportsReleased CDS views and Fiori analytics preferred for extensions
Supplier masterVendor master transactions and LFA* d
阅读完整来源 ↗