cancel
Showing results for 
Search instead for 
Did you mean: 

Collect Messages using BPM

Former Member
0 Kudos

Hi all,

Am doing a collect message pattern using BPM. After collecting messages wen mapping is called its throwing exception. CAn you help me out in this. I ll explain.

the input i give is :

<Root>

<Name> asd </name>

<ID> A </ID>

</Root>

i sent thid message 5 times to BPM (using collect pattern).

the stop message is of the format

<Stop>

<ID> A</ID>

</Stop>

wen i send this the collect block is exited and the flow comes to a transformation step which does a n:1 mapping

ie. in my mapping i add the source message type and changed its occurence to unbounded in messages Similarly in IM also i changed the occurence of source MI to unbounded. wen i test the message mapping with this

<Root>

<Name> asd </name>

<ID> A </ID>

</Root>

as input it gives the exception. But if i gve like this ten its showing successful.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<Root>

<Name> asd </name>

<ID> A </ID>

</Root>

</ns0:Message1>

</ns0:Messages>

But how can wedo that as transforamtion happens in BPM. PLease help me out in this

Accepted Solutions (0)

Answers (2)

Answers (2)

justin_santhanam
Active Contributor
0 Kudos

Sumayya,

Did u defined the mapping program as N:1 , I mean source structure is 0..unbounded and target structure is 1. Same for Interface mapping!!

-raj.

Former Member
0 Kudos

Hi,

Check these links

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/76/5d373f5e550456e10000000a114084/frameset.htm

Regards,

Kumar