Professional Documents
Culture Documents
SAP and MES Integration. Step-by-Step
SAP and MES Integration. Step-by-Step
Community
gorbenkoteh
Active Participant
04-16-2020 4:44 PM
18 Kudos
Quote.
This quote about a series of blog-posts ("Integrate it...") about integration between
different SAP and non-SAP systems
About.
MES may operate across multiple function areas, for example, management of
product definitions across the product life-cycle, resource scheduling, order execution,
and dispatch, production analysis and downtime management for overall equipment
effectiveness (OEE), product quality, or materials track and trace. MES creates the
"as-built" record, capturing the data, processes, and outcomes of the manufacturing
process. This can be especially important in regulated industries, such as food and
beverage or pharmaceutical, where documentation and proof of processes, events,
and actions may be required.
Benefits of MES:
1.
Reduced waste, re-work, and scrap, including quicker setup times
2.
More accurate capture of cost-information (e.g. labor, scrap, downtime, and
tooling)
3.
Increased uptime
4.
Incorporate paperless workflow activities
5.
Manufacturing operations traceability
6.
Decreases downtime and easy fault finding
7.
Reduced inventory, through the eradication of just-in-case inventory
Common use cases where MES system integrated with SAP EWM and/or SAP ERP
systems
Prerequisites.
You want to know more about SAP-MES Integration with SAP PI/PO in the outline.
Resolution.
Step 0. Intro
1.
Materials from ERP to MES
2.
Batches from ERP to MES
3.
Deliveries from ERP to MES
4.
Handle Units from ERP to MES
5.
Process Orders from ERP to MES
6.
Materials from MES to ERP
2.Namespace
Assign Request Role to created MT and Fault Role to Fault Message Type
1.
the Route to/from MES System
SOAP Receiver Communication Channel (Target URL to MES Web Service with
Credentials and Port Number)
Adapter - Sender
2.
The route to/from ERP System
Adapter - Receiver
SOAP Receiver Communication Channel (Target URL to MES Web Service with
Credentials and Port Number))
N.B. More than one system can be as a target system for a Master Data workflow
Model Configuration:
N.B.
IDoc, short for Intermediate Document, is a SAP document format for business
transaction data transfers. The IDoc itself is a structured Text-File, that means IDocs
can be used on all platforms, there is no need to translate binary data
SAP transactions:
Program ID -
1)A RfcAdapter sender channel registers itself with this Program ID as a RFC-Server at
the SAP Gateway. The sending system uses the same Program ID to identify the RFC-
Server at the SAP Gateway.
During the sending system sends some RFC calls, the SAP Gateway will search its
registration list for the Program ID supplied by the sending system
For example Segment type E1BATMAS and Fields in Segment like as MATERIAL
For example:
SAP Object - MATERIAL has a standard IDoc Message Type MATMAS. In transaction
WE81 we can create custom message type, for example, ZMATMAS.
PARTNER TYPE
Partner type/role is used to identify partners within the sap systems. Partner type is
KU for a customer, LI for vendor and LS for Logical System.
Step 3.2. RFC Integration
Bindings between generated z-structure from SAP PO Data Type and you custom
code which populated data to this z-structure
Transaction - SE80 - Object Navigator and other development tools like an SM30 and
SE38
For IDOC:
SE38 -> Create variant for each message type used in SAP-MES integration.
RBDMIDOC Report -> Create Variant
SM36 -> Create Background job for each variant of RBDMIDOC Report
For RFC:
SM36 -> Create Background job for each custom ABAP program which sends data to integration
For example MES system with integration part based on Apache Camel.
"ERP data is exchanged as XML text files that comply with a selected set of
SAPIDOCs. The IDOCs from a file system is transformed from XML to
common business objects and delivered to FTPC through JMS message
queues. Using an event sheet, Shop Operations Server reads the messages
from this queue and launches a specific activity set to process each
message."
Integration Configuration:
Inbound Configuration
Outbound Configuration
Step 5. Monitoring
Example:
Status Monitor for ALE Messages for example status for LOIPRO (Production Order)
Troubleshooting.
Problem:
Queue in error " Failed to resolve repository reference @XI_IDOC_DE FAULT_DESTINATION "
Resolution:
Links.
https://answers.sap.com/questions/4713524/idoc-error-status-entry-in-outbound-
table-not-foun.html
https://blogs.sap.com/2012/12/31/idoc-basics-for-functional-consultants/
https://launchpad.support.sap.com/#/notes/137412
Conclusion.
Tags:
MES
3 Comments
gorbenkoteh
Active Participant
10-07-2020 3:44 PM
1 Kudo
Sreenivasa
Newcomer
02-24-2022 2:38 PM
0 Kudos
0 Kudos
Comment
ABAP CDS Views - BW Extraction 1 ABAP CDS Views - CDC (Change Data Capture) 1
ABAP Programming 2 access data from SAP Datasphere directly from Snowflake 1
ADS with ABAP 1 ADS with Java 1 ADT 1 Advance Shipping and Receiving 1
Artificial Intelligence (AI) blockchain Data & Analytics Intelligent Enterprise Oil Gas IoT… 1
Backup schedule 1 Bank 1 basis 2 Basis Monitoring & Tcodes with Key notes 2
CAP 1 Capgemini 1
Catalyst for Efficiency: Revolutionizing SAP Integration Suite with Artificial Intelligence… 1
Related Content
Integrate C4P-Resource Management with SAP Analytics Cloud or SAP
DataSphere
in Technology Blogs by SAP Thursday
Exploring Integration Options in SAP Datasphere with the focus on using SAP
extractors
in Technology Blogs by SAP Thursday
Trigger a process in SAP Build Process Automation from SAP Build Apps without
using API [Sneak Peek]
in Technology Blogs by SAP Thursday
former_member200339
Participant
Follow
Trademark Newsletter