cancel
Showing results for 
Search instead for 
Did you mean: 

Correlation for multiple fields in messages inside BPM

Former Member
0 Kudos

Hi All,

We have a requirement to collect multiple IDOCs based on combination of field1,field2,field3 and field4.

Could you please tel me possible ways to implement this solution:

I have tried the below options:

Multiple fields in one correlation

Correlation name is given and then in Correlation editor,we have given all four fields in correlation container and 1 involved message and properties are given for all fields

Using this solution.IDOCSa re not collected even if all the IDOCs coming with same value for (field1field2field3+field4)

for example even if combination of (field1field2field3+field4) is same still its not collecting and sending each IDOC sepearately outside BPM.

Could you please suggest where the problem is?

Please suggest if there is any other way to implement this in BPM.

Thanks in advance

Best Regards,

Harleen Kaur Chadha

Accepted Solutions (0)

Answers (3)

Answers (3)

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Harleen Kaur Chadha,

Open your Integration Process (ccBPM), go menu bar u201CViewu201D, select u201CCorrelation Editoru201D. Then you can see the Correlation variables you have declared. Go the third tab u201CPropertiesu201D, and then try to edit u201CValueu201D. Expression Editor window pops up, select u201CInterface Variableu201D, then select XPath. Now edit u201CXPath Expressionu201D. Pay attention to Prefix u201Cp1u201D, it should be present in XPath expression. Check SAP help [Link|http://help.sap.com/saphelp_nwpi711/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm]

Regards,

Raghu_Vamsee

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Harleen Kaur Chadha,

Please click on link3 (above) and check second screenshot. Similarly, you have to edit "XPath Expression" in correlation.

Regards,

Raghu_Vamsee

Former Member
0 Kudos

Hi Raghu,

I am not getting option to give XPath expression in BPM while giving field for correlation.

I dont see any such option over there to give XPath.

Could you please check once?

Best Regards,

Harleen Kaur Chadha

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Harleen Kaur Chadha,

I understand your requirement is to collect all IDOCu2019s, which have the save value for field1 + field2 + field3 +field4. I assume, collection is for certain time i.e., 5 min, 10 min.

You have to use ccBPM, BpmPatternCollectTime from SAP BASIS (http://sap.com/xi/XI/System/Patterns) with some modifications. As far as I know, it can be done by just changing the XPath in correlation expression. Change correlation to, something like this:

concat(/p1:BpmPatternCollectMessageToBeCollected/ID/field1, 
/p1:BpmPatternCollectMessageToBeCollected/ID/field2, 
/p1:BpmPatternCollectMessageToBeCollected/ID/field3, 
/p1:BpmPatternCollectMessageToBeCollected/ID/field4)

SAP help [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm] [Link2|http://help.sap.com/saphelp_nwpi711/helpdata/en/6d/94364296f1b26be10000000a155106/frameset.htm] . XPath blogs [Link3|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3774] [original link is broken] [original link is broken] [original link is broken]; [Link4|/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping ]

Regards,

Raghu_Vamsee

Edited by: Raghu Vamsee on Jan 13, 2011 3:38 PM

Former Member
0 Kudos

Hi,

In ccBPM for correlation,I am not getting option of giving XPATH expression.Could you please check this?