Skip to Content
avatar image
Former Member

Context object

Hi,

Can u please post me step by step way to work with the context objects

Thanks,

SrinivasP

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Nov 29, 2006 at 10:15 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2006 at 10:17 AM

    try these 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2006 at 10:17 AM

    Hi Srinivas,

    See this too..

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

    cheers,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2006 at 10:26 AM

    Hi,

    Conext Objects are nothing but a short way to reference XPATH.

    When you have a deep nested XPATH, and you need to use it in multiple locations it can become tricky and so in your Ir you create a conext object to refer to the XPATH.

    Creating Conext Objects --> Quite Simple.

    1. Create a new context object --> Right Click on Context Object --> New --> and then give the type of the conext element. Integer, char ,etc.

    2. Now, go to the Message Interafce and you will find the column Context object . To the corresponding XML element , give your context object name

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 12:28 PM

    Conext Objects are nothing but a Position of the XML path.

    and you need to use it in multiple locations it can become tricky and so in your IR you create a conext object to refer to the XML Path.

    Creating Conext Objects --> Quite Simple.

    1. Create a new context object --> Right Click on Context Object --> New --> and then give the type of the conext element. Integer, char ,etc.

    2. Now, go to the Message Interafce and you will find the column Context object . To the corresponding XML element , give your context object name

    reg,

    suresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 12:33 PM

    Hi

    Context objects are a simple alternative to XPath expressions for accessing the contents of a message.

    If you needed Xpath expression in more than one condition, you would have to rewrite or copy it each time. Instead, you can assign a context object to the particular field

    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 objetct in IR and assign it to a particular field in Message interface.

    Regards

    Sami

    Reward points if helpful.

    Add comment
    10|10000 characters needed characters exceeded