<?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 -&amp;gt; ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996578#M75410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is something wrong with your itab declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you declare the 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>Mon, 19 Sep 2005 10:18:37 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2005-09-19T10:18:37Z</dc:date>
    <item>
      <title>XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996566#M75398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody give me an idea as to how to read xml from an ABAP Program?&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2005 06:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996566#M75398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-17T06:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996567#M75399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want to read the XML file stored in the frontend to ABAP program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you want to do with the loaded XML? if you could explain this then we can come up with suggestions.&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>Sat, 17 Sep 2005 06:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996567#M75399</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-17T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996568#M75400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Durai,&lt;/P&gt;&lt;P&gt;I would like to know how to store the xml into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a dot net application where we download data from SAP and then send mails. We display the data within a HTML table. We found type out all the code(to create the table and display data) in ABAP store it in a string and then use SO_OBJECT_SEND to send email. Instead if we can store the file and read it into an internal table, then populate the SAP data and send the email, we thought it could be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advise.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2005 07:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996568#M75400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-17T07:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996569#M75401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;i&amp;gt;I would like to know how to store the xml into an internal table.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want to store the XML as just a string then just use GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to transform the loaded XML into a internal table of rows and columns the you need to  use &lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION key word. (search the forum there were solutions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second part of your explantaion is not clear to me.&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>Sat, 17 Sep 2005 07:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996569#M75401</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-17T07:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996570#M75402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , you can parse the XML using DOM, DOM is also supported in ABAP, there is a class CL_IXML, and other associated class. you can achieve your target by using them. &lt;/P&gt;&lt;P&gt;reference link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280d212d511d5991b00508b6b8b11/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280d212d511d5991b00508b6b8b11/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other way is through XLST. it is supported in ABAP from 4.7. you can create a XSLT, and read you XML, then CALL TRANSFORMATION to convert a XML into ABAP data structure.&lt;/P&gt;&lt;P&gt;reference link: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2005 07:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996570#M75402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-17T07:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996571#M75403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, if you want to restore content of XML into a internal table, read following link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="672077"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last reply of mine in this link will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2005 07:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996571#M75403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-17T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996572#M75404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Durai, Zhenglin,&lt;/P&gt;&lt;P&gt;Your inputs have been useful. I will explore this and get back. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2005 08:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996572#M75404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-17T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996573#M75405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whil I use GUI_UPLOAD, I get the following error 'Type conflict when calling a function module.    &lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following-&lt;/P&gt;&lt;P&gt;1. FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;2. FILETYPE                      = 'BIN'&lt;/P&gt;&lt;P&gt;3. FILETYPE                      = 'XML'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None seem to work. I used WS_FILENAME_GET to select the file, at selection-screen(using f4 help, I select the file and the path is stored in p_file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = p_file&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'BIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HAS_FIELD_SEPARATOR           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 06:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996573#M75405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T06:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996574#M75406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for xml files better use BIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your variable p_file has to be of type string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you find the answers helpful, reward them by clicking the radio button and if you feel the question is answered mark it answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 06:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996574#M75406</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996575#M75407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The type was BIN and p_file is of type c, still i get the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 08:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996575#M75407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T08:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996576#M75408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p_file  has to be type string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: p_file  type string.&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>Mon, 19 Sep 2005 08:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996576#M75408</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T08:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996577#M75409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durai,&lt;/P&gt;&lt;P&gt;That problem got sorted out, and i have assigned the points. thanks, but i am getting an error in the standard program saying 'Error in ASSIGN statement in program "SAPLSFES ".    &lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 09:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996577#M75409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996578#M75410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is something wrong with your itab declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you declare the 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>Mon, 19 Sep 2005 10:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996578#M75410</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T10:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996579#M75411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        CODE TYPE STRING,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996579#M75411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996580#M75412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;CODE TYPE &amp;lt;b&amp;gt;xSTRING&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;END OF 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>Mon, 19 Sep 2005 11:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996580#M75412</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T11:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996581#M75413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it Durai, still I get the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZVTN_XML_READ                                               *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZVTN_XML_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        CODE TYPE xSTRING,&lt;/P&gt;&lt;P&gt;      END OF ITAB,&lt;/P&gt;&lt;P&gt;      itabtemp like itab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;DATA param type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;*parameter p_file like param obligatory.&lt;/P&gt;&lt;P&gt;parameter p_file like RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;perform read_file using p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;perform Uploadfile.&lt;/P&gt;&lt;P&gt;perform Displaydata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form read_file using p_p_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   DEF_FILENAME           = SPACE&lt;/P&gt;&lt;P&gt;   DEF_PATH               = p_file&lt;/P&gt;&lt;P&gt;   MASK                   = ',&lt;STRONG&gt;.&lt;/STRONG&gt;,&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;P&gt;   MODE                   = '0'&lt;/P&gt;&lt;P&gt;   TITLE                  = 'Choose File '&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILENAME               = p_p_file&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RC                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INV_WINSYS             = 1&lt;/P&gt;&lt;P&gt;   NO_BATCH               = 2&lt;/P&gt;&lt;P&gt;   SELECTION_CANCEL       = 3&lt;/P&gt;&lt;P&gt;   SELECTION_ERROR        = 4&lt;/P&gt;&lt;P&gt;   OTHERS                 = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form uploadfile.&lt;/P&gt;&lt;P&gt;param = p_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = param&lt;/P&gt;&lt;P&gt;    FILETYPE                      = 'BIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HAS_FIELD_SEPARATOR           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form Displaydata.&lt;/P&gt;&lt;P&gt;  write itab-code.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 11:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996581#M75413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T11:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: XML -&gt; ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996582#M75414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;couldnt figureout the issue. but i guess you dont have any problem if the uploaded content is in binary format or ASC format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make the following changes. (sorry for the inconvenience)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the itab to string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and file type to 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you still want to have it in BIN format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the program SXSLTDEMO_FLIGHTS &lt;/P&gt;&lt;P&gt;search for the code "&amp;lt;i&amp;gt;perform load_file  using i_path  changing srctab&amp;lt;/i&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see how the itab is built.&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>Mon, 19 Sep 2005 11:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-gt-abap/m-p/996582#M75414</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T11:52:51Z</dc:date>
    </item>
  </channel>
</rss>

