home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / bit / listserv / edil / 327 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  7.1 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!darwin.sura.net!paladin.american.edu!auvm!BCSC02.BITNET!WLAIDLEY
  2. From: WLAIDLEY@BCSC02.BITNET (Bill Laidley)
  3. Newsgroups: bit.listserv.edi-l
  4. Subject: RE: What is a Hierarchical transaction
  5. Message-ID: <EDI-L%92122913140330@UCCVMA.UCOP.EDU>
  6. Date: 29 Dec 92 20:14:03 GMT
  7. Sender: Electronic Data Interchange Issues <EDI-L@UCCVMA.BITNET>
  8. Lines: 153
  9. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  10.  
  11. Hierarchical EDI transactions
  12.  
  13. I'll use the X12 Shipment and Billing Notice (857) to explain what
  14. a hierarchical EDI transaction is. Caveats - my copy of the X12
  15. release 3.2 standard is at work, and I'm at home so there are apt to
  16. be errors and omissions...
  17.  
  18. The Shipment and Billing notice has been designed for use where the
  19. shipment notice information can also be used (with the addition of
  20. some more information) for billing purposes. It is not intended to
  21. be used for just a shipment notice or just an invoice. It is used
  22. where the actual billed cost of the goods shipped is not known in
  23. advance (additional freight charges, special handling...).
  24.  
  25. This transaction supports two hierarchies - single vendor or multiple
  26. vendor. I'll use the single vendor hierarchy in this example because it
  27. is the one I've been working on. What follows is a 'picture' of the
  28. hierarchy in ASCII characters.
  29.  
  30. Shipment and Billing Notice (857)
  31.  :
  32.  +--Shipment information
  33.  :
  34.  +--Financial information
  35.      :
  36.      +--Purchase order
  37.          :
  38.          +--Item
  39.              :
  40.              +--Pallet
  41.              :
  42.              +--Pack or sub-pack
  43.  
  44. An example...
  45.  
  46. Vendor X has shipped two truckloads of goods to us. The first truck
  47. is carrying 3 products (10 pallets or 400 cases of each). The second
  48. truck is carrying 1 product only (20 pallets, 800 cases). Product A
  49. costs $2.00, B costs $5.00, C costs $10.00, and D costs $1.00.
  50. There are no special handling charges, and the freight cost has been
  51. calculated by the shipper to be $500.00. Products A, B, and C are on
  52. purchase order. Product D is from a second P/O, but is a partial
  53. shipment - 1000 cases were ordered.
  54.  
  55.  
  56. Shipment and Billing Notice (857)
  57.  :
  58.  +--Shipment information - information about truck #1, carrier, arrival
  59.  :                         date, container or trailer number...
  60.  :
  61.  +--Financial information - invoice information, amount, terms, discounts
  62.  :   :                      due date...
  63.  :   +--Purchase order - identify original P/O
  64.  :       :
  65.  :       +--Item - product A, costs $2.00 each, quantity 400 cases
  66.  :       :   :
  67.  :       :   +--Pallet # 1 - size information, bar code
  68.  :       :   +--Pallet # 2 - size information, bar code
  69.  :       :   +--Pallet # 3 - size information, bar code
  70.  :       :   +--Pallet # 4 - size information, bar code
  71.  :       :   +--Pallet # 5 - size information, bar code
  72.  :       :   +--Pallet # 6 - size information, bar code
  73.  :       :   +--Pallet # 7 - size information, bar code
  74.  :       :   +--Pallet # 8 - size information, bar code
  75.  :       :   +--Pallet # 9 - size information, bar code
  76.  :       :   +--Pallet # 10 - size information, bar code
  77.  :       :   :
  78.  :       :   +--Pack or sub-pack - no case information included.
  79.  :       :
  80.  :       +--Item - product B, costs $5.00 each, quantity 400 cases
  81.  :       :   :
  82.  :       :   +--Pallet # 1 - size information, bar code
  83.  :       :   +--Pallet # 2 - size information, bar code
  84.  :       :   +--Pallet # 3 - size information, bar code
  85.  :       :   +--Pallet # 4 - size information, bar code
  86.  :       :   +--Pallet # 5 - size information, bar code
  87.  :       :   +--Pallet # 6 - size information, bar code
  88.  :       :   +--Pallet # 7 - size information, bar code
  89.  :       :   +--Pallet # 8 - size information, bar code
  90.  :       :   +--Pallet # 9 - size information, bar code
  91.  :       :   +--Pallet # 10 - size information, bar code
  92.  :       :   :
  93.  :       :   +--Pack or sub-pack - no case information included.
  94.  :       :
  95.  :       +--Item - product C, costs $10.00 each, quantity 400 cases
  96.  :           :
  97.  :           +--Pallet # 1 - size information, bar code
  98.  :           +--Pallet # 2 - size information, bar code
  99.  :           +--Pallet # 3 - size information, bar code
  100.  :           +--Pallet # 4 - size information, bar code
  101.  :           +--Pallet # 5 - size information, bar code
  102.  :           +--Pallet # 6 - size information, bar code
  103.  :           +--Pallet # 7 - size information, bar code
  104.  :           +--Pallet # 8 - size information, bar code
  105.  :           +--Pallet # 9 - size information, bar code
  106.  :           +--Pallet # 10 - size information, bar code
  107.  :           :
  108.  :           +--Pack or sub-pack - no case information included.
  109.  :
  110.  +--Shipment information - information about truck #2, carrier, arrival
  111.  :                         date, container or trailer number...
  112.  :
  113.  +--Financial information - invoice information, amount, terms, discounts
  114.      :                      due date...
  115.      :
  116.      +--Purchase order - identify original P/O...
  117.          :
  118.          +--Item - product D, costs $1.00 each, quantity 800 cases,
  119.              :     200 cases back ordered for 60 days
  120.              :
  121.              +--Pallet # 1 - size information, bar code
  122.              +--Pallet # 2 - size information, bar code
  123.              +--Pallet # 3 - size information, bar code
  124.              +--Pallet # 4 - size information, bar code
  125.              +--Pallet # 5 - size information, bar code
  126.              +--Pallet # 6 - size information, bar code
  127.              +--Pallet # 7 - size information, bar code
  128.              +--Pallet # 8 - size information, bar code
  129.              +--Pallet # 9 - size information, bar code
  130.              +--Pallet # 10 - size information, bar code
  131.              +--Pallet # 11 - size information, bar code
  132.              +--Pallet # 12 - size information, bar code
  133.              +--Pallet # 13 - size information, bar code
  134.              +--Pallet # 14 - size information, bar code
  135.              +--Pallet # 15 - size information, bar code
  136.              +--Pallet # 16 - size information, bar code
  137.              +--Pallet # 17 - size information, bar code
  138.              +--Pallet # 18 - size information, bar code
  139.              +--Pallet # 19 - size information, bar code
  140.              +--Pallet # 20 - size information, bar code
  141.              :
  142.              +--Pack or sub-pack - no case information included.
  143.  
  144. The key feature to note is that you must 'descend' the hierarchy to get
  145. the lower levels of detail. I.E. if you want to know about a specific
  146. pallet in this hierarchy you must know the item, the P/O, and the
  147. shipment. There are no short cuts that I'm aware of. On the positive
  148. side, the transaction has been designed to carry a wealth of useful
  149. information (bar code, special purpose reference numbers...).
  150.  
  151. The 'HL' segment is the glue that ties all of the layers together.
  152. Each HL has a unique (within the transaction) identifier number,
  153. identifies the parent HL segment (unless it is the root) and may
  154. also identify a child HL (but only one, and there may be more than
  155. one child) segment.
  156.  
  157. I suspect that each translator treats HL's slightly differently,
  158. and I haven't implemented an 857 yet, so I'm not sure how the
  159. translator will behave.
  160.  
  161. Regards, Bill Laidley
  162. EDI Expert Team
  163. BC Systems Corp. Vancouver (604) 660-9705
  164.