cancel
Showing results for 
Search instead for 
Did you mean: 

Context object

Former Member
0 Kudos

Hi,

Can u please post me step by step way to work with the context objects

Thanks,

SrinivasP

Accepted Solutions (0)

Answers (6)

Answers (6)

samiullah_qureshi
Active Contributor
0 Kudos

Hi

Context objects are a simple alternative to XPath expressions for accessing the contents of a message.

If you needed Xpath expression in more than one condition, you would have to rewrite or copy it each time. Instead, you can assign a context object to the particular field

xpath is the complete path of any field of the message structure.

Context object is a shorter mode of referring to the xpath. This is used when the field is under a deep heirarchy.

U can create context objetct in IR and assign it to a particular field in Message interface.

Regards

Sami

Reward points if helpful.

Former Member
0 Kudos

Conext Objects are nothing but a Position of the XML path.

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 XML Path.

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

reg,

suresh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

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

Regards,

Bhavesh

Former Member
0 Kudos

Hi Srinivas,

See this too..

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

cheers,

Prashanth

Shabarish_Nair
Active Contributor
0 Kudos

try these links !!!

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

Former Member
0 Kudos