Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
aashish_sinha
Active Contributor

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.

ESR –

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.

5 Comments
Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member59
Explorer
0 Kudos
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
buddhika_krishantha
Active Participant
0 Kudos
Is it possible to send messages to different target systems base on conditions?
Labels in this area