<?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 Data from Internal table to Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970524#M1603710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM 'MS_EXCEL_OLE_STANDARD_DAT' to get data from internal table data to Excel, but all the records of internal table will print in one line of Excel sheet. Please share your idea's on how to fix this to get in excel as many records as of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 04:55:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-23T04:55:18Z</dc:date>
    <item>
      <title>Data from Internal table to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970524#M1603710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM 'MS_EXCEL_OLE_STANDARD_DAT' to get data from internal table data to Excel, but all the records of internal table will print in one line of Excel sheet. Please share your idea's on how to fix this to get in excel as many records as of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 04:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970524#M1603710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T04:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Internal table to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970525#M1603711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my solution for your issue is ALV grid. SAP provides standard functionality you can export ALV grid into excel pattern. first of all you have to select data from your DB table(-s) and place the result into internal table  afterwards you have to output it into ALV grid then user can maintain the result which he got (delete, insert new rows change amount, text fields, sum columns, maintain layout and so on) or you could export ALV grid into ms:excel without possibility to see and maintain ALV grid via custom default layout variant (you have to set specific excel pattern as default. there is a tab strip for this propose). when you ve done all the correction you can export the result into excel by pressing button views-&amp;gt;Excel inplace and  vice versa -&amp;gt; choose your excel pattern or it will be done by the default variant. ALV grid exports tables header and item lines into excel (you can create additional work sheet with macros to retrieve, maintain and output final result). you have to import excel pattern executing BCALV_BDS_MAINTENANCE report via se38 transaction: check import templates radiobutton and create transport and execute again. now you will see the list of templates.  from this spot you can add new tamples or remove them. remember - Excel patterns has a strict structure you can find examples  via  oaer transaction class name ALVLAYOUTTEMPLATES class type OT and execute (this tcode is used for patterns maintenance). open sap_standard_template folder double click on the pattern and now you will see whole structure. thats all. it is very easy. it's very fast way to transfer data from ECC to ms:excel.&lt;/P&gt;&lt;P&gt;it is very efficient is we are talking about data transfer speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dez_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 05:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970525#M1603711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T05:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Internal table to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970526#M1603712</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;Why dont you use Gui_Download?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 05:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970526#M1603712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Internal table to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970527#M1603713</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;  Better use gui_download function module to download the internal table to excel sheet.&lt;/P&gt;&lt;P&gt;refer the link for example program for gui_donload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freesaptutorial.com/how-to-download-internal-table-to-excel-using-abap-gui_download/" target="test_blank"&gt;http://www.freesaptutorial.com/how-to-download-internal-table-to-excel-using-abap-gui_download/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 05:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970527#M1603713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T05:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Internal table to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970528#M1603714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Either you can try with GUI_DOWNLOAD or else try the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move all the data in the structure to a string seperated by cl_abap_char_utilities=&amp;gt;horizontal_tab.  Pass this table of strings to  'MS_EXCEL_OLE_STANDARD_DAT'.  See below for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
 concatenate itab-field1 itab-field-2 into wa_string separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.
append wa_string to ta_string.
endloop.

CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
  EXPORTING
    file_name                       = '\\excel.xls'  "Path and name
 TABLES
   data_tab                        =    ta_string&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 06:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-internal-table-to-excel/m-p/7970528#M1603714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T06:05:02Z</dc:date>
    </item>
  </channel>
</rss>

