on 09-30-2014 3:14 PM
Hello,
I have a mapping with an outbound Idoc with multiple headers segement like that :
<header>
<Theme>THEME1</Theme>
<Designation>Designation1</Designation>
<Date>Date1</Date>
<Items>
<Theme>THEME1</Theme>
<Matnr>Matnr1</Matnr>
<Items>
<Theme>THEME1</Theme>
<Matnr>Matnr2</Matnr>
<header>
<Theme>THEME2</Theme>
<Designation>Designation2</Designation>
<Date>Date2</Date>
<Items>
<Theme>THEME2</Theme>
<Matnr>Matnr1</Matnr>
<Items>
<Theme>THEME2</Theme>
<Matnr>Matnr2</Matnr>
And I want put it into a flat file with this structure :
<DATA>
<Matnr>Matnr1</Matnr>
<Theme>THEME1</Theme>
<Designation>Designation1</Designation>
<Date>Date1</Date>
</DATA>
<DATA>
<Matnr>Matnr2</Matnr>
<Theme>THEME1</Theme>
<Designation>Designation1</Designation>
<Date>Date1</Date>
</DATA>
<DATA>
<Matnr>Matnr1</Matnr>
<Theme>THEME2</Theme>
<Designation>Designation2</Designation>
<Date>Date2</Date>
</DATA>
<DATA>
<Matnr>Matnr2</Matnr>
<Theme>THEME2</Theme>
<Designation>Designation2</Designation>
<Date>Date2</Date>
</DATA>
I couldn't use function UseOneAsMany because I have multiple headers segment on my Idoc.
But I have same field <Theme> in header segment and item segment. I could use this field as a key but i don't know how...
How could I do ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer.
I have already try it but in my target fields I have only the items 1 and 2 corresponding to header 1, I haven't the 2 others items corresponding to header 2.
Here is my result :
<DATA>
<Matnr>Matnr1</Matnr>
<Theme>THEME1</Theme>
<Designation>Designation1</Designation>
<Date>Date1</Date>
</DATA>
<DATA>
<Matnr>Matnr2</Matnr>
<Theme>THEME1</Theme>
<Designation>Designation1</Designation>
<Date>Date1</Date>
</DATA>
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.