Doxis Blog  P2P & O2C

4-way matching in SAP: invoices against supplier confirmation

| Fabian Rückels

A smiling man in a yellow jacket discusses 4-way matching with invoices on a desk.

Your supplier confirms the steel brackets at the PO price plus a raw material surcharge, and three weeks later the invoice arrives with that surcharge on it. Whether AP pays it without a fight depends on whether anyone agreed to it when the confirmation came in.

4-way matching closes that gap by adding the supplier's order confirmation to the invoice check.

Blocked invoices are a daily cost in AP. According to Ardent Partners (2025), AP departments see an average invoice exception rate of 18.4%. Each exception sends someone back to the buyer to find out what was agreed, which is the question the order confirmation answers.

Key Takeaways

  • 4-way matching compares four documents before payment: the purchase order, the supplier's order confirmation, the goods receipt and the invoice
  • The order confirmation is where a supplier's surcharge, price change or new delivery date gets accepted or rejected, before AP sees an invoice
  • Many AP guides use an inspection report as the fourth document; that version confirms quality, while the order confirmation version confirms the commercial terms
  • Confirmation tolerances work best when they differ by vendor or material group, with price and surcharge changes always routed to a buyer
  • Doxis P2P for SAP automates each step of the flow, from the outgoing purchase order to the incoming invoice

What is 4-way matching?

4-way matching is an accounts payable control that checks a supplier invoice against four documents before payment: the purchase order, the supplier's order confirmation, the goods receipt (delivery note) and the invoice itself. In this version, the invoice is checked against the terms the supplier confirmed and your buyer accepted.

The purchase order records what you asked for and at what price. The order confirmation records what the supplier agreed to deliver, at what price and by when. The goods receipt records what reached your warehouse, and the invoice states what the supplier wants to be paid.

The other definition: 4-way matching with an inspection report

If you have read other guides on 4-way matching, you have likely seen a different fourth document: an inspection or quality acceptance report. In that version, the invoice is matched against the quantity that passed inspection. Oracle Payables documentation describes it as checking that the quantity billed does not exceed the quantity accepted.

Both versions build on 3-way matching. The inspection version adds a quality check after delivery. The order confirmation version used in SAP procurement adds a commercial check before delivery, and it is the version explained here.

2-way vs 3-way vs 4-way matching: which one fits which purchase

The right level of matching depends on what can change between the order and the invoice. This table shows what each level compares and where it fits.

Matching level Documents compared What it catches Best for
2-way PO, invoice Price or quantity billed above the order Services, subscriptions, recurring invoices
3-way PO, goods receipt, invoice Billing for goods that never arrived Standard goods purchases
4-way (order confirmation) PO, order confirmation, goods receipt, invoice Surcharges, price changes and partial deliveries the supplier announced after ordering Materials with volatile prices, scheduling agreements, high-value components
4-way (inspection) PO, goods receipt, inspection report, invoice Billing for goods that failed quality checks Quality-critical goods

The step from 3-way to 4-way is worth it when suppliers change terms after the order. If your prices and delivery dates hold, 3-way matching in SAP already covers the risk.

Automate Work. Accelerate Business.

Bring together AI, ECM, and workflow automation in one powerful enterprise platform.

Why the order confirmation belongs in the match

The order confirmation belongs in the match because it is the first document where a supplier tells you that the terms have changed. A 3-way match compares the invoice with the original purchase order, so a surcharge the supplier announced at confirmation shows up later as an invoice exception that AP has to chase.

In the opening example, your purchase order covers 2,000 brackets at $4.20 each. The supplier confirms the order with a $0.30 alloy surcharge per unit and moves delivery back a week. If nobody acts on the confirmation, the invoice at $4.50 per unit blocks in SAP, and AP has to find out whether anyone agreed to the surcharge.

When your buyer reviews the confirmation the day it arrives, the surcharge is accepted or pushed back while the order is still open. By the time the invoice comes in, the price increase is already approved, and AP has a confirmed reference to check it against.

A changed delivery date causes the same problem for production planning, which can rest with a single person in a plant. A confirmation that quietly moves a date reaches the planner late, while a confirmation reviewed on arrival gives the planner days to react.

How 4-way matching runs in SAP, step by step

In SAP, the four documents come from four separate steps in the purchase-to-pay process. Doxis P2P for SAP automates each of those steps, so each document is captured and tied to the same purchase order as it arrives.

Step 1: The purchase order goes to the supplier

Your buyer creates the purchase order in SAP, for example in ME21N, and sends it to the supplier. With outbound order automation, the order and its supporting documents go out electronically from SAP, and you can track the status of every order.

Step 2: The supplier's order confirmation comes back

The supplier answers with an order confirmation by email, EDI, SAP Ariba or on paper. Order confirmation automation reads each confirmation and compares it with the SAP purchasing document at item level, including standard purchase orders, scheduling agreement releases and contracts.

Confirmations within your tolerances are confirmed in the background and attached to the purchase order. Anything outside tolerance goes to the buyer's inbox, where the buyer approves it, rejects it, queries the supplier or asks for approval of the new price.

Step 3: The delivery note is processed at goods receipt

When the goods arrive, your warehouse posts the goods receipt in SAP, for example in MIGO. Delivery note processing captures the supplier's delivery note electronically or with a barcode scan, which speeds up posting the goods receipt in SAP.

Step 4: The supplier invoice is checked

When the supplier invoice arrives, invoice automation captures it and matches it against the purchase order and goods receipt in SAP within your tolerance keys. Invoices that match move on to approval and posting.

When a buyer accepts a supplier's new price, updating the purchase order is what lets SAP's invoice check run against that price. Agree with your buyers who makes that update, and when, so the invoice check uses the terms everyone agreed to.

What to check on a supplier order confirmation

A useful confirmation check covers more than the unit price. Each type of difference needs its own rule, because a surcharge, a provisional date and a partial confirmation each mean something different for the invoice that follows.

Difference on the confirmation What to check What to do with it
Price Confirmed unit price against the PO price, including provisional prices Accept within tolerance; route anything above it to the buyer
Surcharges and discounts Whether they apply to the whole order or a single item Let the buyer accept or query each one, since they change the net price on the invoice
Delivery date Confirmed date against the requested date, including provisional dates Flag dates outside tolerance to the buyer and production planning
Partial quantities Whether the supplier confirms only part of an item Record the confirmed part and follow up on the rest
Commercial terms Incoterms and payment terms against the PO Route any change to the buyer, since it affects cost and cash flow

Watch for confirmations that arrive after an invoice has already been posted to the same PO item. That order of events means the commercial check came too late, and the invoice needs a second look.

Set confirmation tolerances your buyers can work with

Tolerances decide how many confirmations reach a buyer, so they shape the workload of the whole process. Each of quantity, price and delivery date gets its own tolerance. Express it as a percentage or as an absolute amount. Then let them differ by vendor or material group, so each supplier is judged by what is normal for it.

A narrow price tolerance makes sense for materials with volatile prices, such as metals or energy-intensive components. A wider date tolerance suits suppliers who confirm the ship date, since their dates run a few days ahead of the arrival date your planners care about.

Decide up front which changes a buyer must accept explicitly, whatever their size. Price, surcharges, Incoterms and payment terms belong on that list, because each one changes what the invoice will show.

Before you go live, test the process with real confirmations from several suppliers and layouts. Include confirmations with surcharges, discounts, multiple pages and partial quantities, so your tolerances are tuned to the documents you receive.

Is 4-way matching worth the extra step?

4-way matching adds a document and a review to every purchase, so it pays off where suppliers change terms after the order. For materials with stable prices and fixed delivery dates, 3-way matching catches what matters with less effort.

The extra step earns its place in three situations: materials with volatile prices, where surcharges are common; scheduling agreements, where suppliers confirm partial quantities and provisional dates; and high-value components, where one unapproved price change costs more than the review. Apply 4-way matching to these categories and keep 3-way matching for the rest.

The effort also depends on how the check runs. A buyer who only sees confirmations outside tolerance spends time on the changes that need a decision, while confirmations that match go through on their own.

Automate each step of 4-way matching with Doxis P2P for SAP

Supplier surcharges and changed delivery dates turn into blocked invoices when nobody checks the confirmation. With Doxis, every confirmation is compared with the SAP purchase order the day it arrives, your buyers decide on the changes that matter, and AP receives invoices for terms that were already agreed.

The same platform carries your documents through their whole lifecycle. Supplier documents are read and their data extracted, routed for review and approval, and stored once as a governed record linked to SAP.

Your teams find them in seconds, work on them together, send correspondence from them, and keep them as long as the law requires before deletion with proof. The Doxis Intelligent Content Automation (ICA) platform covers every step.

  • Order confirmations compared with SAP purchase orders, scheduling agreements and contracts at item level
  • Confirmations within tolerance confirmed and attached to the purchase order automatically
  • Price changes, surcharges and date changes routed to the responsible buyer
  • Confirmations from email, EDI, SAP Ariba and paper handled in one process
  • Delivery notes and supplier invoices processed in SAP within the same purchase-to-pay flow

Doxis is a Leader in the Gartner® Magic Quadrant™ for Document Management 2026. Request a free demo to see how Doxis P2P for SAP handles your supplier confirmations.

Automate Work. Accelerate Business.

Bring together AI, ECM, and workflow automation in one powerful enterprise platform.

FAQs  for 4-way matching in SAP

What are the four documents in 4-way matching?

In the order confirmation version, they are the purchase order, the supplier's order confirmation, the goods receipt and the invoice. In the inspection version, an inspection or quality acceptance report replaces the order confirmation.

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

3-way matching compares the invoice with the purchase order and the goods receipt. 4-way matching adds a fourth document, either the supplier's order confirmation or an inspection report, depending on which risk you want to control.

What is an order confirmation in SAP?

An order confirmation is the supplier's response to your purchase order, stating the price, quantity and delivery date it agrees to. SAP records confirmations against the purchase order item through a confirmation control key.

Does SAP include the order confirmation in invoice verification?

SAP's invoice verification in MIRO compares the invoice with the purchase order and, for goods-receipt-based verification, the goods receipt. A confirmed price change reaches the invoice check when the buyer updates the purchase order after accepting it.

What happens if the invoice arrives before the order confirmation?

The commercial check then comes too late to prevent an invoice exception. Flag confirmations that arrive for PO items with an invoice already posted, so a buyer reviews both documents together.

Which purchases need 4-way matching?

Purchases where suppliers change terms after the order: materials with volatile prices, scheduling agreements with partial confirmations, and high-value components. Stable, recurring purchases are well covered by 2-way or 3-way matching.

Can 4-way matching be automated in SAP?

Yes. Each step can be automated: sending the purchase order, checking the order confirmation, processing the delivery note and matching the invoice. Buyers and AP then handle only the differences outside tolerance.

Fabian Rückels

Fabian is an experienced software evangelist, solution engineer, and sales leader with a passion for high-quality software and outstanding customer service. His mission is to revolutionize how companies tackle purchase-to-pay (P2P) and order-to-cash (O2C) natively embedded in SAP through Doxis's leading Intelligent Content Automation (ICA) solution. Fabian has deep technical knowledge (e.g. SAP ecosystem, eInvoicing, databases, APIs, mobile development environments and user experience) and extensive market experience with the SAP client base.

Subscribe to Doxis News

You might also be interested in

How can we help you?

+49 (0) 30 498582-0
What is the sum of 4 and 3?

Your message has reached us!

We appreciate your interest and will get back to you shortly.

Contact us

Table of contents