<?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: Save Internal table to disk!? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891023#M53411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Ryan has already suggested WS_DOWNLOAD AND GUI_DOWNLOAD, I would also recommend to use the method GUI_DOWNLOAD from the class CL_GUI_FRONTEND&lt;STRONG&gt;SERVICE&lt;/STRONG&gt; . Go to SE24, put the class name and you will find the various methods available. One of them is GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to use the PATTERN button in SE38, then click on ABAP 00, and there mention the name of the method(GUI_DOWNLOAD) , class name (CL_GUI_FRONTEND&lt;STRONG&gt;SERVICE&lt;/STRONG&gt;). It writes the code for you. All you now need to do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Mention the filename&lt;/P&gt;&lt;P&gt;b) Mention the filetype&lt;/P&gt;&lt;P&gt;c) Pass the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2005 08:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-24T08:29:19Z</dc:date>
    <item>
      <title>Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891019#M53407</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 have an Internal table in my program that I want to save to disk in some way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM or something for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 06:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891019#M53407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891020#M53408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use FM 'WS_DOWNLOAD' or 'GUI_DOWNLOAD' - the documentation inline should be simple enough to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ryan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 07:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891020#M53408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891021#M53409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By "disk" do you mean your local hard drive or is it the SAP Application Server that you are referring to ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 07:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891021#M53409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T07:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891022#M53410</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 have a abap report and now I want to save the the internal table to a file (static path).&lt;/P&gt;&lt;P&gt;No user input should be nessesary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX&lt;/P&gt;&lt;P&gt;In other programming languages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyInternalTAb.Save('&lt;BR /&gt;SERVER1\TMP\output.txt')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Howto in ABAP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Martin Andersson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 07:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891022#M53410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T07:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891023#M53411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Ryan has already suggested WS_DOWNLOAD AND GUI_DOWNLOAD, I would also recommend to use the method GUI_DOWNLOAD from the class CL_GUI_FRONTEND&lt;STRONG&gt;SERVICE&lt;/STRONG&gt; . Go to SE24, put the class name and you will find the various methods available. One of them is GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to use the PATTERN button in SE38, then click on ABAP 00, and there mention the name of the method(GUI_DOWNLOAD) , class name (CL_GUI_FRONTEND&lt;STRONG&gt;SERVICE&lt;/STRONG&gt;). It writes the code for you. All you now need to do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Mention the filename&lt;/P&gt;&lt;P&gt;b) Mention the filetype&lt;/P&gt;&lt;P&gt;c) Pass the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 08:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891023#M53411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891024#M53412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
     call function 'WS_DOWNLOAD'
       exporting
            filename                = cpath
                                      "c:tempoutput.txt
            filetype                = 'DAT' "tab-delimited
       tables
            data_tab                = itab
       exceptions
            file_open_error         = 1
            file_write_error        = 2
            invalid_filesize        = 3
            invalid_type            = 4
            no_batch                = 5
            unknown_error           = 6
            invalid_table_width     = 7
            gui_refuse_filetransfer = 8
            customer_error          = 9
            others                  = 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ryan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 08:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891024#M53412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save Internal table to disk!?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891025#M53413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A TRANSFER can also be used. You do a transfer of a field, a string, or a structure. You must always transfer internal tables line by line, for example, using a LOOP construction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 08:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-internal-table-to-disk/m-p/891025#M53413</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2005-02-24T08:53:01Z</dc:date>
    </item>
  </channel>
</rss>

