The structure of EDI documents is this:
Interchange envelope
…Group envelope
…Transaction set
…Transaction set
…(more)
…Group envelope
…Transaction set
…Transaction set
…(more)
Each interchange can contain 1 or more groups and each group can contain one or more transaction sets (each group holds a single type of transaction sets).
If your EDI document has just one transaction set and you split to the transaction set level, then the interchange, group and transaction documents will all be exactly the same. If the EDI doc had more than 1, then the resulting TN docs will differ.
For example, say your EDI doc has 2 purchase orders and an invoice and the TPA indicates to split to the transaction set level. The EDI doc and the X12 Envelope doc in TN would be:
Interchange envelope
…Group envelope (850)
…Transaction set (PO 1)
…Transaction set (PO 2)
…Group envelope (810)
…Transaction set (Inv 1)
There would be 2 X12 Group docs in TN, 1 for each group:
Interchange envelope
…Group envelope (850)
…Transaction set (PO 1)
…Transaction set (PO 2)
Interchange envelope
…Group envelope (810)
…Transaction set (Inv 1)
There would be 2 X12 850 docs in TN, and 1 X12 810 doc:
Interchange envelope
…Group envelope (850)
…Transaction set (PO 1)
Interchange envelope
…Group envelope (850)
…Transaction set (PO 2)
Interchange envelope
…Group envelope (810)
…Transaction set (Inv 1)
This is all explained in the EDI Module Concepts Guide in the “EDI Documents Inbound Processing” section.
When processing the bizdoc in your service, make sure you get the content from the bizdoc and pass it to wm.b2b.edi:convertToValues. See the EDI Module User’s Guide for example code.
#edi#webMethods#Integration-Server-and-ESB