<?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: Export data to Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657290#M880992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.
 
  &lt;PRE&gt;&lt;CODE&gt;DATA: t100_lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.

PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.
SELECT * FROM t001
  INTO TABLE t100_lines.

CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
  EXPORTING
    i_filename     = p_file
  TABLES
    i_tab_sap_data = t100_lines.&lt;/CODE&gt;&lt;/PRE&gt;

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 10:25:49 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-04-09T10:25:49Z</dc:date>
    <item>
      <title>Export data to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657287#M880989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to export data into local file. The line of internal table is greater than 1023 characters. I have used List-&amp;gt;Export-&amp;gt;Local File.... But when I open that file in excel the data is wrapped (here with wrapping I mean the fields of the internal table comes in two rows of the excel sheet and so is the data). I want my record to be in a single row in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhaskar Tripathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657287#M880989</guid>
      <dc:creator>Bhaskar_Tripath</dc:creator>
      <dc:date>2008-04-09T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657288#M880990</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;Try downloading into a flat file and then open it in excel. Check if this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddhesh S.Tawate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657288#M880990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657289#M880991</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;try with below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Function moduleSCMS_STRING_TO_FTEXT to split lengthy strings into lines to desired lengths.&lt;/P&gt;&lt;P&gt;You can declare flext_tab with only one field of desired length.&lt;/P&gt;&lt;P&gt;Write the contents of this internal table by looping ... &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;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657289#M880991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657290#M880992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.
 
  &lt;PRE&gt;&lt;CODE&gt;DATA: t100_lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.

PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.
SELECT * FROM t001
  INTO TABLE t100_lines.

CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
  EXPORTING
    i_filename     = p_file
  TABLES
    i_tab_sap_data = t100_lines.&lt;/CODE&gt;&lt;/PRE&gt;

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel/m-p/3657290#M880992</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-09T10:25:49Z</dc:date>
    </item>
  </channel>
</rss>

