I have an EDI map which has two elements in the same loop. The elements are:
Reference2
Serial
The nodes their data targets in this map are the N901 & N902 nodes of a 4010 (yes 4010!) X12 945 map. The logic for this mapping is supposed to be as follows:
If Reference2 exists, put LI in the N901 and the value from the Reference2 element in the N902If Serial exists, out SE in the N901 and put the value from the Reference2 element in the N902
The desired output would be, when both elements have data, would be (if the Reference2 value = 1 and there is any data in the serial element):
N9*SE*1~
N9*LI*1~
The problem I have is I can get the output like this:
N9*SE*1~
N9*LI~
For whatever reason the Reference2 value won't carry to the 2nd instance of the N9 segment created within the loop. The parts of the maps that are pertinent to this are (the constants push the values "SE" and "LI", but otherwise the rest is straightforward mapping:
I am hopeful this can be resolved within the map, as XSLT is something with which I am only vaguely familiar.
Thanks in advance--
Tom