cancel
Showing results for 
Search instead for 
Did you mean: 

XPath expression query.

Former Member
0 Kudos

Hi all

I have this XPATH in my Receiver Determination

(/p1:CREMAS03/IDOC/E1LFA1M/LIFNR = "1000")

Prefix: p1

Namespace: urn:sap-com:document:sap:idoc:messages

This is the payload of the XML message.

<CREMAS03>

<IDOC>

<E1LFA1M>

<LIFNR>1000</LIFNR>

</E1LFA1M>

</IDOC>

</CREMAS03>

Is there anything wrong with the XPath expression? I am getting Receiver cannot be be found.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

> (/p1:CREMAS03/IDOC/E1LFA1M/LIFNR = 1000)

Remove the double quotes and then try as shown above.

Regards,

Sarvesh

Former Member
0 Kudos

Removing the quotes still doesnt work.

Any other ideas?

GabrielSagaya
Active Contributor
0 Kudos

In the Context Path

/p1:CREMAS03/IDOC/E1LFA1M/LIFNR = "1000"

Try without p1:

IDOC XML has no namespace

Former Member
0 Kudos

Thanks.

Problem solved!

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

use the expression in the following way.

(/p1:CREMAS03/IDOC/E1LFA1M/LIFNR = 1000)

rest all things are same.

Thanks

Rinku

Jitendra_Jeswan
Contributor
0 Kudos

It should look like this

(/p1:CREMAS03/IDOC/E1LFA1M/LIFNR =1000)

Regards.

Former Member
0 Kudos

1. Create a context object on the design maintenance screen of the Integration Builder (see: Creating a New Object).

2. Select a built-in XSD data type for your context object by using the Reference Type list box and save it.

3. Open the interface that you want to assign a context object to in the Integration Repository. You can only assign context objects to the request message of interfaces in the same or in a superordinate software component version.

4. To assign the context object to a request message field, enter it in the Context Object column by using the input help. For message interfaces, the structure of the request message is displayed on the Context Object tab page.

5. If you want to undo the assignment of a context object, select the name of the context object and choose Delete Context Object Assignment ().

Former Member
0 Kudos

Hi,

Yes , this is correct expression only

Check these

http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Receiver Det- Xpath:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

XPATH in Interfce Det:

/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

Regards

Seshagiri