cancel
Showing results for 
Search instead for 
Did you mean: 

Copying Mapping from existing multple mapping to One to one mapping

Former Member
0 Kudos

Hi Experts,

I am having a scenario in which I am doing one to three mapping.

I have a input file and I am tarnsforming it to three files HEADER, DETAIl and FOOTER.

I am using only one mapping for it and it is completed.

Now I need to do one to one mapping for each HEADER, DETAIL and FOOTer.

Is there any way that I can copy my mapping from the existing one and do the one to one mapping.

Regards

Pradeep

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

Try creating a Message Tempate by selecting invidual root nodes. You will find this option in Message Mapping itself. Then try to use these templates in new message mapping. Haven't tried this but just give it a try.

Regards,

Prateek

Former Member
0 Kudos

HI,

How can I create that mapping template, as I is showing disable there?

prateek
Active Contributor
0 Kudos

Select a source root node name and target side root node name and then it should be available.

Regards,

Prateek

Former Member
0 Kudos

Hi,

I guess it should be possible to copy your mapping (3 times) and remove the parts that you don't need.

The problem (in PI 7.0) is that if you have more than one message at the target side and reduce it to one message your field mappings are lost.

You can avoid this if you set the occurence of your target message to 0.. unbounded.

If you don't want to do this you could copy for all fields the last field before the target field (right click on field -> copy) and paste it in your new mapping (this will copy your complete mapping structure).

Regards

Patrick

Edited by: Patrick Koehnen on Jan 12, 2009 11:48 AM