Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to upload given XML file to SAP

$
0
0

Dear All,

 

please advice how do I upload XML file with below structure to SAP. I have used method import_from_file of class cl_xml_document and it returns error in parse_table.

 

<?xml version="1.0" encoding="WIN1251"?>

<object name="corr1">

                <field key="ctDate" value="27-11-2012" />

                <field key="ctMonth" value="11" />

                <field key="ctYear" value="2012" />

                <field key="ctCodeDep" value="Dep1" />

                <field key="ctCodeItem" value="Item1" />

                <field key="ctSumCorr" value="3500.00" />

                <field key="ctDescr" value="Comment" />

</object>

<object name="corr2">

                <field key="ctDate" value="27-11-2012" />

                <field key="ctMonth" value="11" />

                <field key="ctYear" value="2012" />

                <field key="ctCodeDep" value="Dep2" />

                <field key="ctCodeItem" value="Item2 " />

                <field key="ctSumCorr" value="603500.00" />

                <field key="ctDescr" value="Comment" />

</object>

<object name="corr3">

....

</object>

 

 

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>