Purchase order matching in SAP: how to automate the process
Eli Lilly processes 600,000 supplier invoices a year in SAP with Doxis, across almost 100 countries, and reached ROI after 18 months. At that volume, every invoice a person has to check against its purchase order costs time the AP team doesn't have.
Purchase order matching compares what you ordered with what a supplier confirms, delivers and invoices, line by line, so you pay only what you agreed. The earlier the check starts, the fewer invoices need a person.
A price change caught at the order confirmation is a phone call to the supplier, while the same change caught at the invoice is a blocked payment.
Automating it matters because documents still arrive in every format. The Market Momentum Index: IDP Survey (2025) by Deep Analysis and AIIM surveyed 600 enterprises, three quarters of them in the US. It found that 61% of enterprise document processes still include paper, so many invoices and confirmations pass through a scanner before any check can run.
Key Takeaways
- Purchase order matching checks the invoice against the purchase order (2-way), adds the goods receipt (3-way) or adds an inspection result (4-way) before payment
- Checking the supplier's order confirmation against the PO shows price and delivery date changes weeks before the invoice arrives
- SAP tolerance keys decide which variances pass without a person; set upward and downward limits per scenario and keep the checks switched on
- Common breakpoints in SAP projects are references: a second PO number on page 2, intercompany POs, or PO numbers that change format in an S/4HANA migration
- Approval by app or email lets buyers and receiving staff resolve exceptions without SAP access
What is purchase order matching?
Purchase order matching is an accounts payable control that compares a supplier invoice with the purchase order and, for goods, with the goods receipt before payment is released. Quantities and unit prices are checked line by line. Invoices that agree within set tolerances are paid, and the rest are held until someone resolves the difference.
2-way, 3-way and 4-way matching: which fits which purchase
The right matching type depends on whether something physical arrives and whether it needs inspection. In SAP, the purchase order is created in ME21N, the goods receipt is posted in MIGO and the invoice is entered in MIRO.
| Matching type | Documents compared | Best fit |
|---|---|---|
| 2-way | Invoice and purchase order | Services, subscriptions, purchases without a goods receipt |
| 3-way | Invoice, purchase order and goods receipt | Production materials, inventory, capital equipment |
| 4-way | Invoice, purchase order, goods receipt and inspection result | Goods that need quality acceptance before payment |
For most manufacturers, 3-way matching is the default for production materials and 2-way covers services. The transactions involved and the release of blocked invoices are covered in detail for 3-way matching in SAP.
Automate Work. Accelerate Business.
Bring together AI, ECM, and workflow automation in one powerful enterprise platform.
How the purchase order matching process works in SAP
The process has six steps, and the first one happens before the invoice exists. Each step removes a cause of exceptions for the step after it.
1. Check the order confirmation against the purchase order
The supplier's order confirmation is the first document you can match. Suppliers adjust prices or delivery dates in their confirmations, and when nobody compares them line by line, the change stays in an email attachment until the invoice is blocked.
Automated order confirmation matching reads each confirmation as it arrives, as a PDF or through EDI. It then compares price, quantity and delivery date per line with the PO. Confirmations within tolerance are confirmed in the SAP purchase order. Deviations go to the buyer, who still has time to call the supplier or switch to another one.
Set those tolerances per supplier, plant or material group. A 1% price difference on packaging can pass, while the same difference on a machined part goes to the buyer. This is how order confirmation automation works in Doxis. Manufacturer Bizerba matches 58,000 order confirmations a year this way, combining EDI with OCR for confirmations that arrive as PDFs.
2. Capture the invoice and confirm the right PO
Invoices reach AP as PDFs, e-invoices and paper, and each one has to become structured data before SAP can check it. Intelligent capture reads the invoice header and every line item, so the match starts from complete data with no manual entry.
Before the match runs, check that the PO reference is valid. An invoice that quotes a PO from another company code, or a reference in an outdated format, fails every later check. Validating the reference against SAP at capture sends those invoices to a person straight away, before they sit unnoticed in a blocked list.
3. Compare each line against the PO and goods receipt
The match runs at line level: each invoice line is assigned to its PO line and, for goods, to the goods receipt that recorded the delivery. Header-level matching compares only totals, so a wrong unit price on one line can hide behind a correct total.
Where goods arrived in several shipments, the invoice quantity is split across the goods receipts it belongs to. Each line is then checked for quantity and unit price against what was ordered and what arrived.
4. Set tolerances deliberately
Tolerances decide which variances SAP accepts without a person. They're maintained in SAP as tolerance keys for price and quantity. Each key has separate upward and downward limits, set as an absolute amount or a percentage.
Set them per scenario. Too tight, and a few cents of freight rounding fill the exception queue. Too loose, and you pay for price increases nobody approved.
Keep the checks switched on when a backlog builds up. A disabled check removes the control for every invoice, and the overpayments it would have caught surface later in an audit.
5. Route exceptions to the person who can fix them
Most exceptions need a decision from someone outside AP. Routing each one by its cause sends price variances to the buyer who agreed the price and quantity variances to the team that posted the goods receipt, which ends the email chains that stall payment.
Many of those approvers don't work in SAP. Approval by app or email lets them review the variance and decide without SAP access, and every decision is recorded with the invoice.
6. Post and pay
Invoices that pass every check post in SAP without manual work and go into the next payment run. Resolved exceptions follow, so invoices that matched the first time keep their early-payment discounts.
Common reasons invoices fail PO matching
Six causes account for the exceptions AP teams see every week, and each has a control that prevents it.
| Cause | What happens | How to prevent it |
|---|---|---|
| Price variance | Invoice unit price differs from the PO | Check order confirmations so buyers see price changes early |
| Quantity variance | More invoiced than ordered or received | 3-way match against goods receipts, split partial deliveries |
| Missing goods receipt | Invoice arrives before the delivery is posted in MIGO | Post receipts on arrival and review waiting invoices daily |
| Wrong or missing PO number | Invoice can't be assigned to a PO | Validate PO references at capture |
| Unit of measure | Cases on the PO, pieces on the invoice | Align units in purchasing info records |
| Duplicate invoice | Same invoice submitted twice with a changed number | Run a duplicate check before posting |
Price variances are where the order confirmation step pays off. The buyer sees the supplier's new price weeks before the invoice, while it can still be negotiated or accepted on the record. For duplicates, a check that compares each new invoice with those already received catches duplicate invoices before the payment run.
Where automated PO matching breaks in SAP projects, and how to prevent it
Automation clears the clean cases fast, so your exception rate depends on the cases that break it. Five of them come up again and again in SAP purchase-to-pay projects.
A second PO number on the invoice
Some suppliers print a generic or framework PO number on a later page, next to the real one. If capture picks up the wrong reference, the whole invoice matches against the wrong order. Agree with those suppliers which reference they print, and add a rule that rejects known generic PO numbers.
Intercompany invoices
In a group with several company codes, an invoice can reach one entity while its PO belongs to another. Map which company code receives which supplier's invoices before go-live, and route cross-entity invoices to their own queue.
PO numbers that change in an S/4HANA migration
In one Doxis project, PO numbers grew from 7 to 10 digits during the move to S/4HANA, and confirmations quoting the old format could no longer be assigned. If your number ranges change, plan how old references are translated, and test with real supplier documents before cutover.
Invoices that arrive before the goods receipt
In 3-way matching, an invoice that arrives before the delivery is posted is blocked. Agree how fast receiving posts in MIGO, and give AP a daily view of invoices waiting for a receipt, so each one is released as soon as its receipt posts.
Invoices covering several purchase orders
An invoice that bills against several POs needs each line assigned to the right order. Plan a review step for these invoices, and ask high-volume suppliers to send one invoice per PO.
What SAP's own invoice verification covers, and what to automate around it
SAP's own invoice matching checks the invoice against the PO and goods receipt once the data is in MIRO, and blocks what falls outside tolerance. For that check to run, SAP needs captured invoice data, a valid PO reference and a goods receipt posted on time.
The delays sit before and after that check. Before it, invoices wait for someone to type them in and confirmations wait in an inbox. After it, blocked invoices wait for someone to find the cause and the right approver.
Automation around SAP takes over that waiting. Data arrives captured and checked, confirmations are matched on arrival, and exceptions go straight to the person who can resolve them, using the tolerances you already maintain in SAP.
Automate purchase order matching in SAP with Doxis
If your buyers still check order confirmations by hand and your AP team chases blocked invoices, Doxis automates purchase order matching across your SAP purchasing process. Confirmations are checked against the PO when they arrive, invoices are matched line by line, and only real deviations reach a person.
Matching is one step in the life of a purchasing document. On the Doxis Intelligent Content Automation platform, incoming confirmations and invoices are classified and their data extracted. Exceptions are routed for review and approval, and each document is stored once as a governed record linked to its SAP purchase order.
Your teams find any confirmation or invoice through natural-language search, and the archive keeps it readable as long as the law requires, then deletes it with proof. The full purchase-to-pay automation covers every step from requisition to archive.
- Order confirmations from PDF, email, EDI and paper checked line by line for price, quantity and delivery date
- Tolerances per supplier, plant or material group, so buyers see only real deviations
- Up to 60 to 80% lower invoice processing costs and up to 70% less time to process invoices
- Approval by app or email for people without SAP access
- One order ledger showing every confirmation and its status
- Native integration with SAP ECC and SAP S/4HANA
Doxis is a Leader in the Gartner® Magic Quadrant™ for Document Management 2026. Request a free demo.
Automate Work. Accelerate Business.
Bring together AI, ECM, and workflow automation in one powerful enterprise platform.
Frequently Asked Questions for purchase order matching in SAP
What is the difference between 2-way and 3-way matching?
2-way matching compares the invoice with the purchase order. 3-way matching adds the goods receipt, so you also confirm the goods arrived before you pay.
What is 4-way matching?
4-way matching adds an inspection or quality acceptance record to the invoice, PO and goods receipt. It fits goods that must pass inspection before they're accepted and paid for.
Is purchase order matching the same as invoice matching?
Yes, both terms describe checking the invoice against the PO and, for goods, the goods receipt. Order confirmation matching is the earlier check of the supplier's confirmation against the PO.
What is order confirmation matching?
Order confirmation matching compares the supplier's confirmation with your purchase order line by line, for price, quantity and delivery date. Deviations go to the buyer for a decision.
Can you automate 3-way matching in SAP?
Yes. Automation captures the invoice and assigns each line to the PO and goods receipt. Variances are checked against your SAP tolerances, matching invoices post, and only exceptions need a person.
Who should set PO matching tolerances?
Purchasing and finance should agree them together. Purchasing knows which price and quantity changes are acceptable per material, and finance owns the payment control the tolerances protect.
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.
How can we help you?
+49 (0) 30 498582-0Your message has reached us!
We appreciate your interest and will get back to you shortly.