on 11-06-2009 12:36 PM
I have 2 inputs given to text equals function.
The problem is while computing the equals, it is not doing it in a correct way from first context change onwards.
like, first context change when it computes the values, it is fine but when it computes the second time it is just doing only one value comparision
eg:
Input 1:
context change
2008
2009
0091
2009
context change
Input2:
context change
2008
context change
2009
context change
0091
contextchange
2008
context change
the output
true
true
true
false
context change
true
context change
true
context change
false
Instead of the above, I need 4*4 = 16 in output with 4 context change.
Above was just example. Exact problem can be seen at the following location....
http://farm3.static.flickr.com/2630/4079628311_268800e171_o.jpg
I tried with diff node functions like splitByValue,RemoveContexts,CollapseContexts
noting seems to be producing the desired output.
Help
venkat.
Hi,
You have to write an UDF where the input would be Queue1 and Queue2 (both with removed contexts) and result as list. Then in nested loop you check if values are equal and using result.addValue add them to the list. Context is changed (addContextChange()) after outer loop incrementation.
Useful links:
http://help.sap.com/saphelp_erp2004/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/frameset.htm
/people/rohit.kalugade/blog/2009/02/09/context-and-queue-in-message-mapping-udf-150-part2
/people/rohit.kalugade/blog/2008/12/08/context-and-queue-in-message-mapping-udf
Kind regards,
Radek
Edited by: Rucinski Radoslaw on Nov 6, 2009 2:35 PM
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 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.