<?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 Reg: Upload XML data from URL into SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788361#M911366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to upload XML data from a web url into SAP.&lt;/P&gt;&lt;P&gt;Can anyone help me on this with sample code?&lt;/P&gt;&lt;P&gt;I need to upload data from an xml file that is in a web page into SAP internal table.&lt;/P&gt;&lt;P&gt;Kindly help at the earliest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2008 11:09:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-08T11:09:09Z</dc:date>
    <item>
      <title>Reg: Upload XML data from URL into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788361#M911366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to upload XML data from a web url into SAP.&lt;/P&gt;&lt;P&gt;Can anyone help me on this with sample code?&lt;/P&gt;&lt;P&gt;I need to upload data from an xml file that is in a web page into SAP internal table.&lt;/P&gt;&lt;P&gt;Kindly help at the earliest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 11:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788361#M911366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Upload XML data from URL into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788362#M911367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a SAP XI (Exchange Infrasctructure)? If so, it's easy, just create an inbound proxy, using a XSD file, containing the structure of the XML files you'll get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you must create a transformation (XSLT) and in your report, use comand CALL transformation, and that will convert the content to an internal table in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 11:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788362#M911367</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-08T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Upload XML data from URL into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788363#M911368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you send me a sample code for the second one you have said.&lt;/P&gt;&lt;P&gt;I need to upload an xml file using web url. I need a sample code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 11:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788363#M911368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T11:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Upload XML data from URL into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788364#M911369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all you must create a transformation (transaction STRANS or SE80). There you'll get some examples. I must say that it's not easy the first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, the ABAP part it's simple, just use a statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSFORMATION (your transformation)
   SOURCE XML (a structure with your xml) 
   RESULT result = (your internal table).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works in the oposite way, i.e, transform internal table in a XML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 13:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788364#M911369</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-08T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Upload XML data from URL into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788365#M911370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data: http_client type ref to if_http_client .
data: xml_out type string  .

call method cl_http_client=&amp;gt;create_by_url
    exporting
      url           = 'http://www.abc.com/rss.xml'
    importing
      client        = http_client.

http_client-&amp;gt;send( ).
  http_client-&amp;gt;receive( ).
  clear xml_out .
  xml_out = http_client-&amp;gt;response-&amp;gt;get_cdata( ).
  http_client-&amp;gt;close( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you have to use your custom XSLT program to convert the xml_out into internal table&lt;/P&gt;&lt;P&gt; or alternatively you can use FM SMUM_XML_PARSE to read the name value pairs from the xml&lt;/P&gt;&lt;P&gt;and then map them to your itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 06:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-upload-xml-data-from-url-into-sap/m-p/3788365#M911370</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-11T06:18:20Z</dc:date>
    </item>
  </channel>
</rss>

