cancel
Showing results for 
Search instead for 
Did you mean: 

Message split in SAP PI 7.1

Former Member
0 Kudos


Hi Guys,

We had a requirement, where we need to send the each record as a file to target. How to achieve this. This is Soap to proxy scenario.

For example: In sender we are getting header and details information.

Lets say :

<Header>

  ---------

  ---------

-----------

  </Header>

  <Detail>

   ---------

----------

---------

  </Detail>

  <Detail>

-----------

------------

--------  

  </Detail>

  <Detail>

   ----------------

-----------------

-------------

  </Detail>

  <Header>

   ----------

--------

---------

  

  </Header>

  <Detail>

   -----------

------------

-----------

  </Detail>

  <Detail>

   -------------

-------------

----------

  </Detail>

  <Detail>

   -----------------

-----------------

----------------

  </Detail>

So in target we need to get first header and details information as one message and another header and details information as second message. Can you all please help me out from this scenario.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Neelima,

Do multimapping,For each Header create one target node and change the occurrence of Interfaces in the interface mapping to 0-Unbounded

Former Member
0 Kudos

Hi Raghu,

Thanks for the response.

Do I need to put condition for each header?

And I need to get this single source payload into two different payloads based on header.

Am not getting how to do this.

former_member186851
Active Contributor
0 Kudos

Neelima,

keep the target the node occurrence as 0-Unbounded and map the header to the target header node.

Check the below link

http://scn.sap.com/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it-s-possible

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Neelima,

As raghu said, you don't have to put any conditions, except change the occurrence of the target node to 0:unbounded and keep the values in the context accordingly to suffice your requirement.

Answers (2)

Answers (2)

raviteja_satuluri
Contributor
0 Kudos

Hi Neelima,

Please close the discussion if you got the solution.

Regards,

Kamal.

Former Member
0 Kudos

Hello Neelima,

In my opinion, such a requirement is not possible when the Header and Detail fields are too large in number.

However, if I consider your requirement, every set of Header and Detail fields might generate a separate purchase order (or may be anything similar to that). So why don't you use an IDoc receiver channel instead of proxy receiver?

If you use IDoc receiver, then accordingly there will be a multiple number of separate IDocs formed each with a Header and Detail field.

Hope my comments are useful

Regards,

Souvik