cancel
Showing results for 
Search instead for 
Did you mean: 

context object

GabrielSagaya
Active Contributor
0 Kudos

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

give an example for context object

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (5)

Answers (5)

Former Member
0 Kudos

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.

former_member181959
Contributor
0 Kudos

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.

Former Member
0 Kudos

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

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

Former Member
0 Kudos

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.

Regards,

Sumit

Former Member
0 Kudos

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-996... .

Have a Good One,

Uri Lifshitz.