on 07-15-2007 3:41 PM
Hi.
can any one tell me the use of CONTEXT CHANGE ,
and SPLIT BY VALUE & REMOVE CONTEXT
thanks
shakif
Shakif,
Check these weblogs where sravya has explained with examples on this:
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shakif,
<b>CONTEXT CHANGE</b>
Please go through these links which clearly explains context and context changes in mapping.....
http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/35/fb8c4057d5701de10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/42/f7293b2dbe1a71e10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm
Go thru this guide~good source
<b>REMOVE CONTEXT</b>
Remove context removes all the higher-level contexts of a source field thereby delete all hierarchy levels and generate a list.In simple form
removes all top hierarchy levels, so that all elements of the target queue are assigned to a root element of the source queue
<b>SPLIT BY VALUE</b>
The SplitByValue () function is the counterpart to removeContexts(): Instead of deleting a context, we can insert a context change in the source value queue. We then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccurs must be >0. A maximum of minOccurs top node target fields can be inserted here.
We can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.
refer this for node functions
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/content.htm
Cheers...
Vasu
<b>** REward POints if found useful **</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Consider the Same above example.
Instead of doing Context Change , wht I can do I can use RemoveContext wht happens it will remove all the context's of Billing amt and aligns them in same context level.
Bill_amt -
>RemoveContext-->SUM->Target.
Note:Please don't think from the above example that Context change is equivalent to RemoveContext it all depends on the node level where u are applying these functions.
SplitByValue:
Consider in the queue I'm having the values like
ABC
DEF
GHI
So for each value u want to insert contextchange so if you apply splitbyvalue, then
ABC
<b>[ContextChange]</b>
DEF
<b>[ContextChange]</b>
GHI
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
Split by value is used to insert a context in your structure whereas RemoveContext is used to delete all the top contexts of and element
Thanx
Ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mohamed,
Context Change :Consider the below example, in that example I'll tell u the use of context change.
<MT_Source>
<Order_detail>
<Order>
<Inv_no>10009</Inv_no>
<Bill_amt>900</Bill_amt>
</Order>
<Order>
<Inv_no>10009</Inv_no>
<Bill_amt>1000</Bill_amt>
</Order>
</Order_detail>
</MT_Source>
In target there is requirement that I need to sum all the Bill_amt.
If you look the context og Bill_amt each one is in different context. So I can apply context change to Bill_amt in order to make all the Bill_amt in same context and I can do my calculation.
Bill_amt[Change Context-Order_detail] ->SUM->Target.
Hope it clears a little bit!!!!
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.