Skip to Content
avatar image
Former Member

xpath & context object

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded