on 10-31-2007 5:09 AM
hi all ,
can any one help me what is context objects and where it is used.
Thanks in advance
Naveen
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.