<?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: Optimise ALV header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755317#M1583053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone, for your valuable inputs. However, I am creating the ALV using classes, so could you please give me suggestions for the same instead of 'REUSE_ALV_GRID_DISPLAY'.. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I fix the column width, and if in the future the data exceeds those many characters, I shall have problems right? And also to point out, if I set the optimize field and after optimization, the column is fit for 'short' length, but my column header exceeds 10 characters, the ALV will display the corresponding short field level maintained in the data dictionary instead of the medium/long text I pass through my program right? None of the above two cases are desirable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there a way for me to optimize the column width to my header length if the data is shorter than the header or to the data if it is longer than the header?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 14:39:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-15T14:39:05Z</dc:date>
    <item>
      <title>Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755312#M1583048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way for me to optimize the ALV columns in such a way that the length is picked as the larger of either the long header that I provide through my program or the column content?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the header is 'Employee Name' and the entry is 'Dave', I should be able to see the entire header 'Employee Name' for that column. Conversely, if the heading is 'Employee Name' but the entry is 'Leonardo daVinci' the column should optimize itself to fit the entire entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Alpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755312#M1583048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755313#M1583049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While designing the layout for your ALV , Design it as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   gs_layout     TYPE slis_layout_alv.&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;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;.............................&lt;/P&gt;&lt;P&gt;.............................&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program      = l_repid&lt;/P&gt;&lt;P&gt;        is_layout               = gs_layout         " Use here&lt;/P&gt;&lt;P&gt;        it_fieldcat             = gt_fieldcat&lt;/P&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;P&gt;        it_events               = gt_events[]&lt;/P&gt;&lt;P&gt;        it_sort                 = lt_sort&lt;/P&gt;&lt;P&gt;        i_callback_user_command = 'PROCESS_USER_COMMAND'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = lt_display&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error           = 1&lt;/P&gt;&lt;P&gt;        OTHERS                  = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take care of the column width according to the value length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755313#M1583049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755314#M1583050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use column optimize option which is part of the field catalogue properties.&lt;/P&gt;&lt;P&gt;use below code for column header optimize&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM field_catalog . &lt;/P&gt;&lt;P&gt;DEFINE fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_fcat.&lt;/P&gt;&lt;P&gt;    wa_fcat-fieldname   = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    wa_fcat-outputlen   = &amp;amp;2.&lt;/P&gt;&lt;P&gt;    wa_fcat-COL_OPT = &amp;amp;3.&lt;/P&gt;&lt;P&gt;    append wa_fcat to fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcat : 'MATNR' '18' 'A'.&lt;/P&gt;&lt;P&gt;Endform.&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;Kunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755314#M1583050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755315#M1583051</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;You can do that using the &lt;STRONG&gt;colwidth_optimize = 'X'.&lt;/STRONG&gt;  in the layout internal table while passing it to the ALV FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755315#M1583051</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2011-03-15T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755316#M1583052</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;data : fs_field_cat    TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;fs_field_cat-outputlen =  '30'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755316#M1583052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755317#M1583053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone, for your valuable inputs. However, I am creating the ALV using classes, so could you please give me suggestions for the same instead of 'REUSE_ALV_GRID_DISPLAY'.. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I fix the column width, and if in the future the data exceeds those many characters, I shall have problems right? And also to point out, if I set the optimize field and after optimization, the column is fit for 'short' length, but my column header exceeds 10 characters, the ALV will display the corresponding short field level maintained in the data dictionary instead of the medium/long text I pass through my program right? None of the above two cases are desirable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there a way for me to optimize the column width to my header length if the data is shorter than the header or to the data if it is longer than the header?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755317#M1583053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755318#M1583054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont fix the column width, just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;layout-cwidth_opt = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755318#M1583054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755319#M1583055</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;don't use column width optimise but try this when creating your field catalogue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-reptext_ddic = text-001                "text-001 contains Employee Information&lt;/P&gt;&lt;P&gt;ls_fieldcat--outputlen = STRLEN( text-001 )  " This will calculate the length of the header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this work for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 15:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755319#M1583055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755320#M1583056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way you can accomplish this is by passing 'X' to the parameter - Layout-colwidth_optimize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Guru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 08:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755320#M1583056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-17T08:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755321#M1583057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;data&lt;/SPAN&gt;: alv &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; cl_salv_table,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_columns &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; cl_salv_table=&amp;gt;factory( &lt;SPAN class="L1S52"&gt;IMPORTING&lt;/SPAN&gt; r_salv_table = alv&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; &lt;SPAN class="L1S52"&gt;CHANGING&lt;/SPAN&gt;&amp;nbsp; t_table&amp;nbsp;&amp;nbsp; = it_f ).&amp;nbsp; --&amp;gt; internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lr_columns = alv-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; lr_columns-&amp;gt;set_optimize( &lt;SPAN class="L1S33"&gt;'X'&lt;/SPAN&gt; ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; alv-&amp;gt;display( ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 06:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755321#M1583057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T06:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755322#M1583058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;data&lt;/SPAN&gt;: alv &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO&lt;/SPAN&gt; cl_salv_table,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_columns &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO&lt;/SPAN&gt; cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;cl_salv_table=&amp;gt;factory( &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IMPORTING&lt;/SPAN&gt; r_salv_table = alv&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;CHANGING&lt;/SPAN&gt;&amp;nbsp; t_table&amp;nbsp;&amp;nbsp; = it_f ).&amp;nbsp; --&amp;gt; internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;lr_columns = alv-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;lr_columns-&amp;gt;set_optimize( &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'X'&lt;/SPAN&gt; ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;alv-&amp;gt;display( ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 06:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755322#M1583058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Optimise ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755323#M1583059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;data&lt;/SPAN&gt;: alv &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO&lt;/SPAN&gt; cl_salv_table,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_columns &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO&lt;/SPAN&gt; cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;cl_salv_table=&amp;gt;factory( &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IMPORTING&lt;/SPAN&gt; r_salv_table = alv&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;CHANGING&lt;/SPAN&gt;&amp;nbsp; t_table&amp;nbsp;&amp;nbsp; = it_f ).&amp;nbsp; --&amp;gt; internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;lr_columns = alv-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;lr_columns-&amp;gt;set_optimize( &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'X'&lt;/SPAN&gt; ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;alv-&amp;gt;display( ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 21:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimise-alv-header/m-p/7755323#M1583059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-21T21:38:55Z</dc:date>
    </item>
  </channel>
</rss>

