Quick answer

What SAP intelligent document processing does

Intelligent document processing (IDP) in SAP reads a business document, decides what kind of document it is, extracts its fields with a confidence score, checks them against rules and SAP data, and has a person confirm what is uncertain before anything posts. PostNow.ai Document AI does this for supplier invoices in two places: its operations workspace extracts every field with a confidence score, flags duplicates and takes the invoice through review and approval to Ready for posting; its posting screen simulates a reviewed invoice in SAP and posts it through BAPI_INCOMINGINVOICE_CREATE1 (MIRO) or BAPI_ACC_DOCUMENT_POST (FB60).

  • Confidence points the reviewer at a field. It is the model's own estimate, so it decides where a person looks first, not whether the value is right.
  • Catch duplicates before SAP does. SAP KBA 1859210 describes that logistics invoice verification does not run its duplicate check for invoices created through BAPI, EDI or API, so the IDP step has to; in PostNow.ai Document AI that is the operations workspace.

This page covers the whole IDP chain for SAP, from the PDF that arrives to the document number SAP returns. The text-recognition layer on its own is covered in SAP invoice OCR, price and quantity matching in SAP invoice matching, and the wider payables process in SAP accounts payable automation.

How PostNow.ai Document AI takes a document into SAP

PostNow.ai Document AI is a licensed module of the PostNow.ai web portal, switched on per customer account. Licensed accounts see a Document AI menu with three entries: Operations for the daily invoice work, Configuration for the rules, and New document type for documents other than invoices. The operations workspace takes an invoice from intake to Ready for posting:

  1. Capture. AP uploads invoice PDFs in the portal, or another system sends them to the ingest API with its own client ID and secret. Each file is checked for type and size, and a file whose content has been received before is flagged as an exact duplicate, never silently dropped.
  2. Extract. An AI model reads the whole PDF and returns the header (vendor name, vendor tax ID, invoice number, invoice date, currency, PO reference, net and gross amount), every line (description, quantity, unit price, amount, PO item) and the tax lines. Each field comes with a confidence score and the text as printed. A field that is not on the page comes back empty with confidence 0; the model is instructed never to invent a value.
  3. Classify. An invoice with a PO number is routed as PO-based, toward MIRO; one without is non-PO, toward FB60. Suppliers you list as PO vendors turn a missing PO number into an exception instead of a non-PO posting. A reviewer can change the classification, and the change is recorded.
  4. Check for near-duplicates. After extraction, an invoice with the same invoice number (compared without punctuation and leading zeros), the same vendor, a gross amount within 0.5% and a date within 5 days of an earlier one is flagged. Those are the defaults; the tolerances are configurable. An open duplicate flag blocks submission until someone marks it a duplicate or not.
  5. Verify. The reviewer sees the original PDF beside the extracted fields. Each field shows its confidence, coloured high (90% and above), medium (70% and above) or low, and every correction is stored with the old and new value.
  6. Approve. Approval rules match on PO or non-PO, company code and gross amount, and the first matching rule decides the steps. Out of the box every invoice needs one admin approval. A non-PO rule is saved with at least two steps, and a person who edited the fields cannot be the only approver.
  7. Match PO invoices. For a PO invoice, PostNow.ai reads the purchase order (EKKO/EKPO) and its goods receipt history (EKBE) from SAP and compares each line against your price and quantity tolerances per company code, with an absolute cap on price differences. Each line ends as matched, price variance, quantity variance or no goods receipt.

Posting runs on the Document AI posting screen, which has its own upload, extraction and field review. A reviewed document is simulated in SAP from there: SAP checks it as it would a real posting, and the simulation ends with a rollback instead of a commit. On Post, PostNow.ai checks again which SAP system, client and user it is connected to, calls the BAPI, and commits only when SAP returned no error or abort message. The SAP document number then appears on the document, and a document that is already being posted cannot be posted a second time.

ⓘ
Whose SAP login posts. Every SAP call runs through PostNow.ai on your own computer, under your own SAP login, when you start it. The login is encrypted in your browser for that computer only, so PostNow.ai's server cannot read it, and call data passing through the server is deleted as soon as your computer picks it up.

The five stages of SAP intelligent document processing

PostNow.ai Document AI covers all five stages that any SAP intelligent document processing setup has to cover. What changes between products is who does each stage and where the result lands:

StageIn PostNow.ai Document AIThe decision you make
CaptureUpload in the portal or the ingest API; file type and size checked; exact duplicates flagged on arrivalWhich mailbox, scanner or system feeds the documents, and who owns that feed
ClassificationPO-based or non-PO from the content; PO-vendor list; your own document types chosen at uploadWhich suppliers always invoice against a PO, and what happens when one does not
ExtractionHeader, lines and tax lines from the whole PDF, each field with a confidence score and the printed textWhich fields SAP needs, and which ones a person always checks whatever the score
ValidationNear-duplicate check, side-by-side verification, approval rules, PO and goods receipt match against your tolerancesApproval amounts per company code, tolerances, who resolves duplicate flags
PostingOn the posting screen: Simulate in SAP, then post through BAPI_INCOMINGINVOICE_CREATE1 or BAPI_ACC_DOCUMENT_POST; document number shownDefault company code, document types, G/L coding for non-PO invoices, tax code per rate
SAP intelligent document processing in five stages: capture, classify, extract, validate and integrate into SAP
Each stage hands a narrower question to the next: what is this document, what does it say, can we trust it, and where does it post.

OCR versus IDP

PostNow.ai Document AI sends the whole PDF to an AI model that reads the text and the layout together, so there is no per-supplier template to build or repair. That is the practical line between OCR and IDP:

IDP (PostNow.ai Document AI)OCR on its own
OutputNamed fields (invoice number, gross amount, PO item) with a confidence eachThe characters on the page
A new supplier layoutRead from what the fields mean, not where they sitNeeds a zone or template for that layout
ChecksDuplicates, required fields, totals, approvals, PO and goods receipt matchNone; another tool does them
Into SAPMapped to BAPI fields and posted after reviewText that someone still keys or maps

Text recognition still sits underneath IDP: a scanned page has to become text before its fields can be named, whether a separate OCR engine or the AI model itself reads it. How the recognition layer works for invoices, and how to judge it, is in SAP invoice OCR.

Document classification: which document, which SAP route

PostNow.ai Document AI classifies an invoice by what it contains, because the class decides the SAP transaction. An invoice with a PO number goes the MIRO way; one without goes the FB60 way. Getting this wrong is expensive: a PO invoice posted through FB60 leaves the purchase order open for invoicing and the goods receipt uncleared on the GR/IR account.

  • The content wins over the channel. A channel can be marked "always PO" or "always non-PO", but when the content contradicts that hint, the document goes to Verification instead of being forced through.
  • PO vendors are an exception, not non-PO. If a supplier on your PO-vendor list sends an invoice with no PO number, the invoice stops for a person. Most of these turn out to be a PO number printed somewhere unusual, or a supplier who has to be asked for it.
  • Your own types are picked at upload. On the posting screen, the uploader chooses the built-in invoice or a document type your designer defined, and that type's schema drives the extraction.

Extraction and confidence scores

PostNow.ai Document AI extracts header fields, every line and the tax lines in one pass, and keeps the printed text next to each value, so a reviewer can see that "09/10/2026" became 9 October and not 10 September. Line items matter as much as the header: a MIRO posting needs PO item, quantity and amount per line, and a three-way match is only as good as the lines it compares.

A confidence score is the model's own estimate of how sure it is, from 0 to 1. Use it to rank where a reviewer looks, not as proof. The posting screen marks any field below 0.85 for review and checks the arithmetic of the invoice itself (lines against net, net plus tax against gross, to the cent). SAP gives the same advice for its own service: its learning material says to validate extracted information before using it in critical applications.

ⓘ
Fields to check whatever the score. Invoice date (day-month order differs by country), supplier tax ID, gross amount and PO number. A confident wrong date moves the payment due date; a confident wrong PO number sends the invoice to the wrong order.

Human-in-the-loop review and approvals

PostNow.ai Document AI puts a person between extraction and SAP on every document, and records what that person did. Human-in-the-loop here means three separate controls, each with its own owner:

ControlWhat PostNow.ai Document AI doesWhat it protects against
VerificationPDF beside the fields, confidence per field, corrections stored with old and new value; vendor, invoice number and gross amount must be filled before the invoice can be submittedA misread field reaching SAP unseen
Duplicate resolutionExact and near-duplicate flags; an open flag blocks submission until someone decidesPaying the same invoice twice when it arrives by mail and as a scan
ApprovalRules by PO or non-PO, company code and amount; steps by role or named user, with a response time in hours; at least two steps for non-PO rulesOne person keying, approving and posting their own invoice
Segregation of dutiesA user who edited the fields cannot be the sole or final approverAn approver signing off their own corrections

Every event on a document (received, extracted, classified, field edited, duplicate resolved, approved) goes into an append-only log in which each entry is chained to the previous one by a SHA-256 hash, and the chain can be verified on demand. That gives an auditor the answer to "who changed this amount, and who approved it afterwards" without anyone reconstructing it from emails.

Validation against SAP data: vendor, PO and goods receipt

PostNow.ai Document AI checks extracted data against SAP itself, read through PostNow.ai on your computer, at three points:

  1. Vendor. On the posting screen the vendor name is searched in the SAP vendor master (LFA1), so the posting carries a real vendor number instead of a printed name.
  2. PO and goods receipt. In the operations workspace, the match reads the order lines and the receipts, nets out reversed receipts and honours the price unit of the PO line, so a price per 100 pieces is not read as a price per piece. The verdict tells the reviewer what SAP will see; the full design of tolerances and blocks is in SAP invoice matching.
  3. SAP's own checks, in Simulate. Balance, tax, PO item, posting period and SAP's tolerance limits are checked by SAP when the invoice is simulated, exactly as they will be at posting. A variance above tolerance still posts the invoice, blocked for payment, as described in SAP MIRO mass invoice posting.

One SAP behaviour shapes the review loop. SAP KBA 3659235 describes that BAPI_INCOMINGINVOICE_CREATE1 returns errors one line item at a time, starting with the first, unlike MIRO. After you fix the message on line 1, the next Simulate can show one for line 2, so expect more than one round on a long invoice.

Posting extracted data to SAP: BAPIs, mapping and the document number

PostNow.ai Document AI posts through SAP's own BAPIs, chosen by the class of the document:

DocumentSAP routeBAPIWhere the coding comes from
Supplier invoice with a POMIRO (logistics invoice verification)BAPI_INCOMINGINVOICE_CREATE1The purchase order; the invoice lines refer to its items
Supplier invoice without a POFB60 (vendor invoice in FI)BAPI_ACC_DOCUMENT_POSTA vendor line plus a G/L line, with G/L account, cost center and tax code from a coding rule for that vendor or from your defaults
Your own document typeThe BAPI your designer pickedFound by name in your SAP systemThe field mapping of that document type

Configuration decides every field the BAPI receives. Each SAP field takes its value from the document (File), a constant (Fixed), a system value (Dynamic: $SAP_USER, $SAP_DATE, $SAP_TIME, $SAP_CLIENT, $SAP_SYSID) or nothing (Skip), with optional trimming, upper case, leading zeros, date format and a default. A tax-rate table turns the 19% printed on the invoice into your tax code, and vendor coding rules give each non-PO supplier its own G/L account, cost center, tax code and document type. Admins and designers maintain these settings; operators cannot change them.

After a clean post, PostNow.ai reads the SAP document number from the BAPI's answer (INVOICEDOCNUMBER for MIRO, the object key for FB60, or the success message) and shows it on the document. If SAP committed but the number could not be read, the document still counts as posted, so nobody posts it again.

SAP document automation in S/4HANA and ECC

PostNow.ai Document AI reaches SAP through BAPIs over RFC, so SAP document automation works wherever those BAPIs exist. Both of the invoice BAPIs do in SAP ERP (ECC) and in SAP S/4HANA: SAP's KBAs on BAPI_INCOMINGINVOICE_CREATE1 (3659235) and on the accounting BAPIs (3325182, the central KBA for BAPI_ACC_DOCUMENT_POST and its siblings) are filed for both product lines.

  • Same posting, different release. The fields you map stay the same; check new mandatory fields or custom fields with your SAP team in SE37 or the BAPI transaction for your release.
  • Business Partner in S/4HANA. Suppliers are maintained as Business Partners, and customer/vendor integration (CVI) keeps a supplier record in LFA1 behind each one; that supplier number is what the invoice BAPIs post to. See SAP Business Partner automation.
  • SAP's own option in S/4HANA. SAP offers SAP Document AI, including an edition embedded in SAP applications; the next section compares it with PostNow.ai Document AI.

Where IDP is applied: invoices first, then your own document types

PostNow.ai Document AI ships the supplier invoice as its built-in document type and lets a designer add others without code, under New document type. A document type has three parts:

  1. A schema. Up to 40 header fields, each typed as text, number, amount, date, currency code or yes/no, marked required or optional, with a short hint for the extraction. Optionally one line table of up to 15 fields.
  2. A target BAPI. The designer searches your SAP system by name, and PostNow.ai stores the BAPI's interface as it was at design time.
  3. A mapping and a number rule. The same File / Fixed / Dynamic / Skip mapping as the invoice, plus where to read the SAP document number from in the answer.

A test extraction on a sample PDF shows what the schema pulls out before anyone posts with it, and the review screen for a custom type lists its required fields as a checklist. Typical candidates, each mapped by your designer to a BAPI your SAP team approves:

Document inRecord out in SAPA BAPI a designer might pick
Supplier invoice (built in)PO invoice or non-PO invoiceBAPI_INCOMINGINVOICE_CREATE1 / BAPI_ACC_DOCUMENT_POST
Customer purchase orderSales orderBAPI_SALESORDER_CREATEFROMDAT2
Supplier delivery noteGoods receipt for a purchase orderBAPI_GOODSMVT_CREATE
Expense or utility statementG/L or vendor postingBAPI_ACC_DOCUMENT_POST

Supplier registration and bank forms belong to a different process with its own controls; it is covered in supplier onboarding automation.

SAP Document AI and PostNow.ai Document AI

PostNow.ai Document AI is the module described on this page: extraction, review, approval and BAPI posting in the PostNow.ai portal, with SAP calls made through PostNow.ai on your own computer. SAP Document AI is SAP's own document processing service on SAP Business Technology Platform (BTP). The names are close, so it helps to keep them apart:

PostNow.ai Document AISAP Document AI
What it isA licensed module of the PostNow.ai web portalA cloud service on SAP BTP; SAP's learning material describes Document Information Extraction as part of SAP Document AI
How you work with itOperations workspace for intake, verification, approvals and matching; posting screen for upload, review, Simulate and PostA REST and OData API, SDKs, and a UI for uploading documents and viewing and validating the extracted data
Into SAPBuilt-in MIRO and FB60 posting through BAPIs, plus your own document types mapped to a BAPI your designer picks from your SAP systemResults go to the target system, such as SAP S/4HANA or SAP S/4HANA Cloud, through notifications and integration services (SAP's reference architecture names Integration Suite and SAP Build Process Automation)
Commercial modelSwitched on per customer account under the PostNow.ai licenceSAP service plans that differ by feature set and metering

SAP also offers SAP Document AI, embedded edition, inside SAP applications. Which document scenarios it covers depends on your S/4HANA edition and release, so check SAP's own documentation for yours. Intelligent document processing is the general name for the discipline both products apply.

Worked example: two supplier invoices into company code 1010

PostNow.ai Document AI handles both invoices below with one configuration: company code 1010, document type RE for PO invoices and KR for non-PO invoices, tax rate 19% mapped to tax code V1, and a coding rule for supplier 100078.

  1. Upload. On the posting screen, AP uploads INV-0447.pdf from supplier 100045 and EL-2026-10.pdf, an electricity bill from supplier 100078.
  2. Extraction. INV-0447 carries PO 4500001872, two lines (600.00 and 400.00), tax 190.00 and gross 1,190.00 EUR, so it goes the MIRO way. The arithmetic check passes. Every field is above 0.85 except the invoice date, printed "09/10/2026". The electricity bill has no PO number and goes the FB60 way.
  3. Review. The supplier is German, so the clerk reads the date as 9 October 2026 and confirms it against the PDF. The vendor search in LFA1 returns 100045 for the printed name. For the electricity bill, the coding rule for 100078 fills G/L account 63100000, cost center 10101301 and tax code V1.
  4. Simulate. INV-0447 passes. The electricity bill comes back with SAP's message that G/L account 63100000 does not exist in company code 1010: the account was set up in the chart of accounts but never extended to the company code. The designer corrects the coding rule to the energy account the company code uses, 63000000, and the second Simulate passes.
  5. Post. INV-0447 posts through BAPI_INCOMINGINVOICE_CREATE1 as invoice document 5105600512, and the electricity bill through BAPI_ACC_DOCUMENT_POST as document 1900000231. Each number appears on its document.

Nothing reached SAP that a person had not seen, and the wrong account was caught in a simulation that left no trace in the books.

Stops before posting and what clears them

PostNow.ai Document AI stops a document with a plain message instead of letting it drift toward SAP. These are the ones an AP team meets first:

MessageWhat it meansWhat clears it
"Vendor, invoice number and gross amount are required"Extraction left one of the three empty, often on a poor scanComplete the fields in Verification from the PDF, then submit
"Resolve the duplicate flag first."An exact or near-duplicate flag is still openCompare with the earlier document and mark it a duplicate (it stops) or not a duplicate (it goes on)
Segregation of dutiesThe person approving edited the fields and would be the only or final approverA second approver decides, or the rule gets another step
"Non-PO rules require at least 2 steps (4-eyes)"An admin tried to save a non-PO approval rule with one stepAdd a second approval or release step
"Monthly document limit reached"The posting screen has used the documents your licence allows this monthThe counter resets next month; the limit is set per account in your PostNow.ai licence
SAP error in SimulateSAP refused the posting (account, period, PO item, tax); nothing was savedFix the field or the rule named in SAP's message and simulate again; for PO invoices, expect the next line's message after the first is fixed

Checklist before you switch on IDP for SAP postings

PostNow.ai Document AI enforces the review, duplicate and approval steps; this list covers the decisions that stay with AP, purchasing and finance.

  1. The document feed is named: who uploads, or which system calls the ingest API.
  2. The PO-vendor list holds every supplier that must always quote a PO number.
  3. Default company code, currency and the MIRO and FI document types are set.
  4. Every tax rate your suppliers print has a tax code in the rate table.
  5. Each recurring non-PO supplier has a coding rule (G/L account, cost center, tax code), and the accounts exist in the company code.
  6. Approval rules cover every company code and amount band, with two steps on non-PO rules.
  7. Price and quantity tolerances per company code are agreed with purchasing and sit within SAP's own tolerance limits (OMR6), so the portal's verdict and SAP's payment block agree.
  8. Duplicate tolerances (amount and date window) are reviewed, and someone owns open duplicate flags every day.
  9. Each poster has PostNow.ai running on their own computer, with their own SAP login set up for it.
  10. A first batch has been simulated end to end before anyone presses Post.

What to plan for in SAP document automation

PostNow.ai Document AI posts through SAP's BAPIs, so SAP's own rules decide the final result of every document.

  • Read blocks after posting. A PO invoice above SAP's tolerance posts and is blocked for payment; release it in MRBR, never post it again. The block design is in SAP invoice matching.
  • Keep review on dates and amounts. Ask reviewers to confirm the four high-risk fields on every invoice, whatever their confidence.
  • Grow document types one at a time. Run a new type's test extraction on real samples from several suppliers before its first posting.
  • Bring spreadsheet data in through Excel. Data that already arrives as rows needs no extraction; post it with the PostNow.ai Excel add-in, as in FB60 mass upload or MIRO mass invoice posting.
  • Treat AI as an assistant. Where AI helps across SAP data work, and where people stay in charge, is covered in AI in SAP automation.

Frequently asked questions

How does PostNow.ai Document AI post documents to SAP?
PostNow.ai Document AI extracts each invoice field with a confidence score and has a person verify it; in the operations workspace, approval rules then decide who signs off. On the posting screen a reviewed invoice is simulated in SAP, which ends with a rollback instead of a commit, and on Post PostNow.ai calls BAPI_INCOMINGINVOICE_CREATE1 for invoices with a purchase order (MIRO) or BAPI_ACC_DOCUMENT_POST for invoices without one (FB60), commits only when SAP returns no error, and shows the SAP document number. The SAP call runs through PostNow.ai on your own computer under your own SAP login.
What is intelligent document processing in SAP?
Intelligent document processing (IDP) in SAP turns a business document such as a supplier invoice into a posted SAP document. It captures the file, classifies it, extracts its fields with a confidence score, validates them against rules and SAP data with a person reviewing what is uncertain, and posts the result through an SAP interface such as a BAPI.
What is the difference between OCR and IDP?
OCR turns the image of a page into characters. IDP uses that text and the layout to name the fields (invoice number, gross amount, PO item), scores its confidence in each, checks them, and maps them to an SAP posting. OCR on its own needs a template per layout and someone to map the result; IDP reads a new supplier's layout from what the fields mean.
What is SAP Document AI?
SAP Document AI is SAP's document processing service on SAP Business Technology Platform. SAP's learning material describes Document Information Extraction as part of it. It extracts structured data from documents such as invoices, forms and statements and offers APIs, SDKs and a UI; SAP also offers an embedded edition inside SAP applications. It is a different product from PostNow.ai Document AI.
How does human review work before posting?
In PostNow.ai Document AI the reviewer sees the original PDF beside the extracted fields, each with its confidence, and corrects what is wrong; every correction is stored with the old and new value. Vendor, invoice number and gross amount must be filled, open duplicate flags must be resolved, and approval rules by PO type, company code and amount decide who approves. A person who edited the fields cannot be the only approver.
Which documents can IDP handle besides invoices?
Any document whose fields map to an SAP posting. In PostNow.ai Document AI a designer defines a document type without code: up to 40 header fields and one line table, a target BAPI found in your SAP system, and a field mapping. Customer purchase orders to sales orders and delivery notes to goods receipts are typical candidates.
Does IDP work with SAP ECC as well as S/4HANA?
PostNow.ai Document AI posts through BAPIs over RFC, and both invoice BAPIs, BAPI_INCOMINGINVOICE_CREATE1 and BAPI_ACC_DOCUMENT_POST, exist in SAP ERP (ECC) and SAP S/4HANA; SAP's KBAs on them are filed for both. Check the fields your release requires in SE37 before the first posting.
How does IDP catch duplicate invoices?
PostNow.ai Document AI flags a file received before, and an invoice with the same invoice number, the same vendor, a gross amount within 0.5% and a date within 5 days of an earlier one; the tolerances are configurable. The check matters because, according to SAP KBA 1859210, logistics invoice verification does not run its duplicate check for invoices created through BAPI, EDI or API.
A professional working in PostNow.ai on a laptop

Your PDFs. SAP's posting rules.

See PostNow.ai Document AI post an invoice to SAP

Extraction with confidence per field, review and approval, then Simulate and Post through SAP's own BAPIs.

Request a demo
Book a demo

Bring one SAP process. We show it end to end.

Tell us where to reach you and which process matters. The PostNow.ai team replies by email to arrange the demo.

  1. 01You send the formIt goes straight to the PostNow.ai team.
  2. 02We agree a timeWe reply to your work email to set up the call.
  3. 03You see your own processA process from your own SAP work, shown from start to finish.

Request your demo

Name, work email and company are needed.

Please use your company email address.
What would you like to see?

We use your details only to arrange the demo. See our privacy policy.