Accounts payable in SAP,
matched three ways

Lleverage automates accounts payable in SAP S/4HANA and ECC with an AI agent. It reads supplier invoices from the finance inbox in any layout, matches every line against the purchase order and goods receipt in SAP, and sends every variance to finance with all 3 documents open. Releasing a payment stays with a person.

Invalid work email
Forklift carrying a wrapped pallet past the lit loading dock of a brick warehouse at dusk

How does accounts payable automation work in SAP S/4HANA?

In SAP an AP clerk opens each invoice, looks up the purchase order and the goods receipt, and keys it into MIRO. With automated invoice processing the agent does the reading, the lookup and the matching in 4 steps, and the posting in SAP stays with your team, where SAP runs its own tolerance checks. How this compares with other tools is in our guide to accounts payable automation software.

01

Read the invoice from the finance inbox

A PDF, a scan or a forwarded email, in any layout. The agent reads the supplier, the invoice number, the purchase order reference, the VAT and every line, with a confidence on each field, and ties the sender to the supplier record in SAP. Nobody uploads a file.

02

Find the purchase order and the goods receipt

Each line is tied to its purchase order item in SAP and to the goods receipt posted against it. A line with no goods receipt yet waits, because SAP itself blocks such an invoice unless tolerance key DW is set to allow it.

03

Check every line three ways

Price against the order price, quantity against what the warehouse received, cost centre and bank details against what SAP holds. Each check has a tolerances you set, on top of the price (PP) and quantity (DQ) tolerance keys SAP applies per company code.

04

Hand over what agrees, flag the rest

Invoices inside your tolerances go to your team matched, with the purchase order and the goods receipt attached, ready to post in SAP. An invoice with a line outside them goes to the person you choose, with the difference named.

High-bay pallet racking stacked with boxed goods in a large warehouse

What changes for accounts payable in SAP?

Supplier invoices are matched against the purchase order and goods receipt as they arrive. Your team only handles the variances and the disputes.

Learn more

Example data

Finance deskSAP S/4HANA · today
Live
EUR 547,200outstanding across 118 invoices
38 days▼ 6 days DSO
CurrentEUR 412,900
30 daysEUR 88,400
60 daysEUR 31,200
90+EUR 14,700
Just matched · INV‑20931 · Meerdink
OrderPO‑880940 pcs · EUR 12,480✓
ReceiptGR‑331740 pcs received✓
InvoiceINV‑2093140 pcs · EUR 12,480✓
Matched in SAP · ready31 reminders sent today

One supplier invoice, matched three ways in SAP.

A supplier invoice for EUR 18,240 lands in the finance inbox. In SAP there is a purchase order and a goods receipt that should agree with it, line by line.

Example data

SAP S/4HANA · 3-way match Reconciling INV-2025-0847 Noordkamp Lagers · EUR 18,240
Comparing documents 4 of 5 reconciled
InvoiceINV-2025-0847
QTY
Steel sheet S235 2mm120
Round bar 40mm80
Welded tube 60x6060
Flange DN8050
Hex bolts M12500
TotalEUR 18,240
Purchase orderPO-4471 · SAP
ORD
Steel sheet S235 2mm120
Round bar 40mm80
Welded tube 60x6060
Flange DN8050
Hex bolts M12500
OrderedEUR 18,240
Goods receiptGR-8830 · SAP
REC
Steel sheet S235 2mm120
Round bar 40mm80
Welded tube 60x6060
Flange DN8046
Hex bolts M12500
Received09 Jun 2026
4 of 5 lines reconciled
1 exception held Holding the invoice for review Invoice held for review
# ap-exceptions Operations · Finance
Lleverage
Invoice agent Agent 09:42
Invoice INV-2025-0847 from Noordkamp Lagers is checked. 4 of 5 lines match the purchase order and the goods receipt in SAP. The flange line is 4 units short, so I held the invoice until you decide.
Exception · Flange DN80 EUR 1,460
Invoiced50 units
Ordered50 units
Received46 units
SK
SK
Sanne Kuipers AP controller 09:43
Thanks. I will confirm the short delivery with the warehouse, then approve.
Human in the loop

What does the agent check before an invoice goes to SAP?

Price, quantity, cost centre and bank details are checked against the purchase order and goods receipt in SAP, each with a tolerance you set. Invoices inside it go to your team as matched. Anything outside it waits in finance with all three documents open.

01Tolerances you setPrice and quantity differences it may accept, per supplier or category.
02A setting per checkOrder, receipt, cost centre and bank details, each with its own answer.
03Money always waits for a personIt matches and chases. Releasing a payment is never its call.

Example data

Invoice INV‑20931 · MeerdinkYour tolerance ±1%
Linevs POWho handles it
Hinge 35 mm0.0%Agent matches it
Drawer slide 450+0.6%Agent matches it
Mounting plate0.0%Agent matches it
Freight+3.3%AP clerk checks
Release the paymentAlways a person
Inside your tolerance: the agentOutside it: a person

SAP’s own invoice tools or Lleverage: which fits when?

SAP covers supplier invoices in 3 places: invoice verification inside S/4HANA (Create Supplier Invoice, MIRO), SAP Ariba Invoicing on SAP BTP for intake and extraction, and OpenText Vendor Invoice Management (VIM), an SAP solution extension. We read SAP Help Portal and OpenText’s product page on 5 October 2026, and every statement in the middle column comes from those pages.

SAP’s own optionsLleverage
How invoices get inIn S/4HANA Cloud Public Edition, Upload Supplier Invoices (F2452) creates one draft invoice per uploaded file and attaches the file to it. SAP Ariba Invoicing takes uploaded files and, with scope item 6JX, the invoice files from incoming emails.The agent picks invoices up from the finance inbox as they arrive. Nobody uploads a file.
Reading the invoiceAriba Invoicing extracts each upload with Document Information Extraction by default, and AI-Assisted Multi-Model Data Extraction, once activated, adds large language models. VIM extracts data from incoming documents through an add-on, OpenText Core Capture for SAP Solutions.PDFs, scans and forwarded emails, read on their meaning rather than a template. Every field gets its own confidence, and below your threshold it waits instead of guessing.
The three-way matchSAP’s strength. Invoice verification in S/4HANA checks each item against the purchase order or goods receipt with tolerance keys per company code, such as PP for price and DQ for quantity, and a configuration app holds supplier-specific limits.The same three documents compared line by line, within your tolerances, before anything reaches SAP. SAP’s own tolerance check still runs when your team posts the invoice.
A line outside toleranceThe invoice is posted and blocked for payment, and a user releases it in a separate step. An invoice can also be parked in MIRO and finished later. If the invoice does not balance beyond the BD limit for small differences, it cannot be posted at all.The invoice goes to the person you choose with all 3 documents open and the difference named, and a correction becomes a change to the Skill once a person approves it.
Who sees the exceptionVIM routes exceptions by role to the right specialists, in SAP Fiori apps, and gives suppliers self-service on invoice status. Without it, a blocked invoice waits until someone in SAP releases it.The request lands in Teams, Slack or the inbox of the person who owns it, routed to the person you choose.
Invoices without a purchase orderMIRO can post them without a purchasing document, directly to a G/L account, and tolerance key AN can check items without an order reference against an absolute amount limit.Nothing to match three ways, so the agent checks the supplier, the bank details and the cost centre, then routes the invoice to the approver your rules name.
SAP versionsMIRO and the tolerance keys are documented for S/4HANA on-premise and Cloud Public Edition. Ariba Invoicing connects to S/4HANA Cloud Public Edition, S/4HANA and SAP ERP. VIM extends RISE with SAP, S/4HANA and SAP ERP.SAP S/4HANA and SAP ECC, in the cloud or on your own servers, reached without opening them to the internet.
Set-up and priceTolerance keys are configured per company code in S/4HANA. Ariba Invoicing runs on SAP BTP and is set up as scope item 4N6, and OpenText points to its implementation partners for VIM. Prices are not described on the pages we read.Forward deployed engineers build the first flow with your finance team. One monthly price per agent, with integration included.
Fits best whenInvoices arrive in modest numbers, purchase orders and goods receipts are kept clean, and your AP team works in SAP all day anyway.Invoices arrive as PDFs and scans in every layout, variances need the warehouse or a buyer, and you want finance to open only the invoices with a variance.

We think SAP’s own invoice verification is enough when invoices arrive clean and in modest numbers: the three-way check is already in S/4HANA and the tolerance keys do their job. We think Lleverage fits when the work you want gone is reading every layout, matching it and chasing the variances. More on three-way matching and on filling SAP’s gaps without customising it.

Our engineers set it up with you.
It takes on more of the invoice run as it learns.

Forward deployed engineers match the first invoices beside your finance team and connect the agent to SAP S/4HANA or ECC, so the first process typically runs supervised within a few weeks. From there a correction becomes a change to the Skill once a person approves it.

Invalid work email
A busy operations office with people working at their desks
The FDE model Forward deployed engineers build the first invoices with your team.

They work inside your operation. They agree tolerances and cost centres with your controller. The confidence line is yours. Not a licence and a manual. A team that knows your ledger.

If you preferSame agents Self-served Your own finance team builds it in Lleverage.

The finance inbox, the tolerances, the checks and the log are yours to configure. Our documentation and support sit behind your team, and an engineer is a call away whenever you want one.

Talk to us about either ↗

Frequently asked questions

Does it work with SAP S/4HANA on-premise, private cloud and ECC?

Yes. Lleverage connects to SAP S/4HANA and SAP ECC, in the cloud or on your own servers. Systems behind your firewall are reached without opening them to the internet, and the agent gets the access a person in accounts payable has, nothing more. Our engineers set up the connection with your SAP team. More on integrations.

Which AP automation software works with SAP S/4HANA in Europe?

Besides SAP’s own MIRO, Ariba Invoicing and VIM by OpenText, Basware connects to S/4HANA through a certified SAP BTP connector and is a Peppol access point, Medius offers a pre-packaged SAP connector, and Coupa integrates with ECC and S/4HANA (their own sites, read 14 October 2026). We think the question for each is which steps run inside SAP.

Can three-way matching in SAP S/4HANA be automated without custom code?

Yes. The agent works next to SAP rather than inside it: it reads the invoice, matches each line to the purchase order and goods receipt, and hands over the invoices that agree, so the posting stays a normal entry that SAP checks as always. We think that matters as much as the match: SAP stays the system of record.

What should the business case for automating SAP invoices count?

We think it should count the share of invoices nobody has to open and the days a variance takes to clear, not just the minutes saved on keying. Lleverage costs one monthly price per agent, with integration included, and the first process typically runs supervised within a few weeks. Work it out with our ROI calculator.

Can the agent release invoices that SAP has blocked for payment?

No. Releasing a payment is never its call. SAP blocks an invoice for payment when a variance exceeds an upper tolerance limit, and a user releases it in a separate step (SAP Help Portal, read 5 October 2026). The agent prepares that decision: it gathers the order, the goods receipt and the difference, so the controller decides in one look.

Where is our invoice data hosted?

Lleverage is EU hosted by default and GDPR compliant, with on-prem where you need it. SAP stays the system of record: nothing is migrated, and a full audit trail shows what the agent did. More on control and audit trails.

Give your back office an AI workforce.