Electronic data interchange (EDI) streamlines the business document process electronically, without the need to print, sign, fax, or email paperwork.
Instead documents flow through the system from the buyer to the supplier and back again; for example, a purchase order from the buyer goes to the supplier, and then an invoice is sent back to the buyer.
In this blog post, we’ll discuss this process flow and look at some of the key components, benefits, and limitations of EDI, as well as how it integrates with SAP S/4HANA.
Let’s start with an overview of how EDI works. Some of the key characteristics of EDI include the following:
Typically, the most common business documents exchanged through EDI are purchase orders, invoices, and advance shipping notifications (ASNs), but there are many other business documents that can also be exchanged, such as paperwork relating to logistics.
As EDI documents are processed by computers, there must be a standardized format so that the computer can understand the language and read the documents. This is standardized across the EDI system, rather than being set by each company, and it describes each piece of information and what the format is. When businesses exchange documents through EDI, they must first agree on which standard and version they will use—for example, ANSI 5010 or EDIFACT version D12. To allow the processing of the business documents, usually either in-house software or a service provider allows for translation of the EDI documents. The exchange of these EDI documents occurs via two different companies, which are called business partners or trading partners.
Before we go further into detail about EDI, let’s review the traditional way of processing a purchase order and invoice between a customer and supplier, as shown in the figure below. Here, the purchase order is created manually via a phone call and clarifying if any document is sent. No standard purchase order template is maintained, apart from the customer and seller's own systems and data formats to process their requirements, so manual intervention is required in this time-consuming process.
In contrast to this figure, the one below shows the basic EDI process flow, where the buyer sends the purchase order to the supplier, indicating types, quantities, and agreed-upon prices for products or services required. In return, an invoice is sent from the supplier to a buyer for a sales transaction, indicating the products, quantities, and agreed-upon prices for products or services.
The next figure shows where the EDI transmission is involved during the purchase order and invoice process between the buyer and supplier. A buyer creates a purchase order in their format and sends it across to the EDI translator to convert into EDI purchase order format 850, which is then sent across the EDI network to the seller, where the EDI translator converts the purchase order into their own format that their internal system can accept. After processing the purchase order, the seller sends the invoice in their format, which is converted into EDI format and sent across to the buyer; the EDI translator on the receiver side then converts invoice 810 into an acceptable internal format in the buyer's system.
EDI Basic Structure: An EDI data structure resembles layers of envelopes. The envelopes separate different types of data and carry the sender and receiver address information. A receiver uses these envelopes to determine if all of the data has been received.
There are three steps to send EDI documents—preparing the document, translating the document into EDI format, and transmitting the EDI document to respective partners:
The next figure shows the buyer using a EDI translator to convert his internal format document to standard EDI. By the assistance of EDI transmission, the purchase order in EDI format is sent to the seller, where the seller uses an EDI translator to convert the document into his required format using an EDI translator so that the seller can process the received purchase order in his own format.
The key components of EDI include the following:
Overall, the key components of EDI work together to enable the electronic exchange of business documents and information, providing standardization, secure communication, translation and mapping, and business process automation.
EDI offers several benefits for organizations, including the following:
However, EDI also has some limitations:
Organizations need to weigh the benefits against the potential limitations and risks before implementing an EDI system.
EDI is a multitude of standards for electronic communication between organizations that enable them to not only integrate but also automate their business processes through the use of various EDI transactions, such as purchase orders, purchase order acknowledgments, purchase order changes, ASNs, invoices (810), and so on. These EDI transactions are integrated with SAP S/4HANA to automate business processes in an organization.
Let us consider a scenario where a business partner would like to send an EDI message to SAP S/4HANA for a business process. Per SAP, the best practice is integrating SAP S/4HANA via SAP Integration Suite, which is a service in SAP BTP.
A business partner is a non-SAP system that receives or sends an EDI message. To set up a connection with a business partner is to engage with the partner to understand three main things. The first is how to connect to their organization. This is the connectivity aspect that leverages SFTP, FTP, FTPS, VAN, or a direct encrypted connection using AS2.
Second, you need to understand the EDI standard that your business partners require or would like to exchange. Finally, you need to understand and agree to the EDI message types, also known as EDI transactions, with your partner. The key is understanding which partner dictates what EDI transactions, protocols, and standards to use. EDI allows businesses to exchange business documents such as purchase orders, invoices, ASNs, and other transactional information electronically in a standardized format.
The following figure shows how a non-SAP business partner sends an EDI message to a business running SAP via standard communication channels to SAP integration tools, where the EDI messages are transformed to the IDoc format, SAP's standard document type, to be processed internally in the SAP system.
API Options for EDIFACT and ANSI X.12: The option of integrating via APIs directly in SAP S/4HANA isn’t as effective and does not perform as well when we look at it in terms of transactional volume.
Editor’s note: This post has been adapted from a section of the book Architecting EDI for SAP S/4HANA by Marek Piaseczny and Agasthuri Doss. Marek has more than 25 years of experience in IT, with more than 20 years working in various roles within the SAP and non-SAP integration areas. He has played leading roles in the integration stream of dozens of global-scale SAP projects, including implementations, migrations, and rollouts. Agasthuri is a seasoned IT professional with more than 20 years of progressive experience in the areas of architecture, solutioning, development, planning, digitization, and support in SAP and cloud-based implementation. He worked with several multinational corporations in various countries as an expert in more than 17 ERP implementations.