Skip to Content
0

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

Aug 23, 2017 at 06:32 AM

72

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raghuraman S Aug 23, 2017 at 07:45 AM
0

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.

Show 8 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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" ?>

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

0

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.

0
Former Member

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.

0

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.

capture.png (11.3 kB)
1
Former Member

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

0
Former Member
Former Member

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

0
Former Member

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

Thanks

Parthiban

0

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.

0