on 07-16-2008 1:26 PM
Hi,
any one help me out what is context object.
thaks
Hi,
Context object is used to specify the XML tag.
or
Context objects are a simple alternative to XPath expressions for accessing the contents of a message. Take the following message instance as an example:
<InvoiceOut>
<customerData>
<address>
<name> ... </name>
<postalCode> ...</postalCode>
...
</address>
...
</customerData>
</InvoiceOut>
thanks,
suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Context object is a shorter mode of referring to the xpath. This is used when the field is under a deep heirarchy.
You can create context objetct in IR and assign it to a particular field in Message interface.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very Useful WEBINAR notes...
Please Reward Points if helpful...
Edited by: Arman Eker on Jul 16, 2008 2:37 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
Context Object will be used to change the Hierarchy level.
Ex:
<address>
<house no>77777</house no>
<street>aaaaa</street>
if you change the context of street it will point to address element.
If you change the context if more than 1 address element will come then it deals all address elements.
In UDF you will get context object.
Reward points if needful
Thanks,
RamuV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Context of an element is nothing but just the level, where the XML tag appears in the given XML document. Level of any element is set to the immediate parent node by default.
Check this link for more details
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
Context Change : Context change is just changing the level of XML tag(element level in XSD) in the XML document.
This means when we map one source field to one target field then that both field segments should be at samelevel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
please have a look here:
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
Regards
Patrick
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.