<?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 size changing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205339#M1204245</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 think, you need to increase or decrease the width of the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It cannot be changed dynamically .....&lt;/P&gt;&lt;P&gt;but what we can do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your itab, check all the records for that field's length&lt;/P&gt;&lt;P&gt;take the highest size and pass it to the fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if less width is there then the width of the column is less and if is very wide then the column will be wide&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;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 10:47:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T10:47:57Z</dc:date>
    <item>
      <title>ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205332#M1204238</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;How to change column size of ALV report during run time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205332#M1204238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205333#M1204239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:itlayout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;itlayout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205333#M1204239</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2009-02-12T10:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205334#M1204240</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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CWIDTH_OPT of lvc_c_layo structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt; w_lay TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_lay-cwidth_opt = 'X'.&lt;/P&gt;&lt;P&gt; CALL METHOD r_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_structure_name              = 'FS'&lt;/P&gt;&lt;P&gt;      is_layout                     = w_lay&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = itab&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = t_cat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205334#M1204240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205335#M1204241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nausal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the output field length passed during field catalog table build code.&lt;/P&gt;&lt;P&gt;However you should NOT make colwidth_optimize 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205335#M1204241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205336#M1204242</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 is_layout type slis_alv_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205336#M1204242</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-12T10:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205337#M1204243</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;check this link which contains sample code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1209206"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205337#M1204243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205338#M1204244</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;In your program for,&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;data :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;w_layout TYPE lvc_s_layo.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;pass X for,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;w_layout-cwidth_opt = 'X'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will change the size of your table columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205338#M1204244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205339#M1204245</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 think, you need to increase or decrease the width of the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It cannot be changed dynamically .....&lt;/P&gt;&lt;P&gt;but what we can do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your itab, check all the records for that field's length&lt;/P&gt;&lt;P&gt;take the highest size and pass it to the fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if less width is there then the width of the column is less and if is very wide then the column will be wide&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;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205339#M1204245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Column size changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205340#M1204246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 11:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-column-size-changing/m-p/5205340#M1204246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T11:34:08Z</dc:date>
    </item>
  </channel>
</rss>

