Quick Answer — SAP Procure-to-Pay (P2P)
- SAP P2P is an 8-step process spanning SAP MM and FICO — from purchase requisition (ME51N) through to vendor payment (F110).
- The 3-way match in MIRO is the core financial control — it compares PO price, goods receipt quantity, and vendor invoice before posting any liability.
- Blocked invoices (MRBR) are a normal, expected part of P2P — they exist because MIRO detected a variance beyond OMBR tolerance and must be released before F110 can pay.
- The same 8 steps apply in S/4HANA — ME21N, MIGO, MIRO, F110 are all unchanged; only the underlying database tables and vendor master (→ BP) changed.
- Every step creates a linked document — the PR flows into the PO, the PO flows into the goods receipt (MIGO) and invoice (MIRO), forming a complete audit trail.
P2P starts with ME51N and ends with F110 — 8 steps create a connected document chain from the internal need to the bank payment.
The goods receipt (MIGO, movement type 101) makes the 3-way match possible — without a MIGO posting, MIRO cannot verify quantity received and will block the full invoice.
MIRO blocked invoices are not errors — they are the system working correctly. MRBR is the resolution step, not a bypass of controls.
The GR/IR clearing account is the bridge between MIGO and MIRO — it nets to zero when GR and invoice quantities match exactly.
In S/4HANA the P2P steps are identical — same tcodes, same logic. Only vendor master (→ BP) and the underlying database tables changed.
What is SAP Procure-to-Pay (P2P)?
SAP Procure-to-Pay (P2P) is the end-to-end business process covering everything from identifying a material or service requirement through to paying the vendor — entirely within SAP. The process lives primarily in SAP MM (Materials Management) for the procurement, inventory, and invoice verification steps, and hands off to SAP FICO (Financial Accounting) for the final vendor payment step.
What makes SAP P2P powerful is the connected document chain it creates at every step. The purchase requisition number flows into the purchase order. The PO number flows into the goods receipt material document and into the MIRO invoice document. Every document references the previous one — giving procurement, finance, and auditors a complete, traceable audit trail from need identification to bank payment.
Unlike a simple invoice-and-pay workflow, SAP P2P enforces financial controls at every step: purchase requisitions require internal approval; purchase orders may require management release; goods must be formally received before an invoice can be matched; and invoices are automatically checked for price and quantity accuracy before any payment can be made. This is the 3-way match — the defining financial control of the entire P2P process.
The SAP P2P Process — 8 Steps at a Glance
The eight steps of SAP procure-to-pay follow a fixed sequence — each step creates a SAP document that the next step references. The flow moves from internal procurement request through to external payment, with approval gates and financial controls at key junctions.
How to read this diagram: Steps 1–4 run left to right (requisition to PO). Steps 5–8 run right to left (goods receipt to payment). The down arrow between Step 4 and Step 5 represents the vendor making delivery. Step 7 (MRBR) is conditional — it only occurs when MIRO blocks an invoice. If the invoice passes the 3-way match cleanly, the flow goes directly from Step 6 to Step 8.
Purchase Requisition Creation & Approval
Step 1: Create Purchase Requisition — ME51N
A Purchase Requisition (PR) is the first document in the SAP P2P chain. It is an internal request to procure a material or service — it has no legal standing with any vendor, cannot be sent externally, and does not commit any budget. The PR simply says: "we need this, by this date, at this plant."
PRs can be created in three ways: manually by the end user via ME51N; automatically by MRP when MD01N (S/4HANA MRP Live) or MD01 (ECC) runs and detects a material shortage; or from a production order or project system. MRP-generated PRs are by far the most common in manufacturing environments — the buyer converts them to POs rather than creating them. In service or indirect procurement, ME51N manual creation is more common.
A PR contains: material or short text description, quantity required, unit of measure, required delivery date, plant and storage location, account assignment category (cost centre, project, internal order), and optionally a preferred vendor or pre-selected source of supply.
Step 2: Release (Approve) the Purchase Requisition — ME54N
If a release strategy is configured (SPRO → MM → Purchasing → Purchase Requisition → Release Procedure), the PR must be formally approved before proceeding to PO conversion. Release strategies trigger on PR characteristics — typically total value, plant, or material group. A PR worth $500 might auto-approve; one worth CA$50,000 might require VP-level sign-off.
Approvers release PRs via ME54N in SAP GUI, or via the Fiori "Approve Purchase Requisitions" workflow app in S/4HANA. Once all release levels are approved, the PR status changes to "Released" and becomes available for source assignment and PO creation via ME57 or directly in ME21N.
Direct PO without a PR: A purchase order can be created in ME21N without a prior purchase requisition — common for emergency purchases and repeat framework orders. However, bypassing the PR means bypassing the approval workflow and budget tracking. Most organisations enforce PR → PO for spend above a threshold to maintain procurement governance and audit control.
Source Assignment & Request for Quotation
After the PR is approved, the buyer must determine who to buy from and at what price. SAP MM handles this in two ways depending on whether a vendor relationship is already established.
When a vendor and price are known: A Purchase Info Record (ME11) or an existing Contract (ME31K) covers the material-vendor combination. The buyer uses ME57 (Assign and Process Requisitions) to assign the vendor and convert the PR directly to a PO. The price defaults automatically from the info record into ME21N — no manual price entry required.
When no vendor or price is established (RFQ process): The buyer creates a Request for Quotation in ME41, sending it to multiple vendors. Vendors respond with prices entered in ME47. The buyer runs ME49 (Price Comparison List) to see all quotes side by side and select the best. The winning quotation is converted to a purchase order; losing vendors receive rejection notices. The ME01 source list can restrict which vendors are approved for a material, and MEQ1 quota arrangements can split procurement across multiple vendors.
Info Records are the price master of P2P: ME11 stores the agreed price, planned delivery time, and tolerance settings for each material-vendor pair. When a buyer creates a PO in ME21N for a known material-vendor combination, the price fills in automatically — saving time and ensuring the negotiated price is used consistently. Keeping info records current is one of the highest-impact master data tasks in any SAP MM environment.
Create Purchase Order — ME21N
The Purchase Order (PO) is the binding legal commitment to the vendor — the document that says "deliver this, by this date, and we will pay you this price." Once the vendor acknowledges the PO, both parties are contractually committed. The PO is created in ME21N (Create Purchase Order — Enjoy single-screen interface) by referencing the approved PR.
ME21N handles all SAP PO types: standard PO (NB) for regular stock-based purchasing; subcontracting PO (30) where you send components to a vendor for processing; consignment PO (K) where vendor stock sits at your premises until consumed; stock transport order (UB) for plant-to-plant transfers; and service POs for professional services confirmed via service entry sheet (ML81N). Each type has different account assignment and invoice verification behaviour.
Once created, the PO may go through its own release strategy via ME29N if PO release is configured. The PO is then transmitted to the vendor via ME9F (output processing — print, email, EDI, or fax). In S/4HANA, the "Manage Purchase Orders" Fiori app (F1048A) provides an equivalent browser-based interface.
Outline Agreements for strategic vendors: For vendors you buy from regularly, Contracts (ME31K) and Scheduling Agreements (ME31L) replace individual spot POs. A contract locks in a total value or quantity with agreed pricing; release orders are created via ME21N against the contract. A scheduling agreement defines a fixed delivery schedule maintained via ME38. Both eliminate the RFQ and price negotiation steps for repeat purchases — reducing cycle time and locking in better pricing. See the SAP MM T-Codes guide for the full outline agreement reference.
Goods Receipt — MIGO (Movement Type 101)
When the vendor delivers goods, the warehouse or receiving team posts a Goods Receipt (GR) in MIGO against the purchase order using movement type 101. This is one of the most important postings in the entire P2P process — it does three things simultaneously:
1. Updates physical inventory: The received quantity is added to unrestricted-use stock at the specified storage location. MMBE (Stock Overview) immediately reflects the change. 2. Creates a material document: A goods movement record is created in MATDOC (S/4HANA) or MKPF/MSEG (ECC) — the formal record of what was received, when, and from which PO. 3. Creates a financial posting: SAP debits the inventory account and credits the GR/IR clearing account — a temporary balance sheet account that holds the liability until the vendor invoice is verified in MIRO.
A partial goods receipt is possible — if the PO was for 100 units and only 60 arrive, the team posts MIGO for 60 (movement type 101). The PO shows 60 received and 40 still outstanding. MIRO can then only match against the 60 received — the 3-way match prevents invoice posting for units not yet physically in hand. When the remaining 40 arrive, a second MIGO posting closes out the PO.
No goods receipt = invoice blocked: If someone posts an invoice in MIRO before MIGO has been run, SAP will show a full quantity variance for the invoiced amount (nothing received yet) and block it automatically. The correct P2P sequence is always MIGO first, then MIRO. If the invoice arrives before the goods, park it in MIR7 and post it after MIGO is done.
Invoice Verification & the 3-Way Match — MIRO
Invoice verification is where the 3-way match happens — the most important financial control in the entire procure-to-pay process. The AP team posts the vendor invoice into SAP using MIRO, entering the PO number as the reference. SAP then automatically compares three data points:
Match passes — Invoice posts, open vendor line item created in FI, GR/IR clearing account cleared, invoice available for F110 payment
Match fails — Invoice automatically blocked. No FI posting made. No payment possible until MRBR releases it.
The tolerances that determine "pass" vs "fail" are configured per company code in OMBR (tolerance keys). Common keys: BD (small amount differences), PP (percentage price variance per unit), DW (quantity variance). If the vendor invoices $1,020 against a PO for $1,000 and the tolerance is 2%, the invoice passes. At 3% it blocks.
When MIRO posts successfully, two things happen automatically: (1) a MM invoice document is created recording the invoice in Materials Management; (2) an FI accounting document is created — debiting the GR/IR clearing account (completing the circle from MIGO) and crediting the vendor account as an open item. In S/4HANA, MIRO posts to ACDOCA (Universal Journal) in real time, making the liability immediately visible in FI reports like FAGLL03H.
Release Blocked Invoices & Vendor Payment
Step 7 (Conditional): Release Blocked Invoice — MRBR
If MIRO blocked an invoice, an authorised AP user reviews it in MRBR (Release Blocked Invoices). MRBR shows all blocked invoices with the specific blocking reason for each. The AP user can: release the invoice after verifying the variance is acceptable; cancel the posting via MR8M and repost at the correct amount; or hold it pending a vendor credit memo. Once MRBR releases the invoice, it becomes eligible for the F110 payment run. If MIRO posted cleanly with no block, Step 7 is skipped entirely.
Step 8: Automatic Payment Run — F110
F110 (Automatic Payment Program) is the final step in SAP P2P — it selects all eligible open vendor invoices, groups them by vendor and payment method, creates payment documents, clears the open items, and initiates bank transfers or cheque generation. F110 is typically run weekly by the finance team. For manual one-off payments, F-53 posts an outgoing payment directly to a specific vendor item.
When F110 runs for a vendor invoice, three things happen: the payment document is created in FI, the open vendor line item (created by MIRO) is cleared, and the bank account is debited. The P2P cycle is complete — the need identified in ME51N has resulted in a bank transfer to the vendor.
The complete P2P financial flow: MIGO debits inventory, credits GR/IR → MIRO debits GR/IR, credits vendor → F110 debits vendor, credits bank. Three postings. Three cleared accounts. One paid vendor. The GR/IR account always nets to zero when P2P runs correctly — it is a temporary clearing account bridging goods receipt and invoice receipt.
P2P Document Chain & T-Code Reference
The 8 SAP Documents Created in P2P
| Step | SAP Document Created | T-Code | Financial Impact |
|---|---|---|---|
| 1 | Purchase Requisition (PR) | ME51N | None — internal document, no FI posting |
| 2 | Released PR (status change only) | ME54N | None — changes PR status from In Process to Released |
| 3 | RFQ / Quotation (if required) | ME41 / ME47 | None — no financial obligation until PO is created |
| 4 | Purchase Order — document 45XXXXXXXXXX | ME21N | Commitment accounting only (if activated). No cash/accrual posting. |
| 5 | Material Document (GR) — MATDOC / MKPF+MSEG | MIGO 101 | Debit: Inventory. Credit: GR/IR clearing. Stock increases immediately. |
| 6 | MM Invoice Document + FI Accounting Document | MIRO | Debit: GR/IR clearing. Credit: Vendor (open item). GR/IR clears. |
| 7 | Invoice status change (released from block) | MRBR | None — enables existing FI document for F110 selection |
| 8 | Payment Document + Bank Posting | F110 | Debit: Vendor (clears open item). Credit: Bank account. Cash out. |
All P2P T-Codes by Function
| T-Code | Function | S/4HANA Status |
|---|---|---|
| ME51N | Create Purchase Requisition | Active |
| ME52N / ME53N | Change / Display Purchase Requisition | Active |
| ME5A | List Display of Purchase Requisitions | Active |
| ME54N | Release (Approve) Purchase Requisition | Active |
| ME11 | Create Purchase Info Record (price master) | Active |
| ME57 | Assign Source of Supply — Convert PR to PO | Active |
| ME41 / ME47 / ME49 | Create RFQ / Enter Quotation / Price Comparison | Active |
| ME21N | Create Purchase Order | Active |
| ME22N / ME23N | Change / Display Purchase Order | Active |
| ME29N | Release (Approve) Purchase Order | Active |
| ME9F | Output / Transmit PO to Vendor | Active |
| MIGO (101) | Post Goods Receipt against PO | Active |
| MB51 | Material Document List (GR history by PO) | Active |
| MMBE | Stock Overview after Goods Receipt | Active |
| MIRO | Post Incoming Invoice — 3-way match | Active |
| MIR7 | Park Incoming Invoice (before GR is posted) | Active |
| MR8M | Cancel Invoice Document | Active |
| MRBR | Release Blocked Invoices | Active |
| OMBR | Configure Invoice Tolerance Keys (config) | Active |
| MR11 | Clear GR/IR Account at Period End | Active |
| MB5S | GR/IR Account Balance Report | Active |
| F110 | Automatic Payment Program | Active |
| F-53 | Manual Outgoing Payment (single vendor) | Active |
| MK01 / XK01 | Create Vendor Master (ECC only) | Deprecated |
| BP | Business Partner — Vendor Master (S/4HANA) | S/4 New |
| MD01N | MRP Live — auto-generates purchase requisitions | S/4 New |
For the complete SAP MM transaction code reference — including all movement types, physical inventory, MRP, and period-end closing — see the SAP MM T-Codes: Complete ECC vs S/4HANA Guide. For the FICO/AP side of invoice processing and payment, see SAP FICO T-Codes — Accounts Payable.
SAP P2P in S/4HANA — What Changed and What Didn't
The good news for anyone transitioning from ECC to S/4HANA: the P2P process is structurally identical. The same 8 steps, the same logical flow, the same financial controls. What changed is mostly underneath the hood — the database architecture — plus vendor master management. Here is the complete picture:
| Area | ECC | S/4HANA | Impact on P2P |
|---|---|---|---|
| Vendor Master | MK01/XK01/FK01 | BP (Business Partner) | Vendor creation and maintenance done in BP. MK01/XK01 deprecated. Biggest practical change for P2P teams. |
| Goods Movement (MIGO) | Posts to MKPF + MSEG | Modified | MIGO tcode unchanged. Now writes to MATDOC. Custom ABAP reading MKPF/MSEG needs updating. |
| Invoice Verification (MIRO) | Posts to BKPF/BSEG + RBKP | Modified | MIRO tcode unchanged. Now posts to ACDOCA (Universal Journal) in real time. Immediate FI visibility. |
| MB1A / MB1B / MB1C | Legacy goods movement tcodes | Deprecated | Use MIGO for all goods movements in S/4HANA. MB1A/MB1B/MB1C screens removed. |
| MRP Planning | MD01 — batch-based run | MD01N — MRP Live | MRP Live generates P2P-starting purchase requisitions in real time. Faster, no batch window needed. |
| Core P2P Tcodes | ME51N, ME21N, MIGO, MIRO, MRBR, F110 | Unchanged | All primary P2P transaction codes are active in S/4HANA. No retraining needed on core steps. |
| Fiori UI | SAP GUI only | Fiori apps available | Browser-based apps for all key P2P steps. SAP GUI still works alongside Fiori in parallel. |
| Warehouse Mgmt | Classic WM (LT01 series) | Deprecated | Embedded EWM replaces Classic WM. Basic MIGO goods receipt is unaffected — only warehouse transfer order transactions change. |
ECC end-of-support is December 31, 2027. Every ECC installation needs a migration plan. The core P2P skills you learn in ECC — ME21N, MIGO, MIRO, MRBR, F110 — transfer directly to S/4HANA. The gaps to close: vendor master using BP instead of MK01/XK01, MIGO writing to MATDOC, and optionally the Fiori P2P apps. VoiSAP teaches both ECC and S/4HANA on live systems.
SAP Procure-to-Pay FAQ — 20 Most-Asked Questions
ME51N), releasing it (ME54N), assigning a source of supply (ME57), creating a purchase order (ME21N), posting a goods receipt (MIGO, movement type 101), verifying the vendor invoice with 3-way match (MIRO), releasing any blocked invoices (MRBR), and executing the automatic payment run (F110). Each step creates a linked SAP document forming the complete procurement audit trail from need to payment.ME51N, (2) PR Approval ME54N, (3) Source Assignment and RFQ ME57/ME41, (4) Purchase Order ME21N, (5) Goods Receipt MIGO movement type 101, (6) Invoice Verification MIRO, (7) Blocked Invoice Release MRBR, and (8) Automatic Payment F110. Steps 3 (RFQ) and 7 (MRBR) are conditional — RFQ only when no vendor is pre-established; MRBR only when MIRO blocks an invoice. In practice, many P2P cycles run as 5 active steps: ME21N → MIGO → MIRO → (MRBR if needed) → F110.ME51N (Create Purchase Requisition). The requester enters the material, quantity, required delivery date, plant, and cost assignment. If MRP is running, purchase requisitions can also be generated automatically by MD01N (MRP Live in S/4HANA) or MD01 (ECC) without any manual ME51N entry. In either case, the PR is the first document in the P2P chain.ME51N) is an internal document — no legal standing with any vendor, requires internal approval, cannot be sent externally. It expresses the intent to buy. A purchase order (ME21N) is the binding legal commitment to a specific vendor with confirmed price, quantities, and delivery dates. Typical P2P flow: ME51N (PR raised) → ME54N (PR approved) → ME57 (vendor assigned) → ME21N (PO issued). A PO converts the internal request into an external legal obligation.MIGO is the SAP MM all-in-one goods movement transaction. In P2P, MIGO with movement type 101 posts the goods receipt when vendor goods physically arrive. This: (1) updates inventory — stock increases at the storage location; (2) creates a material document (MATDOC in S/4HANA, MKPF/MSEG in ECC); (3) posts to the GR/IR clearing account in FI (debit inventory, credit GR/IR). The MIGO goods receipt is the trigger for MIRO's 3-way match — without a posted GR, MIRO cannot verify quantity received and will block the full invoice.OMBR, the invoice posts cleanly and creates an open vendor line item in FI. If either price or quantity variance exceeds tolerance, MIRO automatically blocks the invoice — no FI posting is made and no payment possible until MRBR releases it. The 3-way match is the primary control preventing overpayment in SAP procurement.F110 will not select it for payment. The AP team sees it in MRBR (Release Blocked Invoices) with the blocking reason: price difference, quantity difference, or other tolerance breach. Options: (1) Release via MRBR after verifying the variance is acceptable — this enables the FI posting and makes the invoice eligible for F110; (2) Cancel and repost via MR8M at the correct amount; (3) Request a credit memo from the vendor. A blocked invoice is not an error — it is the system financial control working correctly.MR11. MB5S shows all open GR/IR balances that need MR11 action.F110 (Automatic Payment Program) is the final step. Run typically weekly by Finance, it selects all open vendor invoice items due within the payment run date range, groups them by vendor and payment method, creates payment documents, clears the open items, and generates the bank transfer file or cheque. F110 is the moment the vendor actually gets paid — the P2P cycle closes when F110 debits the vendor account and credits the bank. F110 configuration lives in FBZP and is completely unchanged in S/4HANA.ME21N without a prior PR. This is common for emergency purchases, repeat orders from known vendors, and spot buys where approval happened outside SAP. However, bypassing the PR means bypassing the internal approval workflow and budget tracking. Most organisations enforce PR → PO for spend above a threshold to maintain procurement governance and audit control. In manufacturing environments, MRP (MD01N) always generates PRs automatically, so the PR is always present even if no user created it.ME54N) and POs (ME29N), triggered by characteristics such as total value, purchasing organisation, material group, or plant. A PR for $500 might auto-approve; a PO worth CA$50,000 might require CFO-level release. Every approval is logged in SAP with user ID and timestamp, replacing email chains with system-enforced controls. Release strategies are configured in SPRO under MM → Purchasing → Release Procedure.MD01N (S/4HANA MRP Live) or MD01 (ECC) runs, it calculates the gap between demand (sales orders, planned independent requirements) and available supply (current stock + open POs), and creates purchase requisitions for the shortage quantity with the correct delivery date. These MRP-generated PRs appear in ME5A and MD04; buyers convert them to purchase orders via ME57 or directly in ME21N.ME51N → "Create Purchase Requisition" (F2229); ME54N → "Approve Purchase Requisitions"; ME21N → "Manage Purchase Orders" (F1048A); MIGO → "Post Goods Movement" (F0843) and "Receive Delivery" (F2386); MIRO → "Post Incoming Invoice"; MRBR → "Release Blocked Invoices" (F2163); F110 → "Manage Automatic Payments" (F2762); MMBE → "Stock Overview" (F1531). All SAP GUI P2P transactions remain fully available in S/4HANA alongside Fiori apps.ME11, stores the purchasing relationship between a specific material and a specific vendor — the negotiated price, price conditions, planned delivery time, and tolerance settings. When ME21N creates a PO for that material-vendor combination, SAP defaults the price automatically from the info record — no manual price entry needed. Info records are also the price reference for MIRO's 3-way match (MIRO compares invoice price against PO price, which came from the info record). Keeping info records current is one of the highest-impact master data tasks in any P2P environment.ME31K) or Scheduling Agreement (ME31L). Contracts fix a total quantity or value with agreed pricing; release orders are created via ME21N against the contract. Scheduling agreements define fixed delivery schedules maintained via ME38. In P2P, outline agreements replace spot-buy POs for strategic vendors — eliminating the RFQ and price negotiation steps for every purchase. This reduces procurement cycle time and locks in better pricing. Both are unchanged in S/4HANA.OMBR (SPRO → MM → Logistics Invoice Verification → Invoice Block → Set Tolerance Limits) and define acceptable variance thresholds between the PO, goods receipt, and vendor invoice. Common keys: PP (price variance per unit in %), BD (small amount differences — absolute value), DW (quantity variance). When MIRO detects a variance exceeding any active tolerance, it blocks the invoice automatically. If your AP team is releasing too many or too few blocked invoices in MRBR, the root cause is almost always in the OMBR tolerance settings.Reading about P2P builds knowledge.
Running MIGO and MIRO builds careers.
VoiSAP's live online SAP MM training puts you on a real SAP system from day one — you post purchase orders in ME21N, receive goods in MIGO, verify invoices in MIRO, and see the 3-way match in action. Not simulations. Not screenshots. The real thing.
Live SAP system access included from class one. Canada & USA. 278+ Google reviews at 4.8 stars.
Continue Learning — SAP MM Cluster