Skip to Content
0
Former Member
Mar 11, 2015 at 10:42 AM

SAP MII Build Complex XML Structure

163 Views

Hi All,

I have a requirement in which I have to fetch data from multiple queries and build a xml output.

I m able to execute queries, put repeater on them, and able to trace the results.

But now, I want to build an xml out of this and show it as transaction output. I used SAP MII XML Output Actions, but could not succeed.

Posting a sample xml as required in output.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<xmii:pos xmlns:xmii="http://www.abc.com/test">

<po>

<ID>70001187</ID>

<PlantCode>3100</PlantCode>

<Code>Scheduled</Code>

<operations>

<operation>

<OperationID>0010</OperationID>

<Code>Completed</Code>

<PONum>70001187</PONum>

<SegmentID>86</SegmentID>

</operation>

</operations>

</po>

</xmii:pos>

Please help me as to how can I build this XML. I m using SAP MII 14.

Thanks

N G