cancel
Showing results for 
Search instead for 
Did you mean: 

Error in User Define Content search in SAP PI

0 Kudos

Hi Experts,

I am trying to configure a Content search in Adapter engine but I am getting trouble. Let me explain step by step...

1) I created a Filter in which i have given Sender Component, Receiver Component, Interface (Receiver), Namespace (Receiver) (Question arises here that which interface & Namespace we need to mention in Filter Sender or Receiver ?)

2) Now i created Search Criteria in which i have given name to search criteria & X-path for the field which i want to search (Question arises here that in receiver determination X-path which i got is "/p1:MT_OpenOrdersProxy/Records/SKU_CODE" & in Search criteria X-path which i mentioned is /ns0:MT_OpenOrdersProxy/Records/SKU_CODE so my question here is that do we need /p1 in xpath  or not & i mentioned /ns0 in xpath because in mapping namespace is prefixed with ns0.

3) In namespace prefix tab i mentioned namespace and its prefix value ns0 is it correct?

Still i am unable to find the message in my monitoring after doing indexing.

I think there is some mistake in configuration, so need your help for this.

Regards,

Mohit Dua

9958056753

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Raghuraman,

User doesn't have any of the role mentioned in the blog.

Can you please suggest which is appropriate role for removing this error or any role will work.

Regards,

Mohit Dua

former_member186851
Active Contributor
0 Kudos

Hello Mohit,

Try with the below roles

The   SAP_XI_MESSAGE_MODIFY role provides the   edit_header and   edit_payload actions.

  • The   SAP_XI_PCK_MONITOR role provides the   display and   payload actions.
  • The SAP_XI_PCK_ADMIN role provides the display, modify, payload, edit_header, and edit_payload actions.
  • The   SAP_XI_RWB_SERV_USER role provides the   display action.
  • The SAP_WS_ADMIN_BIZ_GLB role provides                     the display,                        modify,                        payload,                        edit_header, and                        edit_payload actions.
  • The SAP_WS_CONFIG_BIZ_GLB role                     provides the display,                        modify,                        payload,                        edit_header, and                        edit_payload actions.

and coming to namespace.Configure as per the namespace in the message.It can be p1 or nso but maitaing the same in the filter.

Refer my blog for more details..Let me know if your stuck somewhere.

0 Kudos

Hi Raghuraman,

Thanks for the reply.

I am checking with basis team for these roles.

I have also configured another content search in same system with same user id i.e for Idoc to Idoc communication in this case I don't have to provide name space prefix value because there was not namespace prefix in MM and I was successful to search the message with the help of content search and didn't faced any authorization issue.

What I want to tell is that can you please help me out with the namespace prefix and x-path thing, I believe I doing some mistake over there.

Thanks in advance..waiting for your reply

Regards,

Mohit Dua

0 Kudos

Hi Inaki,

Thanks for your reply.

For point 1 i understood that we can configure content search on basis or any of the interface Sender or Receiver.

For point 2 I still have Confusion.

  • In Filter Prefix tab I mentioned namespace and its prefix value ns0 because in message mapping namespace is prefixed with ns0 am I correct in this point or not?
  • In Search criteria tab where we define X-path I mentioned X-path i.e  /p1:MT_OpenOrdersProxy/Records/SKU_CODE which I got from receiver determination, so in this de we need to remove /p1 & replace with /ns0 correct me over here.

I am still getting error when I tried to test the search criteria.

Error: Test cannot be performed you are not authorized to access the header value for the message.

Regards,

Mohit Dua

former_member186851
Active Contributor
0 Kudos

Hello Mohit,

Check whether your user id hase roles as mentioned in the link

http://help.sap.com/saphelp_nw73/helpdata/en/45/951838644f4b12822900e1b127166d/content.htm

iaki_vila
Active Contributor
0 Kudos

Hi Mohit,

First of all you can check this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/803b22cf-ad75-2f10-0790-da055f2e8...


1) I created a Filter in which i have given Sender Component, Receiver Component, Interface (Receiver), Namespace (Receiver) (Question arises here that which interface & Namespace we need to mention in Filter Sender or Receiver ?)

This depends where you can search, on the sender service interface or in the receiver server interface.


2) Now i created Search Criteria in which i have given name to search criteria & X-path for the field which i want to search (Question arises here that in receiver determination X-path which i got is "/p1:MT_OpenOrdersProxy/Records/SKU_CODE" & in Search criteria X-path which i mentioned is /ns0:MT_OpenOrdersProxy/Records/SKU_CODE so my question here is that do we need /p1 in xpath  or not & i mentioned /ns0 in xpath because in mapping namespace is prefixed with ns0.

It is indifferent to set any or another prefix, the important is the chose one prefix points correctly to its namespace. (check the point 5.3 in the document)

Regards.