cancel
Showing results for 
Search instead for 
Did you mean: 

Context Objects.

Former Member
0 Kudos

Hi,

I have created a context object(ConObj) and assigned to a field from a srouce structure(RecordType).

According to Context Object concept

XPath : /InvoiceOut/customerData/address/RecordType = u201C69120u201D

Context Object: ConObj.

Now use context object in all conditions where you need the value of the <RecordType> field, which makes the conditions easier to read.

However if I change the value to Conext Object (ConObi) in a UDF will it refelect in the Srouce field(RecordType)???

Thanx

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not sure what you are aiming to achieve here.

Global memory and context objects are 2 different things. Global memory is only applicable for a particular instance of a message mapping. As soon as the mapping is complete, the memory is refreshed.

Context objects on the other hand only refer to the xpath for a particular field in the xml. They can not hold any payload value

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

Former Member
0 Kudos

Hi,

The context object only contains the xpath for a particular field in the xml structure, it does not hold any value.

So, in your case, the context object only holds '/InvoiceOut/customerData/address/RecordType'

Regards

Former Member
0 Kudos

So can we use Global memory concept???? If yes please give few links to work on .

Thankx

Former Member
0 Kudos

Hi kevin

In PI 7.1 you can use a option of graphical variable

that can be used

http://sapxitutorials.blogspot.com/2011/05/sap-pi-71-mapping-enhancements-series.html

Regards

Sandeep