Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent Urgent: Request for help

Status
Not open for further replies.

svg1970

IS-IT--Management
Jun 17, 2001
14
US
Hi,
I need some urgent help. EDI gurus, pleeeeeeeease reply.

I am doing some inbound mapping on Gentran NT 3.1

Input is

ISA
GS
ST
...
...
DTM that occurs 2 times
...
...
Group-1 multiple times
Seg11
Seg12
Seg13
Group-14 multiple times
...
...
seg141
seg142
.....

Currently output has

HDR EDI data from Seg11, Seg12, Seg13 etc go in here
DTL ]EDI data from Seg141, Seg142, Seg143 etc go in here
DTL ]
...
HDR
DTL
DTL
...

Currently segments before Group-1 are not mapped to output.
I need to take data from Seg-1 and populate 2 fields in
HDR record depending on a date qualifier in DTM01.

i.e
if DTM01 = value1, DTM02 goes to Delivery Dt in HDR
if DTM01 = value2, DTM02 goes to Cancel Dt in HDR

I have tried all combinations of using extended rules/
temporary storage at different group levels and mapping
from temp storage to output. Also tried extended rules
on the output side too...Unfortunately not much luck

It either gives me multiple HDR records (first one good HDR
with all fields, second one just HDR tag and the dates)
or it goes into an infinite loop.

Any help in figuring out where (what group level) to
keep the extended rules / variables / linking from
temp.storage to output etc is greatly appreaciated.
Also, what would be a good way to initialize the output record /field / temp storage etc after it has been
used for populating the output file?

Thanks a lot for reading thru...Have a good day
Please reply

 
Mapping lession 101
Always initialize tmp fields.
The problem seem to be you map it multiple groups. So keep it with in the same group. This way you would avoid multiple records
 
Hey Sayeers,

Forgot to ask you one thing
Is the 'empty' state enough to initialize
a variable or do I need to assign
a " " / (spaces) or zeros to the
variable?

And, I am not mapping it to the multiple
groups.

There are multiple groups in the maps. It
is an existing map. I am not supposed to
modify the group structure. My task is
only to get the start/end date from the
mltiple DTM segments at a higher group
level, take the values to a level below
and map it to the HDR record on the output
side along with existing (already mapped
to HDR record in the current map) data
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top