[EDI-L Mailing List Archive Home] [Message List] [Reply To This Message]

Re: Gentran NT: Skipping Segment occurances in a group

From: Mike Monica <mike_monica@...>
Date: Thu Jan 15, 2004  10:07 am
Subject: Re: [EDI-L] 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!



 
EDI to XML Mapping for EDIFACT/X12 Convert EDIFACT/X12 Schemas to XML Schema Legacy Data Conversion Tools Access Relational Data as XML Visual XSLT and XQuery Mapping Tools Simplify EDI Data Integration with Stylus Studio XML Enterprise Suite - Free Download!
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.