Multi-Mapping with a Simple Scenario – fledgling kit !
Multi- Mapping
Multi-mapping used for message transformations like 1: n- , n: 1 – and n: m Transformations. Since SPS14 the message splits (1: n transformations), multi-mappings can be achieved without BPM.
Scenario:
You may use this for the scenario like read a flat file which consisting of multiple rows as record set. Then split each row and create separate file for each row. You can use this as base for one File to Multiple IDOC posting also.
Design time objects – Integration Repository
Step by Step approach
1. Create Source and Target data type as follows
Source Datatype
Target Datatype
2. Create Corresponding Message types for each of the above datatype
3. Create Outbound and Inbound Asynchronous message interfaces for source and target Message Type respectively
4. Create Message Mapping
Here let the source Message occurence as 1 and Target Message occurence as 0..Unbounded to achive 1:n Mapping
In Target Message, make occurrence as 0..Unbounded
Then do the simple 1 to 1 graphical mapping
Note: Here I have used “SplitByValue” function for Row element , this is used to create separate destination instance for each source instance under the same parent context.Refer Sravya Talanki’s blog and SAP help to get more insight for node functions.
5. Do the Interface mapping
Note: Here also you should select the occurrence as 0….Unbounded for the target interface
Design Done !
Configuration : Integration Directory
1. Create a business service for the file receiver and sender
2. Create standard Receiver determination and interface determination . But select the interface determination type as “Enhanced” .
Interface determination
Receiver determination
3. Create a Sender and a receiver File adapter
4. Create receiver and sender agreement
Configurations Done!
Testing
Hints
If you have taken the payload from Message mapping – Test message tab for testing as source file , then edit source xml as just remove the elements
Input
The input file MMINPUT.XML , this file contains 10 rows
Output
In Target folder , PI Created 1 file for each Row . So, here you can see 10 files
Refer other folk’s blog
Multi-Mapping without BPM – Yes, it’s possible! – By JinShin
Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.. – By Narendra Jain
New NetWeaver Information at SAP.com
Very Helpfull