<?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: Upload XML file from server to itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308662#M1636302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Abap knowledge are very limited.&lt;/P&gt;&lt;P&gt;Do you have time to write me a little source code with a practice example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am crazy about implementing that functions about the table types and how fill from server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: DIEGO_GT on Nov 22, 2011 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 11:09:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-22T11:09:40Z</dc:date>
    <item>
      <title>Upload XML file from server to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308660#M1636300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After failed to get a answer about download data from xml file in server to my itab, and searching and searching in hundred of post and threads i try my own solution for this issue.&lt;/P&gt;&lt;P&gt;I read the file with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this case the result is a table filled with register type string like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; #&amp;lt;label&amp;gt;22222&amp;lt;/label&amp;gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I need a table with this kind of value (example):&lt;/P&gt;&lt;P&gt;label   | 22222&lt;/P&gt;&lt;P&gt;label2 | John&lt;/P&gt;&lt;P&gt;label3 | Smith&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore i have to parse the data of my table, i try with the FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TEXT_CONVERT_XML_TO_SAP &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But dont works for me,&lt;/P&gt;&lt;P&gt;I am too new in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for my report is very simple:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZPRUEBA_XML.

DATA: BEGIN OF TABLA OCCURS 1,
TEXTO(256) TYPE C,
END OF TABLA.

DATA: FICHERO LIKE RLGRAP-FILENAME.

OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC NE 0.
  WRITE:/ 'ERROR'.
ENDIF.
FREE TABLA.
DO.
  READ DATASET FICHERO INTO TABLA.
  IF SY-SUBRC NE 0.
    EXIT.
  ELSE.
    APPEND TABLA.
    WRITE: TABLA-TEXTO.
  ENDIF.
ENDDO.

CLOSE DATASET FICHERO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my ".xml" in the server is very simple too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;label&amp;gt;222222&amp;lt;/label&amp;gt;
&amp;lt;name&amp;gt;John&amp;lt;/name&amp;gt;
&amp;lt;street&amp;gt;Smith, 23, NY&amp;lt;/street&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308660#M1636300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T09:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upload XML file from server to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308661#M1636301</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;You could use a transformation to do that, or call FM 'TEXT_CONVERT_XML_TO_SAP'... you also have the class IF_IXML that should help you and a lot of threads on the subject, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1214006"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1354161"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="96971"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e66701fc-0d01-0010-9c9a-f8a36c4e87ba" target="test_blank"&gt;http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e66701fc-0d01-0010-9c9a-f8a36c4e87ba&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 10:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308661#M1636301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Upload XML file from server to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308662#M1636302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Abap knowledge are very limited.&lt;/P&gt;&lt;P&gt;Do you have time to write me a little source code with a practice example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am crazy about implementing that functions about the table types and how fill from server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: DIEGO_GT on Nov 22, 2011 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308662#M1636302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Upload XML file from server to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308663#M1636303</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;You have posted the same question few days back &lt;SPAN __jive_macro_name="message" id="10829010"&gt;&lt;/SPAN&gt;. An efficient search will give you the answer. Search in google first then into SDN &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[UPLOAD XML FILE FROM APPLICATION SERVER|http://abapreports.blogspot.com/2008/09/upload-xml-file-from-application-server.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-xml-file-from-server-to-itab/m-p/8308663#M1636303</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-11-22T11:18:00Z</dc:date>
    </item>
  </channel>
</rss>

