Skip to Content
avatar image
Former Member

diff between context object and x path

hi gurus,

what is difference between context object and x path?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Sep 11, 2007 at 01:23 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2007 at 01:31 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 11, 2007 at 01:54 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2007 at 02:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 11, 2007 at 02:33 PM

    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

    Technical Context Object in ccBPM

    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

    Add comment
    10|10000 characters needed characters exceeded