Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

Friday, 5 June 2026

Learning EDI - Day 2 : Difference Between EDI, XML, JSON, and Flat Files

1. EDI (Electronic Data Interchange)

EDI follows industry standards.

Example (X12 850 Purchase Order)

ISA*00*          *00*          *ZZ*BUYER*
GS*PO*BUYER*SUPPLIER*
ST*850*0001
BEG*00*NE*PO12345
SE*4*0001
GE*1*1
IEA*1*000000001

Characteristics

  • Highly standardized
  • Used between trading partners
  • Requires EDI translator/mapping
  • Common in retail, healthcare, logistics, manufacturing

2. XML (Extensible Markup Language)

XML uses opening and closing tags.

Example

<PurchaseOrder>
    <OrderNumber>PO12345</OrderNumber>
    <Customer>ABC Hospital</Customer>
</PurchaseOrder>

Characteristics

  • Self-describing
  • Easy to validate using XSD
  • Widely used in SAP, Oracle, enterprise applications

3. JSON (JavaScript Object Notation)

JSON uses key-value pairs.

Example

{
  "OrderNumber": "PO12345",
  "Customer": "ABC Hospital"
}

Characteristics

  • Lightweight
  • Easy to read
  • Popular for REST APIs
  • Common in cloud integrations

4. Flat Files

Plain text files with delimiters or fixed positions.

CSV Example

PO12345,ABC Hospital,100

Pipe Delimited Example

PO12345|ABC Hospital|100

Fixed Length Example

PO12345   ABC Hospital       100

Characteristics

  • Very simple
  • Easy to create
  • Common in legacy systems
  • Often used in SAP PI/PO and batch integrations

Example

Imagine a customer sends a Purchase Order.

EDI Version

BEG*00*NE*PO12345

XML Version

<OrderNumber>PO12345</OrderNumber>

JSON Version

{
  "OrderNumber":"PO12345"
}

Flat File Version

PO12345

Same business information, different formats.


When to Use What?

Use EDI when:

  • Working with retailers, distributors, hospitals, logistics providers.
  • Exchanging official business documents.
  • Trading partners require standards like X12 or EDIFACT.

Use XML when:

  • Integrating enterprise systems.
  • Need strong validation and hierarchical data.

Use JSON when:

  • Building APIs.
  • Cloud integrations.
  • Modern web applications.

Use Flat Files when:

  • Legacy systems are involved.
  • Batch processing is sufficient.
  • Simplicity is preferred.

 

Monday, 22 September 2025

Different EDI formats (standards) for exchanging data

EDI (Electronic Data Interchange) has evolved over decades, and different industries, regions, and trading partners use different EDI formats (standards) for structuring and exchanging data. Some of the formats are 


1. ANSI ASC X12 (North America)

  • Developed by the Accredited Standards Committee (ASC) X12.

  • Widely used in the United States and North America.

  • Covers multiple industries: retail, healthcare, logistics, government, finance.

  • Example: 850 (Purchase Order), 810 (Invoice), 856 (Advance Ship Notice).


2. UN/EDIFACT (International)

  • Stands for United Nations/Electronic Data Interchange for Administration, Commerce, and Transport.

  • Widely used in Europe and globally.

  • More internationally accepted than X12.

  • Example: ORDERS (Purchase Order), INVOIC (Invoice), DESADV (Advance Shipping Notice).


3. TRADACOMS (UK Retail Industry)

  • Predecessor to EDIFACT, mainly used in the UK retail sector.

  • Developed by the GS1 UK standards body.

  • Now mostly replaced by EDIFACT.

  • Example: ORDHDR (Order Header), INVOIC (Invoice).


4. ODETTE (European Automotive)

  • Organization for Data Exchange by Tele-Transmission in Europe.

  • Mainly used in the European automotive industry.

  • Helps standardize supply chain transactions between OEMs and suppliers.

  • Example: Delivery Schedules, Shipping Instructions.


5. VDA (German Automotive Industry)

  • Verband der Automobilindustrie (German Association of the Automotive Industry).

  • Specific to German automotive manufacturers like VW, BMW, Daimler.

  • Still widely used in Germany, but transitioning to EDIFACT/ODETTE.


6. HL7 (Healthcare)

  • Health Level Seven standard for healthcare data exchange.

  • Used to transmit clinical and administrative data between healthcare providers.

  • Example: Patient admission, lab results, claims processing.


7. HIPAA EDI (US Healthcare – subset of X12)

  • HIPAA mandates specific EDI transactions for healthcare providers, insurers, and payers in the US.

  • Example:

    • 837 (Healthcare Claim)

    • 835 (Payment/Remittance Advice)

    • 270/271 (Eligibility Inquiry/Response)


8. RosettaNet

  • XML-based EDI standard for high-tech and electronics industries.

  • Used for supply chain automation in semiconductors, IT, and telecommunications.


9. XML / JSON-based EDI (Modern formats)

  • Newer companies are adopting API-driven data exchange with XML or JSON payloads.

  • Example: Amazon Vendor Central uses XML EDI over AS2/AS4.

  • JSON is often used in API-EDI hybrid integrations.

Sunday, 14 September 2025

EDI vs. API: Key Differences in B2B Integration

Both EDI (Electronic Data Interchange) and API (Application Programming Interface) enable data exchange between business partners — but they do it in different ways.


What is EDI?

  • A standardized format for exchanging business documents (PO, Invoice, ASN, etc.).

  • Batch-based: documents are sent in structured files (X12, EDIFACT, VDA).

  • Works well for large-scale, regulated industries (retail, healthcare, automotive).

Example: A retailer sends an EDI 850 Purchase Order to a supplier.


What is API?

  • A real-time communication method between applications.

  • Data is exchanged instantly using web technologies (REST, JSON, XML).

  • Works best for instant updates (inventory checks, shipment tracking).

Example: An eCommerce site calls a supplier’s API to get livestock availability.

Tuesday, 25 February 2025

Different File Formats in an EDI System

An EDI system processes multiple file formats to facilitate seamless B2B (Business-to-Business) transactions. These formats are used for data transformation, integration, and communication between trading partners, ERPs, and enterprise applications.


Standardized EDI Formats (Structured Formats)

These formats are globally recognized and follow specific industry standards.

File Format

Description

X12 (EDI ANSI X12)

Fixed-format EDI standard used mainly in North America.

EDIFACT

International EDI standard for structured data exchange.

TRADACOMS

UK-based EDI format, mostly replaced by EDIFACT.

VDA

German automotive industry format.

OFTP2 (VDA-Based)

Used for file exchange in the automotive sector.

RosettaNet (PIP XML)

XML-based EDI for high-tech & semiconductor industries.

PEPPOL BIS

XML-based European public procurement format.

Learning EDI - Day 5: ISA, GS, ST, SE, GE, and IEA Segments in an X12 File

ISA, GS, ST, SE, GE, and IEA segments form the envelope structure of an X12 EDI file. They tell us: Who sent the file Who r...