You are on page 1of 21

4

• What is EDI with BizTalk?


• EDIFACT message structure
• Parties, Profiles & Agreements
• EDI Receive
• EDI Send
• EDI Send Batch
• Handing CONTRL messages

• What is EDI with Azure Service Bus?


TPM BRE 3
ESB Toolkit EDI/B2B

RFID Process Engine BAM

2
LOB Adapters Accelerators
(SWIFT/HL7)

1
Messaging
Pub/Sub, Transformations, Adapters

6
• EDI
• ANSI X12 or ASC X12
• Created 1979
• Numbered messages, e.g. 850 (Purchase Order), 810
(Invoice)
• Using “version” and “release”, e.g. Version 4 Release 1
(typed as: 004010)

SAMPLE MESSAGE:
ISA*00* *00* *08*9251750000 *08*1234567890 *030627*1304*U*00401*000001403*0*P*>~
GS*PO*8019721193*1234567890*20030627*1304*1403*X*004010~
ST*850*01403001~
BEG*00*SA*548177**20030627~
REF*AN*547794~
PER*BD*JOHN JONES*TE*5552225555~
…….
SE*30*01403001~
GE*1*1403~
IEA*1*000001403~
• EDI
• EDIFACT
• Approved by United Nations 1986, based 1978
• ISO standard ISO-9735
• Named messages (6 letters), e.g. ORDERS, INVOIC
• Two releases yearly: D[YY].A and D[YY].B
• E.g. D96.A (NB! S-releases exist)

SAMPLE MESSAGE:
UNA:+.? '
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'
UNH+SSDD1+ORDERS:D:03B:UN:EAN008'
BGM+220+BKOD99+9'
DTM+137:20051107:102'
NAD+BY+5412345000176::9'
NAD+SU+4012345000094::9'
CNT+2:4'
UNT+22+SSDD1'
UNZ+1+6002'
UNA:+.? '
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'
UNH+SSDD1+ORDERS:D:03B:UN:EAN008'
BGM+220+BKOD99+9'
DTM+137:20051107:102'
NAD+BY+5412345000176::9'
NAD+SU+4012345000094::9'
CNT+2:4'
UNT+22+SSDD1'
UNZ+1+6002' SegmentTerminator =‘
ElementSeparator =+
ComponentDataElementSeparator =:

11
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'

SegmentTerminator =‘
ElementSeparator =+
ComponentDataElementSeparator =:

12
UNA Service String Advice
UNB Interchange Control Header
UNG Functional Group Header
UNH Message Header
UNT Message Trailer
UNE Functional Group Trailer
UNZ Interchange Control Trailer

UNA:
UNZ:
UNG:
UNB:
UNT:
UNH:
The
This segment
Specifies
is thethe
function
Identifies
Message an is used
special
of this to indicate
characters
segment
interchange,
Trailer
Message segment
Header -the
of the
segment
an actend
that
is related
to
EDIFACTare
as
of of
to
an an used
be interchange
a header
parties and
document.
EDIFACT to
identifyingand
interpret
interchange
Itdocument.
includesandto
the
the check
UNHthe
remainder
specifying
identifier.
Theelements interchange
a of
functional
segment
document reference
theelements
message.
group.
reference and
provide
and
number
informationof documents
about theinin
segments thedocument.
message
the interchange.
type, and
. the agency responsible for maintaining the publication of the
message type. This segment indicates the start of a document in anDate
Eg: & time and the type of
interchange
document
UNA:+.? Number
that of Segments
messages
' follows. in the message
Sender Receiver of preparation Interchange id
Eg: Interchange id
Reference Number
UNT+97+109'Message type and version
UNZ+3+37'
UNB+UNOB:1+5790000000555:14+5790000016662:14+111129:1130+37++++2++0'
Eg:
UNH+109+INVOIC:D:93A:UN:EAN007'

13
Party Party
Internal/External, Certificates & General properties

Profiles Profiles
Identifiers & Protocol settings

Agreement
Acknowledgements, Validation, Batching and more
BizTalk
UNH+100+ORDER:D:93A:UN:EAN007‘

UNH+100+ORDER:D:93A:UN:EAN007‘

UNH+100+ORDER:D:93A:UN:EAN007‘

Agreement?

Pipeline Pipeline
EDI XML
XML XML XML
XML

15
UNH+100+ORDER:D:93A:UN:EAN007‘
BizTalk

UNH+100+ORDER:D:93A:UN:EAN007‘

UNH+100+ORDER:D:93A:UN:EAN007‘

Agreement?

Pipeline
EDI XML
XML XML
XML

Pipeline
Pipeline
XML
EDI

16
BizTalk

UNH+100+INVOIC:D:93A:UN:EAN007‘
BGM+380:::DVA001V02+1018083+9‘
DTM+3:20111027:102‘
DTM+137:20111027:102‘
Agreement? RFF+ON:18046697‘ ….

Pipeline Pipeline
XML XML EDI EDI

17
BizTalk
Batch Orchestration

Filter: customer == Contoso


Release: Group = 3 UNH+100+INVOIC:D:93A:UN:EAN007‘

UNH+100+INVOIC:D:93A:UN:EAN007‘

Agreement?
UNH+100+INVOIC:D:93A:UN:EAN007‘

Pipeline Pipeline
XML XML EDI EDI

Filter:
ReceivingParty = Contoso &
ToBeBatched = false

18
19
Bridge
Bridge
customerType == “VIP”

LOB Target

BizTalk IIS
customerType == “Default”
SapBinding
Client
RelayBinding

20
Bridge

EDI

21
Bridge

EDI

22

You might also like