cancel
Showing results for 
Search instead for 
Did you mean: 

context object in xpath under reciver determination

Former Member
0 Kudos

hi all.

iam new to xi.

i just want to know what is the need of context object in xpath under reciever determination.

i tried a lot for understanding this context object but no way.

can any body expalin briefly.

waiting for ur great answer.

bye.

regards.

seeta ram.

Accepted Solutions (0)

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

suppose say you have a particular field in an xml and the xpath for the same is;

root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field, so instead of always using the whole xpath you can store it as a context object. It is like a variable say fieldcontextobject = root/seg1/seg2/seg3/seg4/seg5/seg6/seg7/seg8/field and in further development u can just ref. fieldcontextobject instead of the whole xml !!!!

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

More on Xpath:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

Former Member
0 Kudos

Hi Sita,

Context objects are used in receiver determination step at the runtime based upon the input message .In input message we define the context object as any field this field can later be used to determine receivers from the list of receivers based upon its value

To locate an y particular field in message we use XPATH expression .This is used in context object

Regards

Former Member
0 Kudos

Hi Seeta ,

When you want to do the conditional recevier deternimation you use the context objects . You create context objects for any element in your message type . The context variable at runtime will have actual value of that variable .

You create Context vaiable in your message interface where under the context tabl you get your message structure and you choose a particular elememtn which you want to refer at runtime and create context object for that .

In ID you refer this variable and do the receiver determination .

Thanks

Suvarna

Award pts if it helps .

Former Member
0 Kudos

Hi Seeta ,

Does the ans solve your problem ? if yes then please mark it closed . If you have any more doubts on this then pls let us know .

Thanks ,

Suvarna

Former Member
0 Kudos

hi suvarna.

i apreciated u r great answer.

iam very thankful to you.

right now iam not having any doubts on this.

in future if any i will Q.

regards.

seeta ram.

Former Member
0 Kudos

Thanks Seeta .

Do nto forget to award SDN pts

Thanks ,

Suvarna

Former Member
0 Kudos

Hi,

Check this blog it may be help full.

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

With Regards,

Pradeep N