<?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 optimizing ALV columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655085#M1286582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have designed an ALV report using cl_salv_table. I want to be able to optimize the column length. For e.g. MATNR usually returns no more than 10 characters for material number but the column length is always set to 20 as that is the length for matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the code below but it does not seem to work. I can set output length set_output_length to 10 but that will then disqualify &amp;gt; 10 material numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lr_column-&amp;gt;set_optimized( 'X' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 17:44:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T17:44:25Z</dc:date>
    <item>
      <title>optimizing ALV columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655085#M1286582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have designed an ALV report using cl_salv_table. I want to be able to optimize the column length. For e.g. MATNR usually returns no more than 10 characters for material number but the column length is always set to 20 as that is the length for matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the code below but it does not seem to work. I can set output length set_output_length to 10 but that will then disqualify &amp;gt; 10 material numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lr_column-&amp;gt;set_optimized( 'X' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 17:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655085#M1286582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing ALV columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655086#M1286583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try calling the SET_OPTIMIZE method from the COLUMN Table object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: lr_columns type ref to cl_salv_columns_table.

  lr_columns = gr_table-&amp;gt;get_columns( ).
  lr_columns-&amp;gt;set_optimize( gc_true ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 18:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655086#M1286583</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-05-14T18:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing ALV columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655087#M1286584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 18:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-alv-columns/m-p/5655087#M1286584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T18:12:37Z</dc:date>
    </item>
  </channel>
</rss>

