Home / Works with SAP / SAP Three-Way Matching
SAP ECC 6.0 · S/4HANA ON-PREMISE · PUBLIC CLOUD (GROW) · PRIVATE CLOUD (RISE)

SAP three-way matching for PO, MIGO and MIRO, with automated exception resolution.

SAP three-way matching checks each invoice against its Purchase Order (PO), Goods Receipt (MIGO) and Invoice (MIRO). SAP already holds back invoices when they disagree. The real delay follows: chasing buyers, warehouse teams and suppliers across emails and WhatsApp to find out why. AudiStory automates line-level matching and routes every variance to a named owner before MIRO posting.

Line-level AI extraction · Tolerance-based auto-pass · Clean-Core OData / BAPI / IDoc sync

The MIGO–MIRO bottleneck

Why blocked invoices pile up in SAP even when you have three-way matching turned on.

Inside SAP, three-way matching is binary. When a vendor invoice matches the Purchase Order and Goods Receipt (MIGO) within configured tolerances, SAP posts cleanly. The moment a quantity is short-shipped, a rate amendment has not been updated in the PO, or a warehouse has not posted MIGO yet, the invoice stalls.

In most enterprises, resolving that mismatch immediately leaves SAP. AP clerks pull out lists of held-back invoices, email buyers for rate confirmations, call plant stores for delivery challans and message vendors on WhatsApp for credit notes.

Days turn into weeks. MSME 45-day statutory clocks keep ticking while invoices sit in limbo. When the variance is finally cleared, SAP records the posting, but the proof explaining why the exception was approved sits buried in someone's inbox.

True three-way matching is not just comparing three numbers. It is capturing the delivery proof, rate revision or credit note that explains a mismatch, and binding that evidence to the SAP MIRO posting.
How AudiStory improves first-pass match rates

Built for messy real-world invoices, partial deliveries and Indian tax rules.

Line-level AI matching

Handle partial GRNs, multi-line items and ancillary charges cleanly.

Vendor PDFs rarely mirror SAP PO line sequences neatly. AudiStory AI extracts line-level quantities, HSN/SAC codes, unit prices, discounts and freight or packing lines, matching them against open SAP PO schedules and partial MIGO receipts.

Outcome: Clean matches within SAP tolerance pass automatically. Genuine variances are isolated down to the exact line item.

Named-owner routing

Every mismatch gets an owner, an SLA and one shared thread.

Instead of AP chasing departments manually, quantity shortfalls route straight to the warehouse receiver, price differences route to the buyer, and missing credit notes route to the vendor via Email, Portal or WhatsApp.

Outcome: All replies, delivery challan photos and revised PO approvals stay attached to the invoice record, with no extra SAP user licenses.

Tax, IRN and MSME guardrails

Verify statutory compliance alongside quantity and rate accuracy.

Even a quantity-matched invoice creates exposure if the e-Invoice IRN is invalid, the GSTIN status has changed, TDS sections are misapplied, or an MSME 45-day clock is nearing breach.

Outcome: AudiStory runs IRN and GSTIN, TDS and Section 43B(h) checks during matching, so compliant-looking postings do not fail tax or audit scrutiny later.

Protect Input Tax Credit (ITC) during matching. A quantity match means little if an invalid e-Invoice IRN, a suspended vendor GSTIN, a wrong TDS section or a delay under the 180-day GST Rule 37 limit puts your ITC at risk. AudiStory checks IRN QR codes, GSTIN status, TDS rules and MSME 45-day deadlines alongside PO and MIGO line items before MIRO posting.

Inside the line-level match

What the engine reads on every invoice line.

Most of the matching work sits in the details of each line. These are the checks AudiStory runs on every line before it reaches an approver.

HSN and SAC codes

The tax code on every line

Every goods line on an Indian invoice carries an HSN code (the Harmonised System of Nomenclature code for goods). Every service line carries a SAC code (the Services Accounting Code). These codes decide the GST rate for that line.

AudiStory reads the code on each line and checks it against the purchase order and the vendor's master record. A line where the code or GST rate does not match what was ordered is flagged to the buyer before posting, not discovered later at the GST return stage.

Freight, packing and other charges

Extra charges, matched to the PO

Vendors often bill freight, packing, insurance or handling as separate lines rather than inside the item price. Each of these lines is matched to the terms on the purchase order.

If the PO includes the charge and the amount is within tolerance, the line passes. If the PO has no such charge, or the amount differs, the line goes to the buyer for a decision rather than being accepted silently. Freight and packing carry their own GST treatment, and that is checked on the same line.

Unit prices and discounts

Rate and discount checks

The unit price and any trade or volume discount on each line are compared with the PO rate. A discount that is on the invoice but not on the PO is shown as a variance with the line it affects, so the buyer sees the exact difference.

Partial deliveries

One PO, several invoices and receipts

When a PO is delivered in parts, each invoice is matched only against the quantity that has been received and not yet billed. The remaining balance stays open on the PO, so nothing is billed twice and nothing is missed.

End-to-end matching flow

From incoming vendor bill to verified MIRO posting in four steps.

01Step 01Live SAP PO and MIGO data syncRead step details

AudiStory syncs open Purchase Orders, service entry sheets and Goods Receipts (MIGO) from SAP ECC or S/4HANA through standard OData APIs, RFC/BAPI or IDocs.

02Step 02Multi-channel intake and line-item extractionRead step details

Invoices arrive via Email, Vendor Portal or WhatsApp. AudiStory AI reads header and line items, validates e-Invoice IRN QR codes, checks duplicate invoice numbers against SAP, and links the bill to the corresponding PO.

03Step 03Automated three-way validation and tolerance checkRead step details

The engine compares PO price and quantity, MIGO accepted quantity and billed values against your SAP tolerance rules. Matched invoices move straight to approval or clean MIRO posting.

04Step 04Guided variance resolution and audit trail bindingRead step details

Mismatches trigger targeted tasks to buyers, plant receivers or vendors. Tolerance overrides, revised POs and credit notes are captured with time-stamped Delegation of Authority (DoA) sign-offs before syncing to SAP.

Real-world exception handling

How specific MIGO–MIRO mismatches are resolved before posting.

SAP mismatch scenarioWhat usually happensHow AudiStory resolves it
Invoice arrives before MIGO (missing GRN)SAP holds the invoice back (it cannot be posted) while AP emails plant stores repeatedly.Notifies the warehouse or site receiver via Web, Email or WhatsApp with the invoice and delivery challan to confirm receipt.
Price or rate variance above toleranceAP emails the buyer manually, and the approval returns as an unattached "okay to pay" reply.Routes the exact line-item variance to the buyer and DoA approver, and captures the price-override justification and revised PO reference in the audit trail.
Short delivery or quantity mismatchThe full bill is held or short-paid manually, without clear vendor debit or credit documentation.Isolates the disputed line, requests a credit note or balance delivery confirmation from the vendor in-thread, and tracks closure before payment.
Service entry sheet (SES) delaysService bills stall with project managers who rarely log into SAP Fiori or GUI.Routes service completion verification directly to the project owner outside SAP and syncs the sign-off back to SAP.
Frequently asked questions

Questions about SAP three-way matching.

How does AudiStory integrate with SAP PO and MIGO records for three-way matching?

AudiStory syncs Purchase Orders, Goods Receipts (MIGO), Service Entry Sheets and Vendor Masters from SAP ECC 6.0 or S/4HANA (Public Cloud, Private Cloud or On-Premise) using SAP-released OData APIs, RFC/BAPI, IDocs or secure staging exchange, with no custom ABAP modifications to your SAP core.

Can AudiStory handle partial goods receipts and multi-line vendor invoices?

Yes. AudiStory AI extracts line-level descriptions, HSN/SAC codes, quantities, rates and tax splits from incoming invoices and matches them against cumulative or partial MIGO postings in SAP. It flags only the lines that fall outside your configured tolerance rules.

What happens when a three-way match fails due to a missing GRN or price variance?

Instead of leaving the invoice held back in SAP, AudiStory routes the exception to the named warehouse owner (for missing GRNs), buyer (for price variances) or vendor (for credit notes) via Web, Email or WhatsApp. Every reply and approval reason is logged and linked to the SAP MIRO document on posting.

Does AudiStory also check Indian GST, e-Invoice IRN and TDS during three-way matching?

Yes. Alongside PO and MIGO validation, AudiStory verifies e-Invoice IRN details, vendor GSTIN status, TDS section and rate applicability, and MSME 45-day deadlines, so statutory checks happen before any invoice posts to SAP.

Next step

Stop letting MIGO–MIRO mismatches stall your AP team.

See where three-way matching exceptions get stuck outside SAP today, or request a walkthrough with your own sample invoices.