<?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: Parsing XML files from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692489#M1293410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i have mentioned clearly above that i am reading from the Application server and not from the presentation server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use GUI_UPLOAD for that my dear friend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 06:58:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T06:58:27Z</dc:date>
    <item>
      <title>Parsing XML files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692487#M1293408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to read  an XML file from the application server. This can be done using OPEN DATASET in BINARY MODE and reading into internal table of type binary data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But inorder to parse the document using the iXML library, i need to pass the filesize of the XML file that is read into internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to calculate this filesize ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692487#M1293408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692488#M1293409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose you could use the standard function module GUI_UPLOAD. This would give you the contents of the file in an internal table and also the size of the file. You could use this to create the istream to parse the xml document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Ramneek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692488#M1293409</guid>
      <dc:creator>Ramneek</dc:creator>
      <dc:date>2009-06-04T06:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692489#M1293410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i have mentioned clearly above that i am reading from the Application server and not from the presentation server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use GUI_UPLOAD for that my dear friend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692489#M1293410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692490#M1293411</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;Check the FM : /SAPDMC/LSM_F4_SERVER_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this FM , subroutine below exists.The main program for routine is /SAPDMC/LLSMW_AUX_020F02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this routine from your program. You will get the length in bytes from the field len of table pt_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  begin of gs_file,
    directory(75) type c,              " name of directory.
                                       " (possibly truncated.)
    name(75)    type c,                " name of entry.
                                       " (possibly truncated.)
    type(10)    type c,                " type of entry: directory, file
    *len(8)      type p,                " length in bytes*
    owner(8)    type c,                " owner of the entry
    mtime(6)    type p,                " last modification date,
                                       " seconds since 1970
    mode(9)     type c,                " like "rwx-r-x--x":
                                       " protection mode
    errno(3)    type c,
    errmsg(40)  type c,
    mod_date    type d,
    mod_time(8) type c,                " hh:mm:ss
    subrc like sy-subrc,
end of gs_file.

DATA : pt_file LIKE TABLE OF gs_file.

DATa : p_ok.


  PERFORM /sapdmc/llsmw_aux_020f02(directory_contents_get)
  TABLES   pt_file
                            USING    '/TMP' ""!!! Here is your filepath
                                     '*'
                            CHANGING p_ok&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 11:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parsing-xml-files-from-application-server/m-p/5692490#M1293411</guid>
      <dc:creator>huseyindereli</dc:creator>
      <dc:date>2009-07-24T11:19:07Z</dc:date>
    </item>
  </channel>
</rss>

