Skip to Content

context object

what is the purpose of using context object in IR??

give an example for context object

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 06, 2007 at 11:42 AM

    Hi,

    You would use a context object to reference a specific field in a message interface.

    This is useful if you would like to use this value to do conditional routing.

    Eg. you could set up a context object "dest" and then specify it to point to a the field "Target_System" in your message interface. Then you could use this in your Receiver determination (as a condition "dest = 001") to determine which Service to route to.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:39 AM

    Hello ,

    You can use content object in ID.. for Receiver Determination.

    Instead of entering complex xpath statement you can use the context object.

    just search for context object in forum..you will get lotz of posts.

    context-object

    Regards,

    Sumit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:37 AM

    Hello Gabriel,

    Context Object are simply pointer to a specific XML tag. if you want to simplify your delopment you can define Context object for some fields and use the context objects. many message types come with their own context objects (see lins here :http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm) to help you get the data you want without going over all the fields.

    their whole purpose is to simplify deelopment.

    you can see demo examples at https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d46b9b90-0201-0010-ef92-9964c1bc98e1 .

    Have a Good One,

    Uri Lifshitz.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:43 AM

    Hi,

    Context Objects are used in Receiver Determination in ID to Determine the Receivers

    Go through these

    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

    context-objects

    Receiver Det- Xpath:

    /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

    XPATH in Interfce Det:

    /people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

    Reward points if Helpful

    Regards

    Sesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:44 AM

    Hi,

    We use context object as an alternative to XPATH.

    this context object is a runtime variable which stores a values in it, we use this for receiver determination in particular.

    For example please go tru the blog below,

    -Receiver Determination with a condition using context object (EXTEND) mode

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

    -Technical Context Objects

    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

    Hope this helps.

    _Prasad Babu.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2007 at 11:55 AM

    Hi,

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

    for Eg..refer this link..

    http://help.sap.com/saphelp_nw70/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

    vasanth.

    Add comment
    10|10000 characters needed characters exceeded