<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xml to sap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882474#M932984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Internal table which would have the same structure as in the excel file,so change the header(column wise) into rowwise.Then use FM.&lt;/P&gt;&lt;P&gt;Hope t vl work.f u hav any further help let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Mohandoss P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2008 15:43:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-26T15:43:42Z</dc:date>
    <item>
      <title>xml to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882473#M932983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I converted xml file to sap using some PARSE FM's.&lt;/P&gt;&lt;P&gt;But internal table data is stored in the format like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    filedname     value&lt;/P&gt;&lt;P&gt;    kunnr           afFff&lt;/P&gt;&lt;P&gt;    name1          afafa&lt;/P&gt;&lt;P&gt;    land1            us&lt;/P&gt;&lt;P&gt;     .                   .&lt;/P&gt;&lt;P&gt;     .                   .&lt;/P&gt;&lt;P&gt;     .                   .&lt;/P&gt;&lt;P&gt;so on.&lt;/P&gt;&lt;P&gt;instead of this format I want my internal table in the format&lt;/P&gt;&lt;P&gt;kunnr    name1     land1&lt;/P&gt;&lt;P&gt;aagag   dgagg       us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one give me some idea on this.&lt;/P&gt;&lt;P&gt;thanks inadvance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 13:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882473#M932983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T13:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: xml to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882474#M932984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Internal table which would have the same structure as in the excel file,so change the header(column wise) into rowwise.Then use FM.&lt;/P&gt;&lt;P&gt;Hope t vl work.f u hav any further help let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Mohandoss P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 15:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882474#M932984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T15:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: xml to sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882475#M932985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try the following program to convert form xml to sap rather u r FM :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data :response TYPE string.
Response is where u pass the xml file to it.

*FM converting the XML format to abap
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = response
IMPORTING
buffer = xml.

*FM converting XMl to readable format to a internal table.
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = xml
TABLES
xml_table = t_xml
return = return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward If Found Helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 16:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-sap/m-p/3882475#M932985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T16:31:51Z</dc:date>
    </item>
  </channel>
</rss>

