|
[EDI-L Mailing List Archive Home]
[Message List]
[Reply To This Message]
Re: Gentran NT: Skipping Segment occurances in a group
create a temp segment, say TEMPN1. create the elements you would like mapped
under this segment, i.e. N101 N102 N103 N104.
Create an On End Extended rule on the N1 Group:
if #0098 = "SU" then
$TEMPN1.N101=#0098;
so on and so forth.
Create the links to the HDR1 from the temp segment.
The only time the mapping from the temp segment to the HDR1 will occur is if
there is data in the temp segments. The only way the temp segments get
populated is if the N101 equals SU.
If there are multiple occurances of an N101 with SU, set a flag as well. In pre
session rules set a sring variable (length of 1) called "N1Flag" to N. Your
logic in the extended rule would look like this:
if #0098 = "SU" & N1Flag="N" then
N1Flag="Y"
$TEMPN1.N101=#0098;
so on and so forth.
Mike Monica
________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
|
|
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|