cancel
Showing results for 
Search instead for 
Did you mean: 

diff between context object and x path

Former Member
0 Kudos

hi gurus,

what is difference between context object and x path?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi rohit,

If u have multiple receiver system then to determine the reciever u can use context object.....

Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination

To better idea see the blog...

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

Check out these also...

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

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

Here is a scenario where context objects were used for BPM

Get the details here:

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

Technical Context Objects :

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

A list of the Technical Context Objects names can be found here:

http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

XPath to show the path (Multiple Receivers)

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

Customize your 'XPATH' Expressions in Receiver Determination

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

regards

biplab

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>>what is difference between context object and x path?

X path - Gives the complete Hierarchal structure of the field in message payload which you are going to use it.

Context path - pointes to the field directly.

Regards

Agasthuri Doss

Former Member
0 Kudos

hi rohit,

Xpath will give u total hierarchal structure of the field in message payload.

where as context path is like pointer to field.

regards

sandeep.

Shabarish_Nair
Active Contributor
0 Kudos

you assign a XPATH to a CONTEXT OBJECT.

it is like assigning a value to a variable.

for example; Sting S = "you assign a XPATH to a CONTEXT OBJECT."

and then further u can always use S anywhere instead of 'you assign a XPATH to a CONTEXT OBJECT.'

Similarly,

you assign a xpath say root/a/aa/aaa/aaaa/aaaaa to a context object say fieldaaaaa.

prateek
Active Contributor
0 Kudos

xpath is the complete path of any field of the message structure.

Context object is a shorter mode of referring to the xpath. This is used when the field is under a deep heirarchy.

U can create context objetc in IR and assign it to a particular field.

Regards,

Prateek