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

RE: Gentran NT: Skipping Segment occurrences in a group

From: "Peter Olivola" <polivola@...>
Date: Wed Jan 14, 2004  10:25 pm
Subject: RE: [EDI-L] Gentran NT: Skipping Segment occurrences in a group
A combination of Standard Rules and dummy segments should do the trick. You
need to have the dummy segments because you don't know the sequence of the
N1*?? segments containing the data. When you hit the dummy use a standard
rule to read for the "SU" as a qualifier for mapping the dummy to the HDR in
the flat file.

Peter Olivola
708 445 0023


-----Original Message-----
From: svg1970 [mailto: Sent: Wednesday, January 14, 2004 3:35 PM
To: Subject: [EDI-L] Gentran NT: Skipping Segment occurances in a group


Hi all,
I am using Gentran NT 3.1. I have the following problem and will
appreciate any assistance.

I have a group of N1 segments occuring upto 5 times. I want to use
only one of these occurances - say with N101 = 'SU'. All elements
from N1 segment are mapped to application record 'HDR1'. Two (2) temp
segment elements are also mapped to 'HDR1' record. I want a 'HDR'
record written only if N101 = 'SU'.

In summary, I want a 'HDR1' record written with all elements of N1
+ the temporary segments elements if and only if N101 = 'SU'. In all
other cases HDR1 should not be written even if N1xx elements and
temporary segment elements contain data.

Please help. (Is there a way to read and skip a segment occurance
inside a loop? I think that may help me)




 
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.