|
[EDI-L Mailing List Archive Home]
[Message List]
[Reply To This Message]
RE: x12 loops - when they start and what segment they contain

The other pieces you might need to know are that the beginning segment of a
loop is always mandatory, i.e., if the loop appears it must appear. In
addition, the beginning segment of a loop may not appear later in the loop
or in any of the child loops that it contains. That pretty much covers
what X12.6 calls "unbounded" loops. There are also "bounded" loops
delimited by LS and LE segments.
Beyond these, you also have the (in)famous HL loops, which are special
cases of unbounded loops. HL loops, used in the 837, let you transmit a
hierarchical logical structure in a flat (or relational, depending on your
perspective) physical structure.
Mike
At 01:17 PM 7/17/03 -0700, Shan Harter wrote:
>You will have to define the X12 type tree of sorts to outline which segments
>can loop and then how many. In any case you will need a "master." perhaps
>reading an
>eds file (foresight or edifacs or your own proprietary).
>
>Then for actual data you will need to simply look for the ("check" in your
>code) for the next iteration.
>There is no advanced warning in the segments of how many loops that will
>occur, so you'll have to do a "count" of them when you
>encounter them.
>
>only GS tells how many ST's are in the loop, only ISA tells how many GS's
>are in the envelope. SE only tells you how many segments exist including
>document (ST-SE).
>
>Shan
>
>-----Original Message-----
>From: evhorig [mailto:
>Sent: Thursday, July 17, 2003 1:05 PM
>To:
>Subject: [EDI-L] x12 loops - when they start and what segment they contain
>
>
>
>
> If any programmers(or anyone else for that matter)have
>any ideas for recognizing when X12 'loops' start and
>what segments they contain, I'd appreciate the info.
>
> More specifically, I'm working with 837 EDI data.
>
> Thanks,
>
> Troy
>
>
>
>To unsubscribe from this group, send an email to:
>
>Message Identifiers: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>,
><OFF-TOPIC>
>Access the list online at: http://groups.yahoo.com/group/EDI-L
><http://groups.yahoo.com/group/EDI-L>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
><http://docs.yahoo.com/info/terms/>
>
>
>
>
>[Non-text portions of this message have been removed]
>
>
>
>To unsubscribe from this group, send an email to:
>
>Message Identifiers: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>,
><OFF-TOPIC>
>Access the list online at: http://groups.yahoo.com/group/EDI-L
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
---------------------------------------------------------------
Michael C. Rawlins, Rawlins EC Consulting
www.rawlinsecconsulting.com
Using XML with Legacy Business Applications (Addison-Wesley, 2003)
www.awprofessional.com/titles/0321154940
|
 |
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|