<?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: ALV column width in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-width/m-p/12523763#M2004933</link>
    <description>&lt;P&gt;If you don't want to calculate automatically the width of ALL columns, I think you need to keep &lt;STRONG&gt;cwidth_opt = ' '&lt;/STRONG&gt;, and set one by one col_opt = 'A' or 'X' (depends if you want to reset column width after soft refresh) for each column.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 20:29:48 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-02-22T20:29:48Z</dc:date>
    <item>
      <title>ALV column width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-width/m-p/12523762#M2004932</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;
  &lt;P&gt;i am using class cl_gui_alv_grid for displaying an ALV. I have set layout parameter cwidth_opt = 'X'. So far, so good, BUT: for specific columns i want to set an fixed length, e.h. 50 for a text, field, etc... So what have i done in fieldcatalog. I set the outputlen to 50 and the field col_opt to blank. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2024891-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But the result is that the field has NO length of 50 and it has column is still optimized (see yellow marked field):&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2024892-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Any idea for this behaviour ? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;
  &lt;P&gt;br Martin &lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 10:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-width/m-p/12523762#M2004932</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-02-22T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV column width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-width/m-p/12523763#M2004933</link>
      <description>&lt;P&gt;If you don't want to calculate automatically the width of ALL columns, I think you need to keep &lt;STRONG&gt;cwidth_opt = ' '&lt;/STRONG&gt;, and set one by one col_opt = 'A' or 'X' (depends if you want to reset column width after soft refresh) for each column.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 20:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-width/m-p/12523763#M2004933</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-02-22T20:29:48Z</dc:date>
    </item>
  </channel>
</rss>

