<?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 in alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525980#M848276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO fix the column length,&lt;/P&gt;&lt;P&gt;you need to select the field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gs_fieldcat-fieldname = 'ERDAT'&lt;/P&gt;&lt;P&gt;GS_FIELDCAT-OUTPUTLEN = '9'.&lt;/P&gt;&lt;P&gt;modify gt_fieldcat from gs_fieldcat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As though ERDAT length is 10 characters,but ot remove the blank spaces &lt;/P&gt;&lt;P&gt;give the outputlength to be 9 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will show only that length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 13:14:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T13:14:13Z</dc:date>
    <item>
      <title>column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525977#M848273</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;IS there a way to fix the width of ca loumns in ALV even while displaying vertical seperators,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarun Bahal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525977#M848273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525978#M848274</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;use it in Layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout-no_vline = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L.Velu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525978#M848274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525979#M848275</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; use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; this will adjust the output according to the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525979#M848275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525980#M848276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO fix the column length,&lt;/P&gt;&lt;P&gt;you need to select the field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gs_fieldcat-fieldname = 'ERDAT'&lt;/P&gt;&lt;P&gt;GS_FIELDCAT-OUTPUTLEN = '9'.&lt;/P&gt;&lt;P&gt;modify gt_fieldcat from gs_fieldcat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As though ERDAT length is 10 characters,but ot remove the blank spaces &lt;/P&gt;&lt;P&gt;give the outputlength to be 9 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will show only that length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525980#M848276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525981#M848277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with all these options ..............user can still change the column width manually...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarun Bahal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 14:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525981#M848277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T14:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525982#M848278</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;&lt;/P&gt;&lt;P&gt;there is no way to freeze column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can optimize its width but user can always change its width...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 10:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525982#M848278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: column width in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525983#M848279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to inform that it is possible to&lt;SPAN style="color: #333333; font-size: 12px;"&gt; fix the width of columns in ALV.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to create &lt;SPAN style="font-size: 13.3333px;"&gt;new &lt;/SPAN&gt;class &amp;lt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;lcl_my_grid &lt;/SPAN&gt;&amp;gt; inheriting&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt; from&amp;nbsp; cl_gui_alv_grid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;In this new class you should create method set_no_resize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;METHOD &lt;/SPAN&gt;set_no_resize&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;METHOD &lt;/SPAN&gt;me&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;-&amp;gt;&lt;/SPAN&gt;set_resize_cols&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error&amp;nbsp; &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;OTHERS &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Call this method&amp;nbsp; to prevent the user to change the column size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find more information here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/blogs/tricktresor/2016/03/28/tentactics--a-simple-puzzle-game" title="https://scn.sap.com/blogs/tricktresor/2016/03/28/tentactics--a-simple-puzzle-game"&gt;Tentactics - A Simple Puzzle Game | SCN&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 10:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-width-in-alv/m-p/3525983#M848279</guid>
      <dc:creator>former_member269694</dc:creator>
      <dc:date>2016-05-23T10:33:06Z</dc:date>
    </item>
  </channel>
</rss>

