on 02-16-2012 10:51 AM
Dear All
For one of the mapping requirements I need to insert a context change for a field based on some logic.
Is there any way we can insert a context change?
Regards
Sourabh
hi,
See this blog [Introduction to queues in message mapping|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1832].
And especially at the end to know which instruction you can used in a UdF to manage a Change Context... if you cannot acheive it by a graphical function...
regards.
Mickael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sourabh,
If SplitByValue doesn't match your requirements (some more sophisticated logic required), then you could define a trivial UDF that will loop over input values, test the required conditions and add the context change with the following line of code:
result.addValue(ResultList.CC);
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the standard function SplitByValue from Function Category:Node Functions
http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm
if you want to do that within a udf, use method addContextChange() of ResultList Class
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Jagdishwar
Splt By value will insert a context change based on "Each Value", Empty Value and Value Change.
But my requirement is different and this node function is not usefull in the scenario. If I can understand how SplitByValue inserts a context change then my problem will be solved.
Regards
Sourabh
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.