<?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 to Excel with Column Header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251338#M1720857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aniket Zanzan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am downloading the excel from an ALV output.&lt;/P&gt;&lt;P&gt;What's wrong with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 01:39:14 GMT</pubDate>
    <dc:creator>ratana_pouy</dc:creator>
    <dc:date>2013-01-15T01:39:14Z</dc:date>
    <item>
      <title>Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251334#M1720853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop one report in SAP by using ABAP code, but i wonder, when i export as a excel file, it doesn't show the column header.&lt;/P&gt;&lt;P&gt;So, i do i do?&lt;/P&gt;&lt;P&gt;Please help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank, &lt;/P&gt;&lt;P&gt;Ratana, Cambodia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 04:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251334#M1720853</guid>
      <dc:creator>ratana_pouy</dc:creator>
      <dc:date>2013-01-14T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251335#M1720854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;R u using TOP OF PAGE? For header purpose.&lt;/P&gt;&lt;P&gt;check for related code &amp;amp; &lt;/P&gt;&lt;P&gt;Then check this thread for ur explanation.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/3160322" title="http://scn.sap.com/thread/3160322"&gt;http://scn.sap.com/thread/3160322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the link that will help u for Overview of EXCEL download.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/community/abap/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap" title="http://scn.sap.com/community/abap/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap"&gt;http://scn.sap.com/community/abap/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sap notes 1517329 also.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 04:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251335#M1720854</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-01-14T04:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251336#M1720855</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;Recently I wrote this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is for sending mail using cl_bcs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In "FORM mail_1_prep_3" I am sending csv file (compatible with excel) that is based on internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The heading in this csv file is based on the resut of cl_salv_ddic=&amp;gt;get_by_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 06:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251336#M1720855</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-01-14T06:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251337#M1720856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you downloading the excel from an ALV output or directly by using FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 08:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251337#M1720856</guid>
      <dc:creator>former_member491621</dc:creator>
      <dc:date>2013-01-14T08:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251338#M1720857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aniket Zanzan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am downloading the excel from an ALV output.&lt;/P&gt;&lt;P&gt;What's wrong with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 01:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251338#M1720857</guid>
      <dc:creator>ratana_pouy</dc:creator>
      <dc:date>2013-01-15T01:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251339#M1720858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Check dis Demo Program which is given by SAP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_08&lt;/P&gt;&lt;P&gt;BCALV_GRID_DEMO&lt;/P&gt;&lt;P&gt;BCALV_GRID_01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using OLE automation (download data in Excel with header)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RSDEMO01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 04:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251339#M1720858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-15T04:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251340#M1720859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing wrong in it. If the file has to be downloaded everytime the report executes, then maybe you could directly download it using an FM as you have the required data in an internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 07:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251340#M1720859</guid>
      <dc:creator>former_member491621</dc:creator>
      <dc:date>2013-01-15T07:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251341#M1720860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to thelink &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3160322"&gt;http://scn.sap.com/thread/3160322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tooshar Bendale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 08:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251341#M1720860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-15T08:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel with Column Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251342#M1720861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratana ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said u are using the ALV output for exporting the excel file.&lt;/P&gt;&lt;P&gt;Please use the below snippet.&lt;/P&gt;&lt;P&gt;I was having the same problem like you, when user export to excel. I fixed it by using :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_layo-colwidth_optimize = 'X'. &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;This&lt;/P&gt;&lt;P&gt;perform generate_fcat_reftab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using 'PRUEFLOS' 'T_INPUT' '' '' 'Inspection Lot' 0.&lt;/P&gt;&lt;P&gt;form generate_fcat_reftab&amp;nbsp; using&amp;nbsp;&amp;nbsp;&amp;nbsp; p_fieldname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_tabname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_ref_tabname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_ref_fieldname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_output_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_output_lenght.&lt;/P&gt;&lt;P&gt;clear w_fcat.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-fieldname = p_fieldname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-tabname&amp;nbsp;&amp;nbsp; = p_tabname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-ref_fieldname = p_ref_fieldname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-ref_tabname = p_ref_tabname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-seltext_s = p_output_text.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-seltext_m = p_output_text.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-seltext_l = p_output_text.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-outputlen = p_output_lenght.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_fcat-ddictxt = 'L'. &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;This&lt;/P&gt;&lt;P&gt;&amp;nbsp; append w_fcat to t_fcat.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope&amp;nbsp; : This will resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-with-column-header/m-p/9251342#M1720861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-17T10:18:33Z</dc:date>
    </item>
  </channel>
</rss>

