cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding SUPPRESSED values

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

VijayKonam
Active Contributor
0 Kudos

You need to look at the context change. If your context is changing properly, they are assigned to respective parents on the target side. If you do not want the suppressed values, use remove contexts and then split by value before the target element.

VJ

Answers (0)