<?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: Column Width Optimise not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558599#M1076033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is you use wrong atribute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this: gs_layout-CWIDTH_OPT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 17:05:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T17:05:45Z</dc:date>
    <item>
      <title>Column Width Optimise not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558597#M1076031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Columnwidth optimise is not working in my case. I know its very simple, just set lvc_s_layo-col_opt = 'X' in layout and pass it to grid in method set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surprisingly, when I open the layout of grid, it show checkbox 'Optimise Columns' checked and when I press 'ok ' it optimise the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;On module pool screen I have two ALV GRID (cl_gui_alv_grid) displayed by spitting the screen using splitter control (cl_gui_easy_splitter_container) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 15:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558597#M1076031</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-09-24T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Column Width Optimise not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558598#M1076032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pawan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try calling the REFRESH_TABLE_DISPLAY method after initially displaying the ALV. This should get around your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 16:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558598#M1076032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Column Width Optimise not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558599#M1076033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is you use wrong atribute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this: gs_layout-CWIDTH_OPT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 17:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558599#M1076033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Column Width Optimise not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558600#M1076034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip, I mentioned the wrong fieldname here (copied from fieldcat instead of layout), it was actually cwidth_opt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This particular ALV grid was getting data at runtime based on user interaction. After assigning the data I called method refresh_table_display and data is refreshed on screen, however the column were not optimised. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before refresh_table_display I called the method set_frontend_layout and this solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-optimise-not-working/m-p/4558600#M1076034</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-09-25T07:50:55Z</dc:date>
    </item>
  </channel>
</rss>

