# How to add document OCR to SAP ECC 6.0

> Source: https://netray.co/integrations/sap-ecc-document-ocr
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: Integrations

## Short answer

Extract fields from scanned invoices, packing slips and certificates with an OCR plus language-model pipeline, match them to POs and vendors, and post parked invoices or goods receipt proposals through BAPIs. Store the image with ArchiveLink so the document is visible from the SAP transaction. Low-confidence fields go to a review screen.

## System

SAP ECC 6.0

## Capability

document-ocr

## Intro

Many ECC users still handle paper or PDF invoices manually: scan, key into MIRO or FB60, attach the image. Receiving departments key packing slips into MIGO, and quality departments file certificates of conformance by hand against the batch.

OCR on its own reads text; the real work is understanding the document and tying it to ECC objects. A three-way match in ECC (PO, goods receipt, invoice) is a useful check, because the system already knows what should arrive and at what price.

## Use Cases

### Vendor invoice capture

**Description:** Extract vendor, invoice number, date, totals and lines, match to the PO and park the invoice for approval.

### Packing slip to goods receipt

**Description:** Read delivery note lines, match them to open PO items and propose a goods receipt movement for the dock clerk to confirm.

### Certificate of conformance filing

**Description:** Pull the heat or lot number and part number from certs and attach them to the batch or inspection lot.

### Drawing and revision capture

**Description:** Read title blocks to link drawings to materials and revision levels in the document management system.

### Freight and customs documents

**Description:** Extract values from carrier invoices and customs forms for freight settlement.

## System Surface

- ArchiveLink (OAC0, OAC2, OAC3) with a content repository stores the image and links it to a business object such as the invoice or PO.
- BAPI_INCOMINGINVOICE_PARK and BAPI_INCOMINGINVOICE_CREATE post vendor invoices; parked documents appear in MIR7 for review and posting in MIRO.
- Goods receipt via BAPI_GOODSMVT_CREATE, with the right movement type (101 for PO receipts, typically) and PO reference.
- SAP DMS (CV01N and related) or Generic Object Services (GOS) can hold certificates and drawings against materials and batches.
- Established invoice-management products in the SAP ecosystem exist; check what you already license before building.

## How It Works

### Ingest documents

**Detail:** From a mailbox, scanner folder or portal. Keep the original and a checksum.

### OCR and layout

**Detail:** Run OCR with layout detection; for multi-line tables use a layout-aware model, not plain text.

### Extract fields with a model

**Detail:** A language model maps text to a schema (vendor, PO, lines) and gives per-field confidence.

### Match to ECC

**Detail:** Resolve vendor tax IDs and names to LFA1, PO numbers to EKKO, and lines to EKPO with quantity and price tolerances.

### Threshold and review

**Detail:** Above-threshold documents are proposed automatically; others go to a review UI that shows the image next to the fields.

### Post and archive

**Detail:** Park or post through the BAPI and link the image with ArchiveLink to the resulting document.

## Example Flows

### Invoice with a PO

**Trigger:** A vendor PDF invoice arrives in the AP mailbox.

**Steps:**

- OCR and extraction produce header and lines.
- The PO is found and three-way match checks run.
- A tolerance breach is highlighted for the clerk.
- The clerk fixes one quantity and approves.
- The invoice is parked via BAPI and the image archived.

**Result:** Fewer keying errors and faster approvals, with the image attached to the document.

### Certificate for a received batch

**Trigger:** A supplier cert is scanned at receiving.

**Steps:**

- The batch and part numbers are read.
- They are matched to the open inspection lot.
- The PDF is linked to the batch or lot.

**Result:** Quality can find the cert from the batch.

## On Prem

Invoices, certificates and drawings are sensitive. Run OCR and the extraction model on your own GPU servers using open-weight vision-language and text models, store images in your content server, and call ECC over internal RFC. This also avoids sending controlled technical data to a public API, a concern for aerospace and defense suppliers.

## Security

- Restrict the posting service user to invoice parking and goods receipt for specific company codes and plants.
- Validate bank details changes separately; never let OCR alter vendor bank master data.
- Check for duplicate invoices by vendor, invoice number and amount before posting.
- Keep the original document immutable and log every field edit.

## Options

### Existing SAP-ecosystem invoice product

**Fit:** AP-heavy sites with standard invoices and a licence already.

**Effort:** Months, vendor-led.

### Build with open-source OCR and a local model

**Fit:** A team that wants control and handles varied documents.

**Effort:** 8 to 14 weeks to a dependable level.

### Partner such as Netray

**Fit:** Mixed document types, on-prem requirement and BAPI posting with review.

**Effort:** Pilot on one document type in weeks.

## Pitfalls

- Tables with merged cells and multi-page invoices break naive extraction.
- Tax, freight and discount lines do not map to PO items and need rules.
- Auto-posting without a duplicate check creates double payments.
- ArchiveLink repository misconfiguration is a common cause of images not appearing in the transaction.

## Faq

### Does ECC have built-in OCR?

**Answer:** Not as a ready AI capability. ECC supports ArchiveLink for storing images and has scanning scenarios through partner products, but extraction and matching are done by add-on tools or custom pipelines.

### Should we post or park invoices?

**Answer:** Parking is the safer start. It creates a document that accounting reviews in MIR7 before posting, so errors are corrected inside normal SAP controls.

### How do we handle low-confidence fields?

**Answer:** Set a threshold per field. Anything below it is highlighted in a review screen beside the image. Track corrections to tune thresholds and improve prompts.

### Can this run fully offline?

**Answer:** Yes. OCR, extraction models, the review UI and the ECC connection can all run on-prem, with no external API calls.

### What about handwritten notes?

**Answer:** Handwriting accuracy is much lower and variable. Treat it as review-only and do not auto-post from handwritten content.

## Search terms

sap ecc invoice ocr, document ocr for sap ecc, sap ecc invoice automation, sap archivelink ocr, sap ecc park invoice bapi, sap ecc ai invoice capture, ocr packing slip sap goods receipt, sap ecc certificate of conformance ocr

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
