on 04-01-2009 9:52 PM
Hi there, I have some intresting question.
Lets say I have the following IDOC structure.
Main Node
--Node A
-
Element1
-
Element2
-
Element3
--Node A
-
Element1
-
Element2
-
Element3
--Node B
-
Element1
-
Element2
-
Element3
--Node B
-
Element1
-
Element2
-
Element3
Ok so Node A and B are both 0..Unbounded.
Lets say Node A's first and second occurences have got some values in but for Node B's first occurence all elements are populated but the second occurence only Element 2 has got a value in it..
So in the message mapping I say Display QUEUE element 1 and element 2, it should look like this:
Queue 1
Value1
Value2
Queue 2
SUPPRESS
Value2
Now my question is, how would I know that Value 2 from Queue 2 is in the 2nd array position?
Thanks,
Jan
Jan,
You dont have to know that.
You can use the node function "mapWithDefault" to map Queue2 to the target field. When you use this function, if there is no value in the queue, it passes whatever is the default value that you setup in that function.
Queue2 --> mapWithDefault --> Target Field.
Hope this helps.
Regards
Haseeb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.