Skip to Content
0
Jul 03, 2009 at 09:54 AM

Number of Item segments determine number of occurences in 1:N multi mapping

34 Views

I'm trying to split MATMAS05 to multiple occurences of MATMAS05 1:N. The target MATMAS05 I have duplicated it a few times depending on the number of plants.

If E1MARCM-WERKS = 1234 then assign MATMAS05 -> MATMAS05

/ns0:Messages/ns0:Message1/MATMAS05=ifWithoutElse([keepss=false]stringEquals(removeContexts(/ns0:Messages/ns0:Message1/MATMAS05/IDOC/E1MARAM/E1MARCM/WERKS=), const([value=1234])), /ns0:Messages/ns0:Message1/MATMAS05=)

The above logic gives me the error:

11:51:28 Start of test

Compilation of MM_Split_MATMAS05 successful Cannot produce target element /ns0:Messages/ns0:Message1/MATMAS05[2]/IDOC. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:Messages/ns0:Message1/MATMAS05[2]/IDOC. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

11:51:44 End of test

Could someone kindly advice what is the mistake here?