Hi,
I am trying to develop a message mapping for the following case:
- In the source message, there is a value "Value1" which is on the same level as a subtree "Struct2" which can occur 0..unbound times
- In the target message the value "Value1" has to be part of that subtree, so it has to be copied for each occurence of "Struct2" in the source message
For the case that the subtree has cardinality 1..n there are some examples on the web, e.g. useOneAsMany (SAP-Bibliothek - Partner Connectivity Kit). But that does not fit my case. The subtree in the source message is optional here.
See a screenshot of the message mapping and my solution for the mapping of "Value1" below:
All other values are mapped 1:1.
Sadly, this solution does not work when "Struct2" has cardinality 0..unbound, for 1..unbound it works perfectly. Here is my example:
When I try the mapping, I get the following error message:
That is true. The first queue of the useOneAsMany function has more values than the second. But I don't know how I can fix it, so that it works for my example. Can anyone give me a hint please?
Setup is AEX 7.31.