cancel
Showing results for 
Search instead for 
Did you mean: 

how to collect and split messages in BPM

Former Member
0 Kudos

Hi,

I have two scenarios.

In one scenario I have to collect files and send as one file

In second scenario

I have single file and need to split it into several ones.

Pls provide me simple example blogs

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member91687
Active Contributor
0 Kudos

Hi,

<i>>>In one scenario I have to collect files and send as one file</i>

In the Integration Repository you have pattern and example process under SAP Basis, the namespace where you can find the patterns is : <b>Pattern:http://sap.com/xi/XI/System/Patterns</b>

Take a look at the <b>collect pattern</b> here, you can collect the messages based on payload, time or messages, Once you have collected the messages, to send it as a single message you will have a N:1 mapping which will be used in the transformation step of the BPM.

<i>>>I have single file and need to split it into several ones.</i>

For this if you have a the file coming in as a flat structure then you can handle in using content conversion, where you can set the recordset per message parameter.

Else you can do a 1:N split mapping, refer this blog /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible where you can do this without a BPM.

Regards,

Chandra

Former Member
0 Kudos

Hi,

Can N:1 transformation can be handled without BPM.

Pls snd me blog if you have

Regards

former_member91687
Active Contributor
0 Kudos

Hi,

> Can N:1 transformation can be handled without BPM.

No

To know about correlation see this blog /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi , you can also read about it in help.sap.com

Regards,

Chandra

prateek
Active Contributor
0 Kudos

<i>Can N:1 transformation can be handled without BPM.</i>

Its not possible to do a N:1 multimapping scenario without BPM. So you need to go for BPM.

Collect message without correlation

Regards,

Prateek

Former Member
0 Kudos

Hi Chandra

Thanks for Correlation blog.

I have only one doubt in this blog --

/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi

As in this blog--

We need to push the Idocs which contains the FILE_TYPE field with value ‘TST’ into one file and with value ‘PRD’ as separate file.

Now I am Using correlation editor and definrd correlation FileType

and using Interface Variable /IDOC/AOO/File_Type.

Then where I will define the conditions for FILE_TYPE field with value ‘TST’ or 'PRD'

Regards

former_member91687
Active Contributor
0 Kudos

Hi Harry,

Your messages will be correlated based on the value of the File Type, whether it is TST or PRD or anything else for that matter. Correlation is used to assign messages that belong to the same process instance, it defines which message a receive step must wait for without knowing the message ID.

Read this: http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/64373f7853494fe10000000a114084/frameset.htm

Regards,

Chandra

prateek
Active Contributor
0 Kudos

Hi Harry,

Here u go,

Collection in BPM

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi

http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm

Message Split

/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure

http://help.sap.com/saphelp_nw04/helpdata/en/41/e3d13f7fb44c21e10000000a1550b0/content.htm

<i>[Reward point if helpful]</i>

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

Thanks for the links

Looking at this link Collection in BPM

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

pls explain me what is correlation and why do we need correlation

for N:1 transformation (multiple messages to one message).

Can N:1 be achieved without correlation.

Regards

prateek
Active Contributor
0 Kudos

Hi Harry,

<i>what is correlation and why do we need correlation

for N:1 transformation (multiple messages to one message).</i>

Correlation is used when you have multiple recieve steps in the BPM to differentiate each file. Consider your recive step is executed and the BPM is active waiting for the other file to comne in. Before the next file comes in , if another BPM is activated becuase your recived recive1 message. Now, when the next message comes in , how does XI know which BPM instance is to be used.

http://help.sap.com/saphelp_nw04/helpdata/en/a5/64373f7853494fe10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/6d/94364296f1b26be10000000a155106/content.htm

This blog talks abt it.. i had already posted it

/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi

<i>Can N:1 be achieved without correlation.</i>

Correlation is used when you have multiple recieve steps in the BPM to differentiate each file.

<i>[Reward if helpful]</i>

Reagrds,

Prateek