The figure, Example of an n:m Multi-Mapping, shows the concept of multi-mappings.
In the figure, the mapping program creates the values of the target message types Order and OrderInfo from the values of the source message types OrderHeader and OrderItem. Here, only an n:2 mapping is executed. On both sides, the message types are under the root element Messages (the name cannot be changed), and under the elements Message1 and Message 2. The sequence is specified by the configuration in the message editor.
Configuration of an n:m Multi-Mapping in the Mapping Editor
The figure, Configuration of an n:m Multi-Mapping in the Mapping Editor, shows the procedure for configuring an n:m mapping in the mapping editor.
Depending on the sequence in which you inserted message types in the input field on the Signature tab page, the messages are made available in the structure overview on the Definition tab page. In the next step, you define the mapping program in the data flow editor.
There are some restrictions on the source and target messages that you reference from a message mapping. The source and target messages can be in a software component version (SWCV) different from the message mapping, but both the source and target messages must originate from the same SWCV and, if applicable, underlying SWCV.
Multi-Mapping in an Integrated Configuration
You may reference a multi-mapping in an Integrated Configuration.
The operation mapping used in the Integrated Configuration must reference an 1:n multi-mapping program, which ensures that a single message is split into individual messages in a message split.
Bulk Message in an Integrated Configuration
If the mapping program contains substructures or fields with an occurrence of 0 to unbounded and one message is to be created for each instance, you can use multi-mapping to create individual messages. The mapping program bundles these individual messages into one bulk message and transfers it to the Adapter Engine. The Adapter Engine splits the bulk message into individual messages again, as shown in the figure, Bulk Message in an Integrated Configuration with Multiple Receiver Interfaces.
The mapping defines a message header with a receiver interface for both the bulk message and the individual messages. The message header may be different for each individual message.
For a mapping based message split, the same Adapter Engine must send the messages. Messages created in the message split do not contain the original message attachments.