EDI and data mapping
I am having trouble grasping how to process multiple occurrences of the same EDI segment to the target. For example, my inbound EDI has the N1 loop; I will have multple N1's to process through, but only need to move data from one specific occurrence:
N1*BY*name*ZZ*code1
N1*SE*name*ZZ*code2
N1*L1*name*ZZ*code3
How do I tell the mapper to evaluate all three N1 segments, and ONLY move data from the N1 elements to the target fields if the N101 is "SE" ? I can do the graphics to evaluate and move based on N1, but the map only processes the first occurrence, so my target fields are blank.
-
You have to use IFF condition to achieve that.
See below :
IFF CONDITION{$Input_EDI_850/EDIRoot/TS_850/Loop5_N1/N1/N101 = 'SE' } VALUE=[$Input_EDI_850/EDIRoot/TS_850/Loop5_N1/N1/N101 ]
By using this condition, if N101 is SE, then only value passes to the target element which is mapped from it0
Post is closed for comments.
Comments
1 comment