Edifact Vs Ansi x12
Edifact Vs Ansi x12
EDIFACT
presented by EIDX
1
CONTENTS
! Definitions
! Data Mapping
! Organizations
! X12/EDIFACT Differences
! Basic Components
(Messages, Segments, Composites, Data Elements)
! Codes and Qualifiers
2
Definitions
Electronic Data Interchange
The Cornerstone of Electronic Commerce
EDI is the Computer to Computer
Exchange of Routine Business Documents
in a Standard Format.
Ship Notices Payments
Bills of Lading Purchase Orders
Invoices
3
Definitions
DATA MAPPING
4
Definitions
LOGICAL MAPPING
PHYSICAL MAPPING
6
Definitions
DATA MAPPING
For INBOUND documents:
Moving Data
FROM Standard Segments & Elements
TO Internal Proprietary Records & Data Fields
STANDARDS ORGANIZATIONS
INDUSTRY ORGANIZATIONS
EIDX (Electronics Industry Data Exchange Association)
Industry guidelines and recommendations
on the use of the standards
EDIFACT BASICS
! Messages
! Segments & Segment Groups
! Data Elements
! Composites
! Control Characters
10
UN/EDIFACT EDIFACT Basics
Building Blocks
11
EDIFACT EDIFACT Basics
Data Directories
X12 EDIFACT
ISA UNB
GS UNG
ST UNH
SE UNT
GE UNE
IEA UNZ
14
Differences and Similarities
X12/EDIFACT DIFFERENCE
Segments
15
Differences and Similarities
X12/EDIFACT DIFFERENCE
Number of Components
! X12 SEGMENT
BEG = Function + Type + Identification + Date + Time
BIA = Function + Type + Identification + Date + Time
EDIFACT SEGMENT
BGM segment =
(Identification + Function + Type + Response)
DTM segment (Date/Time)
17
Differences and Similarities
SAMPLE
BEGINNING SEGMENTS
X12 Segment Txn Description
BIG 810 Invoice Header Data
EDIFACT Segment
BGM All Beginning of all Messages
18
Differences and Similarities
X12/EDIFACT DIFFERENCE
LONG VS SHORT SEGMENTS
X12
(A SINGLE SEGMENT - BCH)
l BCH = Function + Type + ID + Ref + Ref + Date +
Ref + Ref + Ref + Date + Date
EDIFACT SEGMENT
(REUSABLE SEGMENTS)
l BGM + DTM + DTM + DTM + RFF + RFF + RFF + RFF
19
Differences and Similarities
CONTROL CHARACTERS
! SEGMENT TERMINATORS => Default ‘
! RELEASE CHARACTER ?
‘CARGO:AIR’ Send as ‘CARGO?:AIR’
‘WHAT?’ Send as ‘WHAT??’
20
Differences and Similarities
X12/EDIFACT
Many Same/Similar Segment Names
21
Paper to EDI
PAPER & MESSAGE
TERM COMPARISON
B U S IN E S S EQUAL M ESSA G E
DOCUM ENTS
IN V O IC E S IN V O IC
PURCH ASE O RDER ORDERS
GROUPS OF DATA EQUAL SEG M EN TS
P O L IN E IT E M L IN S E G M E N T S
SC H ED U LES D A TES DTM SEG M ENT
SC H ED U LE Q TY Q TY SEG M ENT
IN D IV ID U A L D A T A EQUAL DATA ELEM ENTS
PO NUM BER 1 0 0 4 D O C U M E N T (Q u : 1 0 5 )
PO DATE 2 3 8 0 D A T E ( Q u a l: 4 )
PART NUM BER 7 1 4 0 L IN E IT E M
IT E M Q T Y 6 0 6 0 Q T Y ( Q u a l: 2 1 S c h d )
SCH EDULE Q TY 6 0 6 0 Q T Y ( Q u a l: 1 3 3 S c h d )
SCH EUDLE DATE 2 3 8 0 D A T E ( Q u a l: 2 S c h d )
22
Transactions & Messages
BUSINESS DOCUMENTS to
TRANSACTIONS / MESSAGES
X12 Txn EDIFACT Msg Business Paper Document
810 INVOIC Invoice
830 DELFOR Forecast
832 PRICAT Price Catalog
850 ORDERS Purchase Order; Blanket Order
855/865 ORDRSP PO Acknowledgment
860 ORDCHG PO Change
856 DESADV Shipment Notice
852 Product Activity Data
CUSDEC Customs Declaration
813 Electronic Filing of Tax Return
BAPLIE Bayplan/Stowage Plan Occupied
and Empty Locations
23
Message
ORDERS (Purchase Orders)
(Header: Header, Segment Groups 1-5)
Pos. Seg. Name Req. Max. Use Group Notes
No. ID Des Repeast
Must Use 005 UNH Message Header M 1
Must Use 010 BGM Beginning of Message M 1
Must Use 015 DTM Date/Time/Period M 35
035 FTX Free Text C 5
Segment Group 1: RFF-DTM C 10
Must Use 040 RFF Reference M 1
045 DTM Date/Time/Period C 5
24
Message
25
Message
ORDERS (Purchase Orders)
(Detail Section: Segment Group 25 - 36)
Pos. Seg. Name Req. Max. Use Group Notes
No. ID Des Repeast
Segment Group 25: LIN-PIA-IMD-MEA-QTY- C 200000
PCD-ALI-DTM-MOA-GIN-GIR-QVA-DOC-
PAI-FTX-SG26-SG27-SG28-SG29-SG32-
SG33-SG34-SG38-SG44-SG46-SG47-SG48-
SG50
Must Use 005 LIN Line Item M 1
010 PIA Additional Product Id C 25
015 IMD Item Description C 10
025 QTY Quantity C 10
Segment Group 27: PRI-CUX-API-RNG-DTM C 25
Must Use 100 PRI Price Details M 1
26
Message
ORDERS (Purchase Orders)
(Detail: Segment Groups 38 - 49)
Pos. Seg. Name Req. Max. Use Group Notes
No. ID Des Repeast
Segment Group 38: ALC-ALI-DTM-SG39- C 15
SG40-SG41-SG42-SG43
Must Use 255 ALC Allowance or Charge M 1
Segment Group 44: TDT-SG45 C 10
Must Use 320 TDT Details of Transport M 1
Segment Group 45: LOC-DTM C 10
Must Use 325 LOC Place/Location Identification M 1
330 DTM Date/Time/Period C 5
27
Message
ORDERS (Purchase Orders)
(Section Control and Summary Section)
28
Message
UN/EDIFACT MESSAGE
DEFINES...
SG = Segment Group
29
Transactions & Messages
EDIFACT MESSAGE
COMPOSITION
HEADER SECTION (One Occurrence)
! Codes, Addresses, Contracts, References
30
Transactions & Messages
DESIGN RULES
MESSAGE SECTIONS
HEADER SECTION
! SEGMENTS relate to ENTIRE MESSAGE
DETAIL SECTION
! SEGMENTS relate to DETAILS where it is
written
! Data OVERRIDES similar data in the HEADER
Section
SUMMARY SECTION
! SEGMENTS with TOTALS or CONTROL data
31
EDIFACT
‘UNH’ Message Header Segment
To Head, Identify, and Specify a Message
UNH+1234+ORDERS:1:921:UN:EIVER1’
Combines functions of ASC X12 GS and ST Segments
UNH+ UNH Segment
1234+ Msg Reference No.
ORDERS: Msg Type Identifier
1: Msg Type Version No.
921: Msg Type Release No.
UN: Controling Agent
EIVER1 Association Assigned Code
32
EDIFACT SAMPLE
ORDERS
UNH+0001+ORDERS:2:921:UN:EIVER1’
BGM+105+P54356+9’
DTM+4+960626:101’
RFF+CT:CN2345’
NAD+BT+AC323:92’
NAD+ST+AC9876:92’
LIN+01++1820-0232:BP’
PIA+1+C:EC+GF9876:VP’
QTY+21:200:PCE’
PRI+1:2.99:CT::1’
SCC+1+DD’
QTY+133:200’
DTM+2:960715:101’
CNS+S’
CTN+2:1’
CNT+17+200
UNT+17+0001’
33
Segments
SEGMENTS
! RELATED DATA ELEMENTS DEFINED
TO A RECORD
37
Segments Group
SEGMENT GROUPS
A Set of Segments which are Needed
to Satisfy the Defined Purpose.
Segment Group 11 in CUSDEC:
A Group of Segments Identifying
Various Monetary Amounts,
Currencies, and Rates of Exchange
that Pertain to the Whole Commercial
Document
38
Design Rules
DESIGN RULES
MAXIMUM USE OF SEGMENTS
40
Data Elements
EDIFACT
DATA ELEMENTS
Date Element Tag Requirements
(DE Number) Representation
Designator
41
Data Elements
DIRECTORY NOTATION
Requirements Designators
M = Mandatory
C = Conditional (Optional is a Condition)
Data Types
a = Alpha Character
n = Numeric (Integers & Real)
an = Alphanumeric Characters
id = Identifier (Code)
Data Lengths
a3 = Fixed Length, alphabetic 3 characters
n6 = Fixed Length, numeric, 6 digits
an4 = Fixed Length, alphanumeric, 4 characters
a..3 = Variable Length, alphabetic (1 to 3 Characters)
n..6 = Variable Length, numeric (1 to 6 digits)
an..4 = Variable Length, alphanumeric (1 to 4 characters)
42
DATA ELEMENT STATUS
MANDATORY
! MUST be Used in a Segment
CONDITIONAL
! Usage Depends on Certain Conditions
! Relevant Conditions for Required Conditions of
the D/E may be part of the Segment Definition
NO CONDITION SPECIFIED
! Use per Trading Partner Agreement, or
Originators Discretion
43
Design Rules
DESIGN RULES
DATA ELEMENT PRINCIPLES
X12 EDIFACT
SPECIFIC Data Element GENERIC Data Element
EXAMPLES: EXAMPLES
Qualifier :Date:Format
‘ PO Date’ DE323* 4:Date:102 = PO Date #
‘Invoice Date’ DE245* 3:Date:102 = Invoice Date #
45
Codes and Qualifiers
CODES
CODES
AND MORE CODES
CODE QUALIFIERS
CODE QUALIFIERS
AND MORE CODE QUALIFIERS
CODE ELEMENTS
47
DATA ELEMENT Design Rules
GENERIC DATA + QUALIFIERS
(Order of Qualifier)
48
DATA ELEMENT Design Rules
GENERIC DATA + QUALIFIERS
(Order of Qualifier)
DATE/TIME/ DATE/TIME/PERIOD DATE/TIME/
PERIOD PERIOD FORMAT
QUALIFIER QUALIFIER
49
Design Rules
DESIGN RULES
COMPOSITES (Cnnn)
C507 DATE/TIME/PERIOD M
2005 DATE/TIME/PERIOD QUALIFIER M AN 1/3
2380 DATE/TIME/PERIOD C AN 1/35
2379 DATE/TIME/PERIOD
FORMAT QUALIFIER C AN 1/3
52