Hi All,
Scenario: txt file to XML. SAP PI 7.11
Solution in place: Using FCC in FTP channel to convert the txt structure into XML
Problem: Now as all the FTP channels are to be replaced by sFTP channels.
I need to convert the txt to xml using the Message Transformation Bean. I am able to get the structure and all the foreign characters correctly, main problem is I am unable to remove the Recordset which comes in the source message.
existing structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Sales xmlns:ns0="http://namespace">
<Header>
<ABC/>
<DEF>
</Header>
<Detail>
<UVW>
<XYZ>
</Detail>
</Sales>
But the Present structure comes up as below, because of <Recordset> I am unable to use the existing mapping. Is there any way to attain this?
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Sales xmlns:ns0="http://namespace">
<Recordset>
<Header>
<ABC/>
<DEF>
</Header>
<Detail>
<UVW>
<XYZ>
</Detail>
</Recordset>
</Sales>
Modules used as follows