cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Issue

Former Member
0 Kudos

Hi ,

I have 3 Fields on sender

A1 ....1to1

A2.....1to1

A3.....1to1

1 Field on receiver

B1....1 to unbounded

I need to map Sender three Fields to receiver one field

Input Message

<A1>1234567</A1>

<A2>2347890</A2>

<A3>7345903</A3>

Output should be

<B1>1234567</B1>

<B1>2347890</B1>

<B1>7345903</B1>

I tried to find the Standard functionalities.

if there is nay UDF kinldy send me the Code

Thanks in advance

Edited by: sappixi on Dec 15, 2010 1:22 PM

Edited by: sappixi on Dec 15, 2010 1:23 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Click on B1 node and duplicate subtree, 2 times

Now you can separately map 2 A's to 3 B's

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

This is pretty simple. If the sender has multiple fields and target has one field with occurence 1 to many. Use subtree by right clicking the fleld on the mapping screen, You will get B1[1], B1[2] ... B1[n] respectively. Map now and see the results. Runtime this mapping field work automatically.

Former Member
0 Kudos

Solved

Former Member
0 Kudos

In Message Mapping, at the receiver side> Right click on the node> Select the option Duplicate Subtree.

Do this for twice. You would be totally having three nodes at the receiver side.

Now, map the source three fields to the target field and test your mapping in the Test Tab of message Mapping. Sure, you would be able to acheive your requirement without writing any UDF.

Thanks,

Former Member
0 Kudos

Hi,

Click on B1 node and duplicate subtree, 2 times

Now you can separately map 3 A's to 3 B's