<?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: down loading internal table to .csv file format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629421#M604414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to debugging then - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Click on the internal table.&lt;/P&gt;&lt;P&gt;2. Go to Menu GoTo&amp;gt;&amp;gt;Display Data Object&amp;gt;&amp;gt; Structure Editor.&lt;/P&gt;&lt;P&gt;3. Once the structure Editor opens , you can go to Menu System&amp;gt;&amp;gt;List&amp;gt;&amp;gt;Save and you can choose your extension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 13:29:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-08T13:29:18Z</dc:date>
    <item>
      <title>down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629420#M604413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;its urgent !&lt;/P&gt;&lt;P&gt;how can i down load internal table to .csv  file format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Babumiya Mohammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629420#M604413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629421#M604414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to debugging then - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Click on the internal table.&lt;/P&gt;&lt;P&gt;2. Go to Menu GoTo&amp;gt;&amp;gt;Display Data Object&amp;gt;&amp;gt; Structure Editor.&lt;/P&gt;&lt;P&gt;3. Once the structure Editor opens , you can go to Menu System&amp;gt;&amp;gt;List&amp;gt;&amp;gt;Save and you can choose your extension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629421#M604414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629422#M604415</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;The easiest way, if you enter to debugger mode, and click on table button, then click on the export to excel button.&lt;/P&gt;&lt;P&gt;Then save you excel as a CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working with SAP 4.7+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629422#M604415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629423#M604416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use GUI_DOWNLOAD functon module... the only thing is while specfying the file path give the extension as .csv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629423#M604416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629424#M604417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raje&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the function module as displayed below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CODEPAGE = 'xxx'&lt;/P&gt;&lt;P&gt;FILENAME = L_FILENAME&lt;/P&gt;&lt;P&gt;FILETYPE = 'CSV'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = I&amp;lt;YOUR INTERNAL TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 2&lt;/P&gt;&lt;P&gt;INVALID_FILESIZE = 3&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 4&lt;/P&gt;&lt;P&gt;NO_BATCH = 5&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 6&lt;/P&gt;&lt;P&gt;INVALID_TABLE_WIDTH = 7&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 8&lt;/P&gt;&lt;P&gt;CUSTOMER_ERROR = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&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;SKIP 1.&lt;/P&gt;&lt;P&gt;WRITE:/1 'File download failed. File directory and name:',&lt;/P&gt;&lt;P&gt;L_FILENAME.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;WRITE:/1 'File download successful. File directory and name:',&lt;/P&gt;&lt;P&gt;L_FILENAME.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use the function module SAP_CONVERT_TO_CSV_FORMAT or GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz award points if helpful,&lt;/P&gt;&lt;P&gt;Kiran .M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629424#M604417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: down loading internal table to .csv file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629425#M604418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Downloading a table with CSV format means fields are seperated by Comma.&lt;/P&gt;&lt;P&gt;For this concatenate all the table fields in an string field SEPARATED by Comma.&lt;/P&gt;&lt;P&gt;Condense it and download it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_csv occurs 0,&lt;/P&gt;&lt;P&gt;        text(1000)  type c,&lt;/P&gt;&lt;P&gt;        end of t_csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate itab-fld1 itab-fld2 ......into t_csv-text separated by ','.&lt;/P&gt;&lt;P&gt;condense t_csv&lt;/P&gt;&lt;P&gt;append t_csv.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now download t_csv with extension .CSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard FM has a hard coded ';' in it so it will not be CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-loading-internal-table-to-csv-file-format/m-p/2629425#M604418</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-08-08T13:38:41Z</dc:date>
    </item>
  </channel>
</rss>

