I have been working at constructing an 856 asn map that will output in two different structures dependant on the existance of a field in the T level. here is the source structure.
This is the input and the output if a particular field exists in the T Level.
Each of the Levels is a group that can loop many times.
S S
|_O |_O
|_T |_T
|_P |_P
|_I |_I
If the field in the T level does not exist the ouput needs to be:
S
|_O
|_P
|_I
The main problem is that Gentran will not fill out the P level without putting things in the T level.
What I have been thinking about doing is creating temp groups and copying the data to these groups if the Tare field is nonexistant.
This would be the layout with the temporary fields.
S
|_O
|_T
| |_P
| |_I
|_P
|_I
I would then have to somehow move the data from the P and I levels down into the temp P an I levels.
Is this workable? What is the best way of doing this kind of mapping?
Any hints or clues would be greatfully appreciated.
Thanks,
Kevin Clark
This is the input and the output if a particular field exists in the T Level.
Each of the Levels is a group that can loop many times.
S S
|_O |_O
|_T |_T
|_P |_P
|_I |_I
If the field in the T level does not exist the ouput needs to be:
S
|_O
|_P
|_I
The main problem is that Gentran will not fill out the P level without putting things in the T level.
What I have been thinking about doing is creating temp groups and copying the data to these groups if the Tare field is nonexistant.
This would be the layout with the temporary fields.
S
|_O
|_T
| |_P
| |_I
|_P
|_I
I would then have to somehow move the data from the P and I levels down into the temp P an I levels.
Is this workable? What is the best way of doing this kind of mapping?
Any hints or clues would be greatfully appreciated.
Thanks,
Kevin Clark