cancel
Showing results for 
Search instead for 
Did you mean: 

2 Source to 1 Target Field

Former Member
0 Kudos

Hi Experts,

I have a requirement where I have two different messages on the source side one target message. One node in the Target structure should repeat as many times as one node from each of the source messages.

Eg:

<SourceMessage1>

<DocList>

<DocList>

</SourceMessage1>

<SourceMessage2>

<DocList>

<DocList>

</SourceMessage2>

Target Structure should be:

<Target>

<Msg1DocList>

<Msg1DocList>

<Msg2DocList>

<Msg2DocList>

</Target>

Please provide solution to the above query.

Thanks,

Abhishek.

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Duplicate the single field at the target side and map both the source field to it....

Thanks

SaNv....

former_member200962
Active Contributor
0 Kudos

Hi,

Is there any other option available?

Thanks,

Abhishek.

santhosh_kumarv
Active Contributor
0 Kudos

right click on the target node and select duplicate subtree...

Answers (1)

Answers (1)

dharamveer_gaur2
Active Contributor
0 Kudos

if source both source message are diffrent structure . then go for N:1 mapping

use multiple message as source and map. some input field those present in both message only map once.

former_member200962
Active Contributor
0 Kudos

Hi,

I have included the two source messages on source side in Message Mapping. My only doubt was that other than "duplicating the subtree" is there any other option to do it.

Thanks,

Abhishek.

santhosh_kumarv
Active Contributor
0 Kudos

No....I believe...!

Thanks

SaNv...

dharamveer_gaur2
Active Contributor
0 Kudos

the only other thing u load source data file.