I have a scenario(File to IDOC) in which i have to fill message code of control record as follows.
Source file structure
Mapping rule for MESCOD is
field2='abc' then field1 has to map to mescod.
initially i did mapping with simple if condition with equals .
while testing mapping in the test tab i have given field2 value as abc in first occurance then output mescode is generating.
if i duplicate seg3 and give the field2 value in the second occurance then no value is coming to output field mescode.
and more over field1 occurance is 0-1 if no value is there in first occurance then there may be value in the second occurance of segment1 as it is unbounded.
i tried with use one as many but still i am not getting output in all cases.
can any one help me on this?