What is an EDI File?

What is an EDI File?

An EDI file is a data file structured using one of the several EDI standards. EDI standards are specific guidelines that govern the content and format of EDI files. EDI file contains structured data stored in a plain text format and is used for transferring business data between multiple organizations.

The primary reason for having these EDI standards is to ensure that businesses can communicate in a” universal language”.

EDI files can be saved by various standards. Here are the common EDI file formats,

  • cXML
  • xCBL
  • ebXML
  • CSV
  • ANSI X12
  • EDIFICE (Information Technology)
  • EDITRANS (Transportation)
  • ETIS (Telecommunications)

Different types of EDI File formats

  1. Flat file
  2. Variable file
  3. Fixed flat file

Flat File

A flat file is the most common EDI file format during the computer-to-computer exchange of business documents or data.

This type of EDI file potentially contains several sorts of records, such as headlines and retail lines. Headlines indicate what information is held within entire documents. Retail lines comprise commercial documents, such as lines of invoices or orders.

Variable File

Variable-Sized Flat File (VFF) is when the data are separated from each other by a particular character such as a semicolon, vertical line, or tabulation. CSV format is the best-known example

The fixed flat file

When each field has a predetermined number of characters, there is no need to separate the data by character. This is called a Fixed Flat File (or FFF). This is the case for one of the two possible formats of Systems, Applications, and Products (SAP) software: iDocs.

A fixed flat file must be accompanied by a complete description containing the position, length, type (digital or alphanumeric), and content of each data field.

The EDI File Structure

The EDI file must contain all the information that you expect to receive from your partner (if the map is inbound) or need to send to your partner (if the map is outbound).

An EDI file is a binary computer file that contains data arranged in units called data elements.  Data elements are separated by element terminators, and a group of data elements makes up a data segment.  Data segments are separated by segment terminators.


EDI File Data Segment


Some elements (known as composite elements) are made up of sub-elements (component elements).


EDI File - EDI Segment


Figure 1a:  An example of a data segment (SV1) having four elements.  The first element is a composite element with two sub-elements (or component elements) separated by a component element separator, which is “:” (a colon).


EDI Segments


Figure 1b:  A section of an EDI file with segments ISA, GS, ST, BEG, REF, ITD, DTM, N1, N2, N3, N4

A block of data segments with data that are interdependent to each other is called a group or a loop.  An example of a loop is the N1 loop, which may hold a company’s address information.




Figure 2:  An N1 Loop


EDI Loops


Figure 2a:  A section of an EDI file with three instances of the N1 loop.  The first N1 loop consists of segments N1,N2,N3,N4.  The second and third instances of the loop consist of segments N1, N3 and N4.

The section of data segments that convey a message is called a Transaction Set or Message.  The message itself is sectioned into tables (or areas): the header (or Area 1); the detail (or Area 2); and the summary (or Area 3).
Figure 3a:  An X12 Transaction Set structure 
 Figure 3b:  A UN/EDIFACT message structure
Transaction Set X12
Message Edifact
Transaction Sets (Messages) can be organized by grouping them by their topics or functions. A group of Transaction Sets is called a Functional Group. Functional Groups themselves constitute an interchange. An Interchange is an electronic equivalent of a letter envelope. It contains the destination and sender ID of the EDI message and the date/time stamp of when it was sent.
Figure 4a:  The ASC X12 file structure   
Figure 4b:  The UN/EDIFACT file structure
The Control Segments are the header and trailer segments that mark the start and end of their controlling structure. • The Header/Trailer control segments of the Interchange are the ISA/IEA in X12, and UNB/UNZ in UN/EDIFACT. • The Header/Trailer control segments of the Functional Group are the GS/GE in X12, and UNG/UNE in UN/EDIFACT. • The Header/Trailer control segments of the Transaction Set are the ST/SE in X12, and UNH/UNT in UN/EDIFACT.
Figure 5a:  An example of an ASC X12 EDI file 
  Figure 5b:  An example of an UN/EDIFACT EDI file
X12 example
Edifact Example

Because EDI files must be processed by computers rather than humans, a standard format must be used so that the computer will be able to read and understand the EDI files. Here is the list of 10 common EDI communication standards

10 Common EDI Communication Standards

  1. ANSI ASC X12
  6. VICS
  7. VDA
  8. HIPPA
  9. RosettaNet
  10. SWIFT

Benefits of EDI File

  1. EDI can speed up business cycles
  2. EDI speeds up the transactions in just few minutes or seconds instead of days or weeks spent on sending manual postal mail or back-and-forth email communications
  3. Automates paper-based tasks. Frees up your staff time for higher-value tasks and provides them the tools to be more productive
  4. EDI can quickly process business documents accurately, which will help reduce manual re-entry of orders stock outs and cancellations.
  5. EDI ensures that all data sent on time and is tracked in real time. Automates application data exchange across supply chain.
  6. Shortening order processing and delivery helps organizations reduce inventory
  7. EDI reduces the transaction costs of paper, printing, reproduction, storage, filing, postage and document retrieval, saving businesses 1000’s of dollars.
  8. Improve supplier relationships. Help do business with multiple trading partners.
  9. Position yourself for success by automating your processes and improve business efficiency
  10. EDI ensures order accuracy and elevates strategic decisions

Ready to find out more about Commport EDI Solutions?

Contact us today for a free quote!

Need Help? Download: EDI Buyers Guide

Unlock the full potential of your supply chain with our comprehensive EDI Buyer's Guide — your first step towards seamless, efficient, and error-free transactions

Frequently Asked Questions

An EDI file differs from other digital file formats in that it adheres to specific EDI standards, defining the structure and content of the data. This standardization ensures uniformity and compatibility in the exchange of business information.

While EDI files follow standardized formats, they can be customized to some extent to meet specific business requirements. However, customization should align with agreed-upon standards to ensure interoperability with trading partners.

Using EDI files benefits businesses by automating data exchange, reducing manual errors, accelerating business processes, and improving overall efficiency. It enhances communication

An EDI file can include various business documents such as purchase orders, invoices, shipping notices, and more. The specific documents depend on the business transactions and agreements between trading partners.

EDI files are transmitted between trading partners using secure communication methods such as Value Added Networks (VANs), direct connections, or through the internet using secure protocols like AS2 or FTP. The chosen method depends on the preferences and agreements between the trading partners.

Sign up for our Newsletter

Table of Contents

Read More
What is PIM? - Commport Communications

What is PIM?

Introduction to PIM Today small, medium, and large enterprises are...

Read More