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

xpath & context object

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2010 at 06:27 AM

    Hi Sandeep,

    Take a look at this xpath tutorial on w3schools.

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

    Regards, Gaurav.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2010 at 07:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 12:39 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2010 at 01:28 PM

    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

    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.