cancel
Showing results for 
Search instead for 
Did you mean: 

proxy

Former Member
0 Kudos

hi all ,

can any one help me what is context objects and where it is used.

Thanks in advance

Naveen

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

COntext Object is used in Message INterface to point out the particular filed in the payload.

Example ur payload look like this:

<Employee>

<Name></Name>

<EmpNo></EMpNo

</Employee>

now at runtime(in the Integration Directory) u have to use the EmpNo inorder to route the message to particular receiver...

U can do this by XPATH or by ContextObjetcs(that u create in the IR)

Thanks

Farooq.

Former Member
0 Kudos

Hi Naveen

for more detail on context objects

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

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

See this too..

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

Thanks!!

santhosh_kumarv
Active Contributor
0 Kudos

Hi Naveen,

>>can any one help me what is context objects

Context object is an alternate for the XPath expressions. Instead of using the XPath to access a node u can define an Context object to access the node directly.

>>where it is used.

It is used as a condition statements.i.e in the Receiver Determination, BPM.

Regards

San

Shabarish_Nair
Active Contributor
0 Kudos

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

Context objects are created and used in your message interface.

a context object is created and assigned to an particular xpath.