Skip to Content
0
Former Member
Feb 09, 2005 at 03:38 PM

Mapping - Duplicate Subtrees

502 Views

Hi,

Does anybody have any experience with mapping duplicate subtrees in the graphical mapping editor?

I am trying to map a straightforward list of source fields to a recurring set of target fields (type & value). As described in the help. I duplicated the subtree of the target structure and mapped the fields.

The mapping looks like this (and this corresponds with the SAP XI help:

/ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute/EnqAttribTypeCode=Constant([value=VRM]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/VRM /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[1]/EnqAttribTypeCode=Constant([value=Foreign]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[1]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/Foreign /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[2]/EnqAttribTypeCode=Constant([value=RHDrive]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[2]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/RHDrive /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[3]/EnqAttribTypeCode=Constant([value=TaxDisc]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[3]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/TaxDisc /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[4]/EnqAttribTypeCode=Constant([value=Type]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[4]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/Type /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[5]/EnqAttribTypeCode=Constant([value=Make]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[5]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/Make /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[6]/EnqAttribTypeCode=Constant([value=Model]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[6]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/Model /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[7]/EnqAttribTypeCode=Constant([value=Colour]) /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[7]/EnqAttribStringValue=/ns:Dummy_ExtendedAttributes/Colour

However, whenever I try to save the mapping, it gives me the following error and deletes all the subtrees:

The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted

Target structure has no such path: /ns:Dummy_EnqAttribSet/Dummy_EnquiryAttribute[1]/@EnqAttribStringValue. Skipping mapping

.. and so on for the entire list of fields.

I have tried everything I can think of... saving before mapping, mapping then saving, etc. But it dosn't work. Can anyone advise, please?

Thanks and Regards

Manish