MES SAP integration is the automated exchange of data between a manufacturing execution system, or other shop-floor systems, and SAP ERP. Orders flow down from SAP to the floor, and actual production, consumption and machine data flow back up.
Without it, someone re-types the day into SAP. Counts, scrap and downtime get keyed in at shift end, and the delays and typos flow straight into stock, costing and maintenance records. This guide explains how the integration works, which standards and interfaces apply, and how plants in India and the USA can start.
What Is MES SAP Integration?
MES SAP integration, a form of MES ERP integration, is the two-way link that keeps SAP's plan and the shop floor's reality in sync. SAP holds orders, materials, costs and maintenance plans; the MES holds what actually happened on each line, shift and machine.
Each system has its job. As the Hyperbots MES integration glossary puts it, "ERP may remain authoritative for financial accounting and purchasing, while the MES maintains detailed production execution information." Integration lets each system stay the master of its own data.
How Does MES Integration With SAP Work?
MES integration with SAP works in 2 directions. SAP sends production orders, bills of materials and routings down to the floor; the floor sends confirmations, goods movements, quality results and machine events back up.
- 1Release: SAP releases a production order with its materials and operations.
- 2Download: the order reaches the MES or shop-floor system through an interface.
- 3Execute: operators run the order while machines report counts, runtime and stops.
- 4Confirm: quantities, scrap, labour and machine time are sent back to SAP.
- 5Post: SAP updates stock, costs and order status, and maintenance alerts open notifications.
What Data Flows Between the Shop Floor and SAP?
Shop floor integration with SAP typically moves 6 kinds of data. Each maps to an SAP module, so most projects are really an SAP PP integration and an SAP PM integration, plus Materials Management (MM).
| Data | Direction | Typical SAP area |
|---|---|---|
| Production orders, BOMs, routings | SAP to shop floor | PP |
| Yield, scrap and operation confirmations | Shop floor to SAP | PP |
| Material consumption and goods receipts | Shop floor to SAP | MM and inventory |
| Quality results | Shop floor to SAP | Quality Management |
| Machine runtime, stops and OEE | Shop floor to SAP | PP and PM reporting |
| Fault and condition alerts | Shop floor to SAP | PM notifications |
Maintenance is often where the money shows up first. A NIST study (2020) found US plants investing more in preventive or predictive maintenance had, on average, 44% less downtime. Sending condition alerts straight into SAP PM shortens the path from warning to work order.
What Does ISA-95 Say About MES and ERP Integration?
ISA-95 is the international standard for connecting manufacturing control systems with business systems. The ISA-95 page titles it "Enterprise-Control System Integration," also known as IEC 62264.
It defines 5 levels, from physical processes to business planning. ISA states that "the ISA-95 standard primarily deals with the interface between levels 3 and 4."
| ISA-95 level | What it covers (ISA wording) | Example systems |
|---|---|---|
| Level 0 | Physical production processes | Machines, pumps, conveyors |
| Level 1 | Sensing and manipulating the production process | Sensors, actuators |
| Level 2 | Monitoring and supervising control | PLCs, HMIs, SCADA |
| Level 3 | Manufacturing operations management | MES, SCADA |
| Level 4 | Business planning and logistics | ERP such as SAP |
Because ISA-95 is also published as IEC 62264, the same model applies to plants in India and the USA, which helps multinational groups standardise integration across sites.
Which SAP Interfaces Are Used for Shop Floor Integration?
SAP shop floor integration usually uses 5 interface types: IDoc, BAPI, RFC, OData and REST APIs. The right choice depends on the SAP version, data volume and how real-time the flow must be.
- IDoc: SAP's document-style message format, suited to asynchronous batch exchanges.
- BAPI: standard business functions, such as posting a production confirmation.
- RFC: remote function calls that let external systems call SAP functions directly.
- OData: web-style APIs common in SAP S/4HANA and Fiori-era integrations.
- REST APIs: general web APIs, often through middleware or SAP Business Technology Platform (BTP).
Older SAP ECC landscapes lean on IDoc, BAPI and RFC, while SAP S/4HANA projects increasingly use OData and cloud integration through BTP.
What Is Shop Floor Control in SAP?
Shop floor control in SAP is the execution stage of production orders in the PP module: releasing orders, issuing materials, confirming operations and receiving finished goods. It records what was actually produced against what was planned.
Out of the box, people enter those confirmations by hand. MES SAP integration automates that step, so confirmations, scrap and machine time arrive from the floor in near real time instead of at shift end.
Can You Integrate the Shop Floor With SAP Without an MES?
Yes. Plants without a full MES can still connect machines to SAP by using edge devices that collect machine data and post it to SAP through standard interfaces. This suits plants that mainly need runtime, counts and maintenance alerts rather than full MES workflows.
There is a trade-off. A full MES manages detailed work instructions, genealogy and labour; a direct machine-to-SAP link covers the data SAP most needs, faster and with less software.
How Does YoByTech Connect the Shop Floor to SAP?
YoByTech, based in Bhubaneswar, Odisha, offers SAP and enterprise integration for SAP S/4HANA, SAP ECC 6.0 and SAP BTP. Its page says it "streams live machine runtime, OEE, batch production counts, and predictive maintenance alerts" from field LPUs into SAP PP and PM.
The page lists interfaces "via OData, BAPI, RFC, IDoc, and REST APIs" and modules including PM, MM, PP, SD, FI-AA and FICO. It claims "<500ms" real-time sync, and also automates "unmanned weighbridge weight capture, RFID/FASTag vehicle gate entry, and AI bag counting." Machine data comes from its industrial automation and real-time monitoring service.
What Are the Best Practices for MES SAP Integration?
The best practices for MES SAP integration are clear data ownership, standard interfaces, error handling and phased rollout. Most failed projects skip at least one of these 4.
- 1Decide the master for each data object, such as SAP for orders and the MES for execution detail.
- 2Map data to ISA-95 levels so responsibilities between systems are clear.
- 3Use standard SAP interfaces rather than direct database writes.
- 4Build error queues and alerts so failed postings are retried, not lost.
- 5Pilot one line or plant before rolling out site-wide.
Common mistakes to avoid:
- Posting to SAP too often or too rarely, creating load or stale stock.
- Ignoring units and master data mismatches between systems.
- No monitoring of interface failures, so gaps appear in costs and inventory.
- Customising heavily instead of using standard BAPIs and services.
- Leaving maintenance out, which misses the fastest downtime gains. Track results with OEE and machine downtime tracking.
Frequently Asked Questions
What is the difference between MES and ERP?
An ERP such as SAP plans and records the business side of manufacturing: orders, materials, costs, finance and maintenance plans. An MES manages execution on the shop floor: which job runs where, operator steps, machine status and quality checks. ISA-95 places MES at level 3 and ERP at level 4.
What is the SAP shop floor information system?
The SAP shop floor information system is a reporting component in SAP's logistics information system that summarises production data, such as order quantities, scrap and operation times. Its reports are only as accurate as the confirmations posted to SAP, which is why automated shop-floor integration improves the quality of this reporting.
What is the difference between IDoc and BAPI in SAP?
An IDoc is a structured message that SAP sends or receives, usually asynchronously, which suits batch and queued exchanges. A BAPI is a standard business function called directly, often synchronously, such as posting a confirmation. Many shop-floor integrations use BAPIs for immediate postings and IDocs for bulk transfers.
Can MES SAP integration work in real time?
Yes, near real time is common. Machine events and confirmations can reach SAP within seconds when integrations use direct function calls or APIs instead of nightly batches. However, posting every machine signal into SAP is rarely wise. Most designs aggregate data and post meaningful events, such as completed quantities or fault alerts.
Does SAP have its own MES?
Yes. SAP offers its own manufacturing execution products, including SAP Digital Manufacturing, alongside SAP S/4HANA. Many plants instead use third-party MES or direct machine-to-SAP integration, depending on cost, existing systems and how much shop-floor workflow they need to manage outside SAP.
Which SAP modules are involved in shop floor integration?
Shop floor integration mainly involves 4 modules. These are Production Planning (PP) for orders and confirmations, Materials Management (MM) for goods movements, Quality Management for inspection results and Plant Maintenance (PM) for fault notifications. Finance modules receive the cost effects of these postings automatically once production and consumption are confirmed in SAP.
Bikram Pattanayak, YoByTech Automation
Managing Director & Chief Executive Officer. View all articles by Bikram Pattanayak, explore all blog authors, or meet our engineering leadership.



