<?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 ALV Column Size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118545#M984582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im trying since hours now. How to get a column ov an ALV Grid to the size of the biggest entry, or to for example to show 400 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this allready:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: alv_layout TYPE lvc_s_layo.

alv-layout-cwidth_opt = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: alv_fcat TYPE lvc_t_fcat.

LOOP AT ch_alv_fcat ASSIGNING &amp;lt;curr_field&amp;gt;.
CASE &amp;lt;curr_field&amp;gt;-fieldname.

WHEN 'bla'.
  &amp;lt;curr_field&amp;gt;-outputlen = 300.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is an Char200.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 11:16:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T11:16:47Z</dc:date>
    <item>
      <title>ALV Column Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118545#M984582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im trying since hours now. How to get a column ov an ALV Grid to the size of the biggest entry, or to for example to show 400 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this allready:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: alv_layout TYPE lvc_s_layo.

alv-layout-cwidth_opt = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: alv_fcat TYPE lvc_t_fcat.

LOOP AT ch_alv_fcat ASSIGNING &amp;lt;curr_field&amp;gt;.
CASE &amp;lt;curr_field&amp;gt;-fieldname.

WHEN 'bla'.
  &amp;lt;curr_field&amp;gt;-outputlen = 300.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is an Char200.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 11:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118545#M984582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118546#M984583</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;Try using UPPER CASE letters for field names and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'BLA'.&lt;/P&gt;&lt;P&gt;  &amp;lt;curr_field&amp;gt;-outputlen = 300.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 12:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118546#M984583</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-07-08T12:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118547#M984584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was to stupid i had a spelling problem :-/. The WHEN '...' was wrong so the outputlen was never set &lt;STRONG&gt;stupid&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 12:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size/m-p/4118547#M984584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T12:14:19Z</dc:date>
    </item>
  </channel>
</rss>

