SAP manufacturing integration: connecting PP, QM and PM to MES, machines and the shop floor

SAP manufacturing integration moves production orders, BOMs and routings down to the shop floor and brings confirmations, goods movements, quality results and machine data back up. The usual building blocks are IDocs such as LOIPRO and LOIROU, BAPIs and S/4HANA OData APIs, middleware such as SAP Integration Suite or PI/PO, and SAP Plant Connectivity for machine-level data. Which platform fits depends on your MES, your SAP release and how close to real time the plant needs to be.

When this makes sense

  • Plants rolling out a MES and needing it synchronized with SAP production orders
  • Manufacturers re-keying confirmations and scrap from paper or spreadsheets into CO11N
  • Companies replacing SAP MII or ME and moving to SAP Digital Manufacturing or another MES
  • Quality teams wanting inspection results from LIMS or gauges recorded against SAP inspection lots
  • IT teams moving off PI/PO and redesigning manufacturing interfaces on Integration Suite

What the engagement covers

Integration architecture

Map ISA-95 levels to systems, decide which system owns orders, dispatching, genealogy and quality, and pick event-driven or batch patterns per flow.

Order and master data download

Production order (LOIPRO), routing (LOIROU), BOM, material and work center IDocs, or S/4HANA production order APIs, including change handling when orders are rescheduled or modified.

Confirmation and goods movement upload

Operation confirmations, yield and scrap, activity quantities and component consumption through BAPIs such as BAPI_PRODORDCONF_CREATE_TT and BAPI_GOODSMVT_CREATE or their API equivalents, with COGI error handling.

Quality integration

Inspection lots, results recording and usage decisions exchanged with LIMS or the MES, using QM BAPIs or APIs.

Machine and sensor data

SAP Plant Connectivity or an industrial gateway reading OPC UA tags for counts, downtime and process values, with aggregation before anything reaches SAP.

Middleware choice

SAP Integration Suite (Cloud Integration), existing PI/PO, SAP Digital Manufacturing's own integration, or a third-party iPaaS, with monitoring and alerting.

Analytics flows

Separate operational integration from analytics: production and quality data extracted to a data platform or SAP Datasphere rather than overloading transactional interfaces.

How it runs

  1. 1

    Flow inventory and design (3-5 weeks)

    • List every manufacturing data flow and its owner
    • Choose pattern and technology per flow
    • Define error handling and reprocessing
  2. 2

    Build (6-14 weeks)

    • IDoc partner profiles, API exposure or BAPI wrappers
    • Middleware mappings and routing
    • Monitoring dashboards and alerts
  3. 3

    Test on a pilot line (3-6 weeks)

    • Order download and change scenarios
    • Confirmation and scrap upload with reconciliation
    • Network and SAP outage recovery tests
  4. 4

    Rollout (4-12 weeks)

    • Line by line or plant by plant cutover
    • Daily reconciliation between MES and SAP
    • Support handover with runbooks

What you get

  • Manufacturing integration architecture with system-of-record matrix
  • Interface specifications per flow with message types or APIs
  • Middleware mappings, monitoring and alert configuration
  • Error handling and reprocessing runbook (IDoc, BAPI and COGI)
  • Pilot line test results and reconciliation reports
  • Rollout plan by line or plant

What drives cost and effort

Number of flows and plantsEach additional flow, plant or MES instance adds mapping, testing and support.
Real-time requirementsNear real-time confirmations and goods movements need event-driven design and more resilient error handling than nightly batches.
MES maturityAn MES with standard SAP connectors needs configuration; a custom or legacy MES needs build work.
Middleware starting pointReusing a well-run PI/PO or Integration Suite tenant is cheaper than introducing a new platform.
Genealogy and serializationBatch and serial number traceability across systems adds data design and testing.
SAP releaseS/4HANA offers OData APIs for many objects; ECC relies more on IDocs and BAPIs, sometimes with custom wrappers.

Fixed-scope integration design

Companies selecting or onboarding a MES who need the architecture and specifications first.

Fixed-price pilot line then rollout

Manufacturers that want to prove the integration on one line before committing to all plants.

Managed integration support

Plants that need someone watching interface queues and fixing failures every shift.

Questions to ask any SAP consultant

Which MES products have you integrated with SAP, and in which direction did data flow?

Experience with your MES or a similar one reduces risk more than general SAP integration skill.

How do you handle an order change in SAP after the MES has started the order?

Order change handling is where many MES integrations break.

What happens when SAP is down and the line keeps running?

You need buffering in the MES or middleware and a clean catch-up process.

Would you use IDocs, BAPIs or OData APIs for confirmations, and why?

The answer shows they understand trade-offs in volume, error handling and release.

How will we monitor interfaces, and who gets alerted?

Silent failures at shift change are a common cause of inventory errors.

Score candidate partners side by side with the free Implementation Partner Scorecard

Where these projects go wrong

Duplicate confirmations or goods movements after retries

Design idempotent messages with unique keys and check before posting.

COGI errors piling up unnoticed

Monitor COGI daily and fix root causes such as missing stock or batch data.

Sending raw machine data into SAP

Aggregate at the edge or MES and send only business-relevant results.

PI/PO end of maintenance forcing a rushed rebuild

Plan the Integration Suite move as part of the MES roadmap.

If your plant is small and confirmations are few, a well-designed CO11N screen, barcode scanning or a simple Fiori app may beat a full MES integration. Many MES vendors also ship standard SAP connectors, so check what is included before paying for custom build.

Frequently asked questions

Which data integration platforms work with SAP manufacturing modules?

SAP Integration Suite and PI/PO are SAP's own options; SAP Digital Manufacturing integrates natively with S/4HANA; Plant Connectivity handles shop floor data sources. Most third-party iPaaS products can call SAP IDocs, BAPIs and OData APIs too, so the choice depends on your landscape and skills.

What IDoc is used for production orders?

LOIPRO is the standard message type for sending production orders to external systems, with LOIROU for routings and related LOI types for other master data. Configuration in the ALE distribution model and partner profiles controls what is sent.

How do MES confirmations post into SAP?

Typically through BAPIs such as BAPI_PRODORDCONF_CREATE_TT or the equivalent S/4HANA APIs, which post the confirmation and trigger backflush and activity postings. Goods movement errors land in COGI for correction.

What is SAP Plant Connectivity?

Plant Connectivity (PCo) is SAP software that connects to shop floor sources such as OPC UA servers and historians and passes data to SAP manufacturing applications. It is commonly used with SAP Digital Manufacturing and MII.

Can AI use manufacturing data from SAP and the MES?

Yes. A private AI assistant can answer questions that span SAP orders and MES events, such as why a line fell behind. Netray builds these on-premise with read-only access by default.

Talk to a SAP consultant

Tell us where you are and what you need. You get a straight answer on scope, approach and whether you need outside help at all.

Get ERP alerts and new tools

Support deadlines, release changes and new free tools for the ERP you run. A couple of emails a month at most.

Free. Unsubscribe with one click from any email.