Skip to Content
Author's profile photo Aashish Sinha

Multiple Idoc Segment occurance to Multiple File – 1 to N Multimapping

We received a requirement where based on one segment’s multiple occurance of an Idoc, we need to create multiple files as output (Based on occurance of a particular segment). Normally, in the receiver side we change occurances to 0..n to accommodate these kind of requirement. But, in this scenario, XSD used were standard XSD’s with occurance 1 and client didn’t want to change it in custom ways as receiving system is bound to receive one message/file at a time. Because of this situation we have to build 1 to n multimapping scenario based on multiple segments of incoming Idoc.

We are not using BPM in this case. Secondly, we are on PI 7.31 SP-05 single stack. Earlier we were on SP01, and we have got a lots of issue while doing multimapping for this scenario and find out that on single stack, if you are doing multimapping, it is better to have SP-04 or above.

Assumption –

  1. Communication between SAP ECC and SAP PI – Java stack are done (RFC Destinations are created in ECC and PI for IDOC communication.).
  2. All Idoc releated setup is done in PI 7.31 for single stack.
  3. Product , Software Component and Software Component Version are created and imported to ESR in PI.
  4. Standard XSD’s (OAGIS)for receiver side and Idocs for source side are already imported in ESR – PI.
  5. Sender IDOC_AAE and Receiver SOAP adapters are already configured with correct parameters as well as with correct URL and Action for SOAP.

This is an IDOC to SOAP Asynchronous requirement in which multiple xml data will be posted to third party system by SOAP receiver Channel. Third party system has internal queue mechanism to handle each xml data seperately.

Below is the development done for this scenario.


No need to create Message Type for IDOC or imported XSD’s. Only create Service interface for imported XSD for inbound.

Message Mapping –

Create Message mapping as per below screenshot. We have to give source and target message and then we have to change occurance of target message (0..unbounded)to get ready for multimapping.

Signature Tab –


In the target side of mapping, PI will add extra messages tags for multimapping like below.


In IDOC, VWERK field is part of repeating segment and depending upon that we will map target node as per below screenshot. Rest fields we can map one to one depending upon our requirement.


Context of VWERK like below.


Now create Operations mapping and change target side occurance to 0..Unbounded for multimapping.


ID Configuration –

Now create 1 Idoc_AAE sender communication channel and 1 SOAP Receiver communication channel. Once we are done with channel configuration create an ICO for Inbound and Outbound receiver and receiver interface like below screenshot.


Above screenshot shows multiplicity of operations mapping fo this interface should be  0..Unbounded.

We are done with configuration of 1..n scenario in SAP PI 7.31 – SP-05.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Aashish,

      I followed your steps, but when i am trying to do mapping in target systems multiple nodes are shown for external OAGIS XSD.

      Do i need to create different mapping for each node, if yes, then how do i integrate it in Opeartion Mapping and how can we do the configuration using these multiple nodes.

      can you please give any solution or document for this..?

      thanks & Regards,

      Akshay Ruia

      Author's profile photo Former Member
      Former Member

      I am facing the same issue.Can anyone let me know how to move ahead

      Author's profile photo Former Member
      Former Member

      I was able to import the order.xsd into PI .however we get the option of selecting global elements and can only select one..So then how to go ahead with mapping and operation mapping.

      And also in ID , will there be any different points to look .

      there willbe idoc sender adaptor and File reciever adaptor which will generate and ftp .xml file

      Author's profile photo KARUNAKAR ADAPA

      Hi Aashish, In JDBC receiver scenario i need to map multiple table names to table element in JDBC scenario how can i achieve this mapping. please see the attachment . Please suggest me . thank you for help

      Author's profile photo Buddhika Krishantha
      Buddhika Krishantha

      Is it possible to send messages to different target systems base on conditions?