cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Message Search

Former Member
0 Kudos

Hi Experts,

I am doing the user defined message search in 7.31 dual stack. I have created one filter criteria and activated.

after indexing option its showing success. But when i am entering the message id it's showing that "Message does not have any payload fields that match the available search criteria".


i am following this blog http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/803b22cf-ad75-2f10-0790-da055f2e8...

Please suggest me where i missed.

Thanks

Dileep

Accepted Solutions (1)

Accepted Solutions (1)

former_member182455
Active Contributor
0 Kudos
Former Member
0 Kudos

HI Srinu,

Thanks for the reply.

But the thing is here when i am going to test my filter with message id it showing nothing messages for the selection criteria.

my settings are

and x-path is

and the name space is

and i activated my criteria and "index optioning" i gave for on month.

when i am trying to test my search criteria with message id it showing like this

Please suggest me where did i missed .

Thanks

Dileep

former_member186851
Active Contributor
0 Kudos

Hello Dileep,

change the Message direction and check.

http://scn.sap.com/docs/DOC-50601

And also the xpath expression is wrong I guess.Follow my blog(link above)

If you still face any issues let me know

Former Member
0 Kudos

Hi.

Can you share us one XML Example?

Regards

Lucho

Former Member
0 Kudos

Hi Raghuraman,

Thank you for the blog. i follow the the blog and recreated the whole scenario.

But i am not able to get. Here i am pasting my inbound xml

i am using the following

x-path is    -------------  /ns0:Sender_MessageType/Root/Field

Path prefix is ---------- ns0

Prefix path name ----- http://userdefinedsearch.com/

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

<ns0:Sender_MessageType xmlns:ns0="http://userdefinedsearch.com">

   <Root>

      <Field>123</Field>

      <Bottem>456</Bottem>

   </Root>

</ns0:Sender_MessageType>

is this correct approach?  Please suggest.

thanks

Dileep

Former Member
0 Kudos

Hi,

I think you are taking prefix from mapping test tab .Try taking the prefix from actual payload by running the interface end to end ,might differ some times.

Regards

Venkat

former_member186851
Active Contributor
0 Kudos

Hello Dileep,

If your selection Inbound XML you should select inbound service interface while configuring User defind search.

ya the approach is correct.

Let me know once you change the interface it is working or not

Former Member
0 Kudos

I have changed the filter with receiver service interface  and x-path form mapping.


it's working fine now.

thank you Raghuraman,

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Dileep ,

The best way to have these details like correct Xpath , Prefix and name space is to go to PI ID -> Receiver determination condition.

Try to put some condition for receiver determination and select Xpath. Select your filed and you will get the correct Xpath.

Enter that in your User defined search configuration and it should work fine.

Thanks

Gaurav Ranjan

Former Member
0 Kudos

Thank you for replaying Gaurav,

I have tried this option also. but it's not working.

is there any restriction in PI for doing this user based defined search. i'e any package i need to add ?

Please suggest on this.

thanks

Dileep