cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Search not Working for Repeated Attributes/Key Field Value in Java Stack in SAP PI

Parthi1
Explorer
0 Kudos

Hi all,

We are working on content based search using UDMS for repeated attributes/key field values.

We have already configured UDMS and its working fine if key field occurs only once.

If the key search field occurs multiple times in a messages, then only last occurrence of the message is get logged, our requirement is all the occurrences should be logged and search should work with all of those values.

Could someone please help on this.

Thanks

Parthiban

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Parthiban,

This should be normal behavior, If criteria is met message is retrieved.

Can you post a sample XML and say what exactly is the requirement.

Parthi1
Explorer
0 Kudos

Hi Raghu,

Thank you for your reply.Please find the xml file, here we are searching the message using the field LIFNR, search is working fine only for the last occurrence of LIFNR TestPO15.But its not working for the remaining occurrence of LIFNR values such as TestPO14,TestPO13.

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

<?xml version="1.0" encoding="UTF8" ?>

<ns0:MT_PO_Details_Out xmlns:ns0="http://sample.com/proxy_test">

<ECC_PO_Details>

<BSART>1212</BSART>

<LIFNR>TestPO13</LIFNR>

</ECC_PO_Details>

<ECC_PO_Details>

<BSART>1212</BSART>

<LIFNR>TestPO14</LIFNR>

</ECC_PO_Details>

<ECC_PO_Details>

<BSART>1212</BSART>

<LIFNR>TestPO15</LIFNR>

</ECC_PO_Details>

</ns0:MT_PO_Details_Out>

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

Thanks

Parthiban

former_member186851
Active Contributor
0 Kudos

So when search with TestPO13 no message is getting filtered?.That's something strange

Can you check whether any other criteria is enabled by mistake.

Parthi1
Explorer
0 Kudos

Yes Raghu, occurrences other than last message is not getting filtered out.

When I checked in table XI_AF_LMS_DATA of User defined search which stores message id and other details, only last occurrence is available in it.

MessageId Direction Name Pos Value

eea231-232a-ses2-e8r7-ee32323er OUTBOUND LIFNR 2 TestPO15

Need your inputs to store other occurrences also in the table.

former_member186851
Active Contributor

Hello Parthiban,

I don't think any other settings are required, Could be a bug in older pi version.

can you check in test criteria if all the values are getting displayed, Because I can see all ID values are getting retrieved , We are in SAP PO 7.5.

Can you try configuring in java stack and check.

Parthi1
Explorer
0 Kudos

Hi Ragu,

Thanks for your time in testing the case, might be a bug in PI older version.We are currently using PI 7.31 SP4

Any idea in which version this bug was corrected?

Thanks

Parthiban

Parthi1
Explorer
0 Kudos

And could you please share the xpath used for the field ID in your case.

Thanks

Parthiban

former_member186851
Active Contributor
0 Kudos

Hello Parthiban,

I am not sure on which version this was rectified.

Can you try configuring in Java stack and check once.

XPath I took from mapping.

former_member218864
Participant
0 Kudos

Hello Parthiban, did you find in wich version was corrected? Im facing the same issue 😞

Answers (0)