Skip to Content
0
May 20, 2014 at 10:16 PM

Graphical Message mapping complexity in SAP PI 7.31 single stack

95 Views

Hi All,

I have a source structure 1..unbounded

<Material>

<row> 1....unbounded

<Mat_ID>123<Mat_ID>

<Desc><text</Desc>

<uom>EA</uom>

<plant>AB</plant>

<org>XY</org>

</row>

<row>

<Mat_ID>123<Mat_ID>

<Desc><text</Desc>

<uom>ST</uom>

<plant>CD</plant>

<org>FG</org>

</row>

<row>

<Mat_ID>123<Mat_ID>

<Desc><text</Desc>

<uom>XY</uom>

<plant>DE</plant>

<org>ZX</org>

</row>

</Material>

Target Structure

<Material>

<row> ---> 1....unbounded

<Mat_ID>123<Mat_ID>

<Desc><text</Desc>

<uomdata> ---> 0 ----unbounded

<uom>EA</uom>

<uomdata>

<uomdata>

<uom>ST</uom>

</uomdata>

<uomdata>

<uom>XY</uom>

</uomdata>

<plantdata> ----> 0 ----unbounded

<plant>AB</plant>

</plantdata>

<plantdata>

<plant>CD</plant>

</plantdata>

<plant>DE</plant>

</plantdata>

<orgdata> ----> 0 ----unbounded

<org>XY</org>

</orgdata>

<orgdata>

<org>FG</org>

</orgdata>

<orgdata>

<org>ZX</org>

</orgdata>

</row>

</Material>

How do I do message mapping (preferably graphical mapping) to achieve the target structure. The values of each elements are manipulated for easiness. There are more than one fields under each node in real scenario. Please let me know

thx

mike