<?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: Problem while exporting ALV column header to excel sheet. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964214#M1338128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to view the ALV column header in the ALV by expanding the column. The problem doesn't lie here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exporting the ALV grid to excel sheet, the individual column header text is getting truncated in the excel sheet (And not in the grid itself).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2009 06:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-10T06:59:28Z</dc:date>
    <item>
      <title>Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964212#M1338126</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 am able to export an ALV grid details to an excel sheet. But the ALV column headers when exported to excel sheet are getting truncated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: if my column header in ALV grid is displayed as 'Material' then the column header in excel sheet is 'Mater' only. Remaining portion is getting truncated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I view the entire column header text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 06:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964212#M1338126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T06:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964213#M1338127</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;Just expand the column width in the excel, you will be able to see the entire column description.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 06:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964213#M1338127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T06:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964214#M1338128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to view the ALV column header in the ALV by expanding the column. The problem doesn't lie here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exporting the ALV grid to excel sheet, the individual column header text is getting truncated in the excel sheet (And not in the grid itself).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 06:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964214#M1338128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T06:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964215#M1338129</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;Well i asked you to expand the column width in the excel after exporting the ALV to the excel. What you mean by trunctated? Is "Material" is only being displayed as "Mater" within column width or the value getting exported itself is 'Mater"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964215#M1338129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T07:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964216#M1338130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have expanded the column width in excel but the result is the same. Unable to view the complete column header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 09:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964216#M1338130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T09:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964217#M1338131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following blogs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/alvaro.tejadagalindo/blog/2009/02/05/excel-ole-and-abap--create-fancy-reports&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 11:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964217#M1338131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964218#M1338132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 09:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964218#M1338132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T09:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964219#M1338133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 09:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964219#M1338133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T09:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964220#M1338134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem with you, when user export to excel. I fixed it by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&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

perform generate_fcat_reftab
    using 'PRUEFLOS' 'T_INPUT' '' '' 'Inspection Lot' 0.

form generate_fcat_reftab  using    p_fieldname
                                    p_tabname
                                    p_ref_tabname
                                    p_ref_fieldname
                                    p_output_text
                                    p_output_lenght.
  clear w_fcat.
  w_fcat-fieldname = p_fieldname.
  w_fcat-tabname   = p_tabname.
  w_fcat-ref_fieldname = p_ref_fieldname.
  w_fcat-ref_tabname = p_ref_tabname.
  w_fcat-seltext_s = p_output_text.
  w_fcat-seltext_m = p_output_text.
  w_fcat-seltext_l = p_output_text.
  w_fcat-outputlen = p_output_lenght.
  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
  append w_fcat to t_fcat.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 05:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964220#M1338134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-20T05:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964221#M1338135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pen-ek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was facing the same issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this&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;&lt;/P&gt;&lt;P&gt;and this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;&lt;/P&gt;&lt;P&gt;It solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 08:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964221#M1338135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-14T08:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964222#M1338136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right. It happens in excel. For that you need to pass the refrence field and refrence table to the fieldcat and also small medium and large text. This will surely solve your problem.&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;&lt;/P&gt;&lt;P&gt;Regards -&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 08:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964222#M1338136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-14T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV column header to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964223#M1338137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not pass header name in seltext_s and seltext_m in the fieldcatalog. Pass it only in seltext_l.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 10:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-column-header-to-excel-sheet/m-p/5964223#M1338137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T10:24:25Z</dc:date>
    </item>
  </channel>
</rss>

