on 01-11-2007 12:28 PM
I've ordered Michael Idoc book, but I have a question about mapping and data structures for creating a MATMAS05 Idoc.
My input is a file, keyed by the item number. It has 4 separate measurement on the file. One of the measurements would be the base unit of measure and would map to the E1MARAM. Each record in the file is a new E1MARAM (I've imported the xsd adding the maxOccurs).
The additonal units of measure on the file would need to be mapped to the leaf segment E1MARMM if present.
So how can I map a structure that has only one node (the input) to the output with one root node and multiple leaf nodes. Do I have to break the input structure's extra units of measure fields into an array of leaf nodes so I have a 1:1 mapping to the MATMAS05 E1MARMM structure.
For Example
Input Structure
<row>
<part>
<uom1>
<weight>
<uom2>
<weight2>
<uom3>
<weight3>
etc.
</row>
Idoc (Target)
<E1MARAM>
<item>
.....
<UOM1> (not the real name)
<E1MARMM>
<UON2>
<WEIGHT2>
</E1MARMM>
<E1MARMM>
<UOM3>
<WEIGHT3>
</E1MARMM>
</IDOC>
Thank you in advance for you help.
hi,
nothing special is necessary
in the target structure you just need to create double segment (right click menu)
and map all 4 units to 4 segments
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
So, it I understand you, I should duplicate the node on the target side (4 times). In the graphical mapping I would see 4 occurrance of the segment E1MARMM. The I can map the first measurement values to the first E1MARMM node, the second measurement values to the second node, etc.
Thanks
Hi,
>>>>So, it I understand you, I should duplicate the node on the target side (4 times). In the graphical mapping I would see 4 occurrance of the segment E1MARMM.
exactly
right click on the target message segmment and you can see this function there
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.