How Do ERP and EDI Work Together?
The ERP is your company's own system of record: stock, orders, shipments and invoices are kept there. EDI is the exchange of these records with your trading partners in agreed standard formats (for example EDIFACT, VDA). A translation layer is needed between the two: the message your trading partner sends is converted into a structure your ERP understands, and the record leaving your ERP is converted into the message your trading partner requires. This layer is called mapping.
MAP takes on this layer. Data is taken from or given to your ERP through the route the ERP supports; the side facing your trading partners is set up according to their standard and communication protocol. Your ERP therefore does not have to learn a separate format for every trading partner. We explain what the source application is in The Source Application and how mapping is done in The Payload Format.
Which Documents Flow in Which Direction?
For a company on the supplier side, the most common starting point is the order, the despatch advice and the invoice. The EDIFACT message names of these documents, their direction and what they correspond to in the ERP are in the table at the end of this page.
Which messages and which version are used is set by your trading partner's implementation guide. In Türkiye, INVOIC does not replace the legal e-invoice; the e-invoice is issued separately through an integrator registered with the Turkish Revenue Administration (GİB).
Connection Routes: How Is Data Taken from the ERP?
| Route | How it works | When it fits |
|---|---|---|
| File exchange | The ERP produces or reads the document as an XML, CSV or TXT file; files are moved through a secure folder or SFTP | Almost any ERP with file export/import |
| SAP IDoc / RFC | SAP's own document (IDoc) and function call (RFC) interfaces are used | Companies using SAP |
| Web service | Data is exchanged between the ERP and MAP through a defined service | If the ERP has a service interface |
All of these routes are among the formats and protocols MAP supports (IDOC, XML, CSV, TXT; web service, SFTP, FTP). Which route is chosen depends on your ERP version, your IT team's preference and the document volume; the decision is made in the scoping work.
Notes by ERP
SAP
In SAP, the EDI connection is usually set up through SAP's IDoc and RFC interfaces. We explain both concepts in detail in Value Added Networks, IDoc and RFC in SAP Integration. One customer's experience:
"As a result of our partnership with MAP, which started with our SAP migration project in 2018, we managed to receive 98% of our total orders via EDI in less than six months."
IFS
An ERP version upgrade means the EDI connections also have to be set up again for the new version. One customer's experience:
"They also provided us with seamless and effective support during our recent IFS Cloud Upgrade process. The integration of EDI and ASN data communication with our customers and suppliers into our IFS Cloud ERP system has enabled automation and increased efficiency in our operations."
Emrah Özalp, ELSİ Electrical Systems Inc. System Administrator
Using a different ERP?
EDI integration can be done with all ERP systems; common examples are SAP, Logo, Mikro and Netsis. If your ERP can exchange files or has a service interface, a connection can be set up. Besides the ERP, MAP also takes data from CRM, supply chain, document management and logistics systems and maps any data structure to any other data structure (Cross-System Integration).
How Does a Project Run?
An ERP-EDI project runs in six steps:
- Scoping: source and target systems, document and data types, the technical capability of the trading partners.
- Clarifying the mapping: the ERP counterpart of every field in the trading partner's message.
- Designing the test: which documents and which scenarios are tested.
- Verifying the connection: test documents are sent to and received from the trading partner.
- Go-live.
- Managing operations: monitoring, error handling and operating responsibilities. The status of incoming and outgoing documents is tracked with MAP Monitor.
Prepare Before You Start
The scoping work starts with these questions; collecting the answers in advance speeds up the project:
- Which ERP do you use, and which version?
- Which trading partner asks you for EDI, and for which documents (order, despatch advice, invoice)?
- Do you have your trading partner's implementation guide (message version, mandatory fields)?
- Can your ERP produce the document as a file, or does it have a service interface?
- Who will process the documents into the ERP, and after which check?
Details of the solution that connects your ERP to your trading partners are on B2B/EDI Integration.