2-, 3- and 4-Way Matching in SAP Explained

2-, 3- and 4-way matching in SAP is how accounts payable makes sure you only pay for what you ordered, at the price you agreed, for goods you actually received. This guide explains each type of match, how SAP handles it in MIRO, where manual matching breaks down, and how to automate it.

What Is Invoice Matching?

Invoice matching compares a supplier invoice with the documents that should support it before the invoice is posted and paid. Each extra document adds a check – and catches a different kind of error.

Match typeCompares the invoice withCatches
2-wayPurchase orderWrong price, items not ordered, over-billing against the PO
3-wayPurchase order + goods receiptPaying for goods not yet received or short-delivered
4-wayPO + goods receipt + a fourth checkGoods that failed inspection, or vendor and tax data that doesn’t match

2-Way Matching in SAP

2-way matching checks the invoice against the purchase order: same supplier, same items, and price and quantity within tolerance. It suits services and low-risk purchases where there is no goods receipt, or where receipt is confirmed another way.

3-Way Matching in SAP

3-way matching adds the goods receipt (MIGO). The invoice quantity is compared with what was actually received, not just what was ordered. In SAP this is driven by goods-receipt-based invoice verification on the PO item, so invoices are matched against individual receipts. It is the standard control for stock and most direct materials.

4-Way Matching in SAP

“4-way” means different things to different teams. The classic definition adds the quality inspection result – you only pay for goods that passed inspection. Many AP teams also use it to mean a vendor master and tax check: the supplier’s tax ID (ABN, TRN or GSTIN), bank details and tax amounts are validated before posting. KOVOS supports the second as standard, because that is where fraud and compliance errors usually hide.

How SAP Handles Matching Differences

In standard SAP invoice verification (MIRO), differences are checked against tolerance limits configured per company code – for example price variances and quantity variances. If a difference is outside tolerance, SAP can block the invoice for payment. Blocked invoices are then reviewed and released, typically with transaction MRBR.

The logic is sound. The problem is everything around it: someone has to key the invoice, find the PO, pick the right goods receipt lines, investigate each block and chase the buyer or the warehouse for an answer.

Where Manual Matching Breaks Down

  • Missing PO numbers on supplier invoices mean AP searches for the right order by hand.
  • Partial deliveries leave AP matching invoice lines to several goods receipts.
  • Invoices before goods receipt sit blocked until someone posts the receipt.
  • Blocked invoices pile up in MRBR with no clear owner, delaying payment and month-end accruals.
  • Duplicates slip through when the same invoice arrives by email and post with slightly different numbers.

How to Automate 2-, 3- and 4-Way Matching in SAP

  1. Capture every invoice as data – PDFs and scans read by AI, e-invoices taken as structured data.
  2. Find the PO automatically, even when the supplier leaves it off, using supplier, items and amounts.
  3. Match at line level against the PO and every related goods receipt, using your SAP tolerances.
  4. Check vendor and tax data – tax ID, bank details and tax amounts – against the SAP vendor master.
  5. Route exceptions to an owner – price issues to the buyer, quantity issues to the warehouse – with the reason attached.
  6. Post clean invoices straight away, so AP only touches the exceptions.

That is exactly what KOVOS does for SAP ECC, S/4HANA and RISE with SAP. See it on our AP automation for SAP page, including local versions for Australia and the UAE. Comparing tools? Read our OpenText VIM alternative guide.

2-, 3- and 4-Way Matching in SAP – FAQs

What is the difference between 2-way and 3-way matching?

2-way matching compares the invoice with the purchase order. 3-way matching also compares it with the goods receipt, so you only pay for what was actually delivered.

What is 4-way matching?

4-way matching adds a fourth check to the PO and goods receipt. Traditionally that is the quality inspection result; many AP teams also use it for a vendor master and tax check before posting.

Which SAP transaction is used for invoice matching?

Supplier invoices are entered and matched in MIRO (logistics invoice verification). Invoices blocked for price or quantity differences are reviewed and released in MRBR.

Can invoice matching in SAP be fully automated?

Clean invoices can be matched and posted without anyone touching them. Exceptions – real price or quantity differences – still need a person, but automation routes them to the right owner with the reason attached.