Skip to Content
author's profile photo Former Member
Former Member

xpath

Hi All,

Could you please explain about xpath and context objects and context editor.

i am very thankful to you all in advance.

Thanks & Regards,

Nagarjuna.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Oct 19, 2007 at 03:56 AM

    Hi

    XPath is a language for finding information in an XML document. It is used to navigate through elements and attributes in an XML document. For e,g to do conditional routing i.e based on the payload data field you need to route into some receiver in that case you need to access that element. Totally there is a need to access xml element at any point of time.

    To know about XPath expression, this link might help you :

    http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm

    Following links will be helpful to you to understand some actual usage of Xpath expression :

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660

    /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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 03:59 AM

    Hi

    XPath standard for navigating in XML documents.It is use dto locate the information from the structure of an XML document.

    <b>Context object</b> is alternative to XPath for accessing the context of the message.

    It is used to accsess the field contents.

    Context Editor provides graphical support for the creation of controller context trees.It is used for creating the context structures of all controller types.

    Regards

    Yugapreetha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 04:02 AM

    xpath is adress path to a element or attribute of xml documet.

    just like your the path to adress file in windows.

    context object represents a xpath by a simple name for accessing element or attribute conveniently.

    context editor is a editor of context.:)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2007 at 04:04 AM

    Hi,

    xpath and context object are reference for a variable.

    Check this links

    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

    Regards,

    Sakthi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2007 at 04:08 AM

    Also context object is nothing else but a alternative/varaiable for XPath.(Usage to avoid multiple XPath).U use this in ID . Context Object is assigned to the corresponding Message interface which would be used in Receiver determination Interface Determination conditions

    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

    .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 04:12 AM

    Hi Kumar,

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

    the alternative of context objetc is X-Path...

    Check out these

    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

    see here the difference between context object and xpath.

    diff-between-context-object-and-x-path

    regrds

    biplab

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.