cancel
Showing results for 
Search instead for 
Did you mean: 

context object

Former Member
0 Kudos

hi..... friends,

i am new to xi...

1.what is context object.

2.where we can find the context object.

3.where we can use the context object.

thanks,

with regards,

singu

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Prasad

Context.. In simple words.. Context of an object is nothing but just the lavel (with referance to its parent node) where the xml tag appears in the given XML document

and Context changing is just changing the level of xml tag (element level in the XSD) in the XML document or it is just the flexibility provided by XI for changing the XSD of the XML document at runtime

If you know ABAP it is similar to at new --end at

Thanks & Regards

Former Member
0 Kudos

Adding to the above replies...

It is a pointer to a specific element (field) within the message, for future reference. It encapsulates access to data that is contained in the payload or in the header of a message.

Regards

Ashok

Former Member
0 Kudos

HI,

1.what is context object.

Context object is alternative to XPath, This will be used to access the content of an element in message in Runtime. This will be used create in IR, and refer in Message Interface, In ID we will define where it is to be used , Based on this runtime value we can route the message processing.

2.where we can find the context object.

3.where we can use the context object

See below links

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

Regards

Chilla

prasanthi_chavala
Active Contributor
0 Kudos
bhavesh_kantilal
Active Contributor
0 Kudos

Prasad,

In runtime in XI quite often we use the XPATH of your XML strucutre to determine some condition ect. This can be difficult if you need to use this XPATH multiple times.

Context Objects are nothing but a variable for your XPATH's.

Assing the Context Object to the corresponding Message interface and then you can use it in Receiver determination conditions, Interface Determination conditioons etc.

Regards

Bhavesh

PS : If you are new to SDN, please look into your earlier questions and award points for useful answers. If you were not satisfied with the answers , you are free to ask for clarifications but please do understand that the more elaborate your questions the better answers you will get.