Skip to Content
This blog is focused on PI beginners who want to know as how to use multi-mappings. Here I have given the step by step approach with a simple File To File scenario.

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

Source Data Type

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

Message Mapping Source

In Target Message, make occurrence as 0..Unbounded

MM target

Then do the simple 1 to 1 graphical mapping

Message 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

Interface Mapping

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

Interface Determination

Receiver 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<Message> and<Message1> .Else you will get the following error in SXMB_MONI

Issue

Input

The input file MMINPUT.XML , this file contains 10 rows

Input File

Output

In Target folder , PI Created 1 file for each Row . So, here you can see 10 files

File Output

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 

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Sarvesh Singh
    HI,

    I can see you have just attached the pictures with some pointers but you have not explained anywhere what does they mean.. a person new to XI, how he can understand this..??

    I advice you to edit your blog and put some good explanation for each part..

    Secondly what is New in this blog, which is not present in other blogs which you have provided as a link in your blog?

    Regards,
    Sarvesh

    (0) 
    1. ranga rajan Post author
      Hi,

      Ya i agree i will add some more explanations.

      I have seen many postings in forum like ” 
      Input file is XML containing several orders. but in the receiver i should get one file for every order in the input xml ” and like ” One input file will produce  multiple output file using single communication channel ”  etc.,
        Hope this blog will be helpful for such a scenario .

      Regards.,
      V.Rangarajan

      (0) 

Leave a Reply