cancel
Showing results for 
Search instead for 
Did you mean: 

Hold Values from Source into Multiple Target Nodes

vinotha_m
Participant
0 Kudos

Hi Everyone,

We have a requirement where we are splitting the incoming message into many messages(files) for each Order.

Now we also repeat some lines in the file as per the quantity.

But some fields from the source structure do not repeat in these lines.

Could you pleasee suggest how to do tis.

SO suppose we have Quantity as 3.

we make 3 lines like this in resultin file.

01 ABC 1

01 ABC 1

where ABC is the material No.

But the problem is that the material no, does not repeat , those fields just vanish in the target structure.

Could tehre be any reason why.

Can anyone suggest how to resolve this issue.

Thanks,

Vinotha M

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi Everyone,

>

> We have a requirement where we are splitting the incoming message into many messages(files) for each Order.

>

> Now we also repeat some lines in the file as per the quantity.

>

> But some fields from the source structure do not repeat in these lines.

> Could you pleasee suggest how to do tis.

>

> SO suppose we have Quantity as 3.

>

> we make 3 lines like this in resultin file.

>

> 01 ABC 1

> 01 ABC 1

>

> where ABC is the material No.

>

> But the problem is that the material no, does not repeat , those fields just vanish in the target structure.

> Could tehre be any reason why.

>

> Can anyone suggest how to resolve this issue.

>

> Thanks,

> Vinotha M

make sure you have handled the node mapping for the field i.e when you map the field correspondingly the parent node also should be mapped.

Answers (1)

Answers (1)

madanmohan_agrawal
Contributor
0 Kudos

Hi Vinotha,

Map the QTY field to the target node and Use proper context and make sure that the occurrences of the target node is set properly.

Regards,

Madan Agrawal

vinotha_m
Participant
0 Kudos

Thanks fr your replies,

I have mapped the target structture and the context and occurrences of the target node is set to 0 to unbounded as well.

Stil the problem persists.

Thanks,

Vinotha M

madanmohan_agrawal
Contributor
0 Kudos

Hi Vinotha,

Is the context of the source field "QTY" (that has been mapped to target node) set properly.

Please check it in Test tab of MM.

It should populate all three values.

Regards,

Madan Agrawal

vinotha_m
Participant
0 Kudos

We have set the context properly and tested in MM. It is not working.

Can you suggest something.

former_member200962
Active Contributor
0 Kudos

Hi,

Is it the case that you are getting only one instance of Material number and you need to use it many times in the target structure?...If yes then you will need the UseOneAsMany function in the message mapping.....this function is available as a standard function...

Following blogs give the way to implement the useOneAsMany function:

/people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

Regards,

Abhishek.