cancel
Showing results for 
Search instead for 
Did you mean: 

help with equals and context changes

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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