cancel
Showing results for 
Search instead for 
Did you mean: 

context change

Former Member
0 Kudos
78

we are setting d context in 2ways by change the context 7 use remove context mode functon is there any diferance & which one is preferrable?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Rani,

remove context function removes all the contexts and gives the value under main nide.

where are change context we can explicitly specify under which context should the value should be...

Your problem will solve here

http://help.sap.com/saphelp_nw04/helpdata/en/ea/c1f1c4f47011d19a600000e8a4b41d/frameset.htm

For more information...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0f6991e5-0901-0010-e0b0-dc2...

Just check this one also...good blog on context handling...

Reward points if it is helpful

thanks,

madhu

Edited by: Madhu on Jul 15, 2008 8:09 AM

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

For more clarification:

removeContexts:

This deletes all top hierarchy levels, so that all elements of the target queue are assigned to a root element of the source queue

Context change:

Field level hierarchy changes at runtime.

Thanks,

Boopathi

Former Member
0 Kudos

Remove Contexts :

Removes all higher-level contexts of a source field and generate a single list.

Context Change :

We can change the context from source variable.

Both are same, but some times Remove context gives proper answer, ill tel you simple example.

Ex : suppose if we have a condition like if a=zi03 then map b to some target variable the source more than once

if we have change the context suppose the condition a=zi03 is true and b is not there in that segment at that time it takes the next repeated segment b value

if we use remove context then it takes only the corresponding value

This question is already there, before asking the question please try its there or not.

here same question is there.

former_member193376
Active Contributor
0 Kudos

Hi

RemoveContexts

********************

Removes all higher-level contexts of a source field. In this way, you can delete all hierarchy levels and generate a list.

Explicit Context Change

****************************

Message mapping in XI works by means of queues. A queue contains an entire XML instance of the source message. Depending on the hierarchy in the source message, different nodes and elements can be categorised into different contexts. All the nodes and elements that belong to the same parent node are said to be in the same context. Hence, the nodes and elements that belong to different parent nodes have to be separated by a context change.

http://www.riyaz.net/blog/index.php/2007/12/08/xipi-introduction-to-context-handling-in-message-mapp...

Difference :

Suppose we have a condition like a = ZI02 then map b to some target variable, here source occurs more than once.

If we change the context, suppose the condition true and b is not exists then it takes the next segment(repeated segment) b value.

If we use remove context then it takes only the corresponding value.

Hope this is usefull

Thanks

Saiyog

Edited by: Saiyog Gonsalves on Jul 15, 2008 8:20 AM

Former Member
0 Kudos

Hi,

Remove context is different from the Context change.

Remove context does, it removes all the upper nodes of that particular node

where as Context change is used to set the context for that particular fields to satisfy the conditions

Context Change

http://help.sap.com/saphelp_nw04s/helpdata/en/35/fb8c4057d5701de10000000a1550b0/frameset.htm

Remove Context

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/content.htm

Regards

Seshagiri