Skip to Content
0
Aug 28, 2023 at 08:46 AM

sap cpi message mapping create only one item

118 Views Last edit Aug 28, 2023 at 09:31 AM 2 rev

Hi!

I have different items, but sometimes they have the same ID because the parent structure is the same.

Now I want the target but only for each ID an item is created.

If I have e.g. 3 items

one with mID 2

one with mID 2

and one with mID 3

Then I want that at the end only two items are created, one item with mID 2 and one item with mID 3 and NOT three items (mID 2, mID 2, mID 3).

How do I do that?

I tried like this:

ID->splitByValue(ValueChange)->mID

It works if I have diffrent mIDs but if there is onyl mID 2 like in my example but without mID 3 (like mID 2, mID 2, mID 2) then it failed.

Queue has not enough values in context. Target xsd requires a value for this element, but target field mapping does not produce one. Probably the xml-instance is not valid to the source xsd, or the target field mapping does not fulfill the requirement of the target xsd. on the exchange