<?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 - auto width on data_changed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635064#M1864922</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;already tested with col_opt = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I found the solution - col_opt must be 'A'...sometimes it could be so easy &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 11:53:38 GMT</pubDate>
    <dc:creator>michael_fallenbchel</dc:creator>
    <dc:date>2014-09-25T11:53:38Z</dc:date>
    <item>
      <title>ALV - auto width on data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635062#M1864920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV, created with class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this ALV, I have a few input fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to "auto-resive" the cell width after maintaining data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - I have column material number.&lt;/P&gt;&lt;P&gt;When I enter a material here, next colum "Material text" will be filled (using "Data_changed").&lt;/P&gt;&lt;P&gt;Now this column material text should be auto resized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that? I have tried to set&amp;nbsp; cwidth_opt to X for the layout, but it's not working.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 11:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635062#M1864920</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2014-09-25T11:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - auto width on data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635063#M1864921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fieldcat:&amp;nbsp; --&amp;gt; ls_fieldcat-&lt;EM&gt;col_opt&lt;/EM&gt; = abap_true&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and:&lt;/P&gt;&lt;P&gt;call method g_alv-&amp;gt;get_frontend_fieldcatalog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_fieldcatalog = fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method g_alv--&amp;gt;set_frontend_fieldcatalog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_fieldcatalog = fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method g_alv-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_stable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = stbl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_soft_refresh = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 11:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635063#M1864921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-25T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - auto width on data_changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635064#M1864922</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;already tested with col_opt = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I found the solution - col_opt must be 'A'...sometimes it could be so easy &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 11:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-auto-width-on-data-changed/m-p/10635064#M1864922</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2014-09-25T11:53:38Z</dc:date>
    </item>
  </channel>
</rss>

