Posted by [IP Address: 196.2.56.5] 'Mike Perks' on September 20, 2001 at 15:49:14 EST:
Hi, I am currently using BC4.01 to convert IDOC's to XML messages, I need to map certain segments conditionally into the target structure - indexing cannot be used as I cannot always expect the same amount of segments - especially in the case of E1EDP05.I extract E1EDP01 out of ORDERS05 and LOOP over E1EDP01/E1EDP05 and insert a BRANCH step (as a child of the LOOP step)with the "evaluate labels" set to true, I then insert mapping steps as children to the branch with conditional expressions in their labels such as %E1EDP01/E1EDP05[$iteration]/KOTXT% = 'Gross Price':MAP - so if the KOTXT field of E1EDP05 is 'Gross Price it will perform this mapping, unfortunately this only seems to work at a header level and not with deeply nested records - would appreciate any assistance ?
Regards
Mike