cancel
Showing results for 
Search instead for 
Did you mean: 

xpath & context object

Former Member
0 Kudos

can u tell me with an example what is xpath & context object and where do we use this

Accepted Solutions (0)

Answers (4)

Answers (4)

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sandeep

Please familiarise yourself with the forum Rules of Engagement before using the forum.

Rules of Engagement

https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement - in particular Step 1: Finding An Answer

This thread will be locked.

Regards

XI/PI Moderator

Former Member
0 Kudos

Dear Sandeep,

Concerning the 'Context Objects', kindly go through the following link :

- http://help.sap.com/saphelp_nwpi71/helpdata/EN/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

Concerning 'xPath Expressions', kindly go through the following link :

- http://help.sap.com/saphelp_nwpi71/helpdata/EN/b6/0b733cb7d61952e10000000a11405a/content.htm

Best Regards

Nishwanth

Former Member
0 Kudos

Hi Sandeep,

Xpath abd Context Object can be used in Interface Determination(Configuration Object).

Consider a scenario(FILE>PI>RFC) where you have a source structure as

Field1

Field2

you have two target RFC's to be called based on a condition,

RFC1 needs to be called if field1 is '1'

RFC 2 needs to be called if field1 is '2'

In this case you would be creating two message mapping and corresponding Operation Mapping(Source->RFC1 & Source->RF2)

In the Configuration part , in Interface determination you would specify both the operation mapping. Over here you can define the condition, you can use Xpath or ContextObject for this.

I hope you are clear now what an Xpath and Context Object is how how to use it.This is just a samll example.For detailed study please go through,

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

Provide points if useful!

Regards,

Venu

Former Member
0 Kudos

Hi Sandeep,

Take a look at this xpath tutorial on w3schools.

http://www.w3schools.com/xpath/

Regards, Gaurav.