<?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 Implementing in code the same as Settings -&amp;gt; Columns -&amp;gt; Optimize Width in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261356#M1016928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way I can code the field catalog form (one of its parameters, maybe ? although I didn't find a suitable one...) so the ALV is displayed like if I went over Settings -&amp;gt; Columns -&amp;gt; Optimize Width ? In other words, displaying all the columns with their proper medium/long texts (according to what I choose), without having to adjust the column widths, whenever the DDIC definition, for the given data element, doesn't suffice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 10:09:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-07T10:09:57Z</dc:date>
    <item>
      <title>Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261356#M1016928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way I can code the field catalog form (one of its parameters, maybe ? although I didn't find a suitable one...) so the ALV is displayed like if I went over Settings -&amp;gt; Columns -&amp;gt; Optimize Width ? In other words, displaying all the columns with their proper medium/long texts (according to what I choose), without having to adjust the column widths, whenever the DDIC definition, for the given data element, doesn't suffice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261356#M1016928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261357#M1016929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well if you are talking of an ALV you should look in the structure Layout not in the fieldcat.&lt;/P&gt;&lt;P&gt;there you can find your desired parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261357#M1016929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261358#M1016930</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;u can make use of there fields &lt;/P&gt;&lt;P&gt;         OUTPUTLEN         &lt;/P&gt;&lt;P&gt;         OFFSET         &lt;/P&gt;&lt;P&gt;         SELTEXT_L      &lt;/P&gt;&lt;P&gt;         SELTEXT_M      &lt;/P&gt;&lt;P&gt;         SELTEXT_S      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of FCAT.&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261358#M1016930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261359#M1016931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avaraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Layout of Exporting parameters, there is one option&lt;/P&gt;&lt;P&gt;'colwidth_optimize' pass 'X' to this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=14944109&amp;amp;messageID=5468942" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=14944109&amp;amp;messageID=5468942&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Have A Good Day&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261359#M1016931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261360#M1016932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;there is a field in layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using this no need to declare fieldcatalog length. it opts automatically optimum length for all column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261360#M1016932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261361#M1016933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before building fieldcatalog do follow below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data it_layout    type slis_layout_alv.    "Declare Globally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_layout-colwidth_optimize    = 'X'.&lt;/P&gt;&lt;P&gt;  it_layout-zebra                = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;  add 1 to col_pos.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-row_pos = 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = col_pos.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'SNO'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_l = 'S. No.'.&lt;/P&gt;&lt;P&gt;  append wa_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261361#M1016933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing in code the same as Settings -&gt; Columns -&gt; Optimize Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261362#M1016934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are talking about Normal ALV&lt;/P&gt;&lt;P&gt;you need to use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LAYOUT-COLWIDTH-OPTIMIZE .&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the  layout structure you need to pass it to  layout parameter of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are talking about ALV OO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LAYOUT-CWIDTH_OPT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implementing-in-code-the-same-as-settings-gt-columns-gt-optimize-width/m-p/4261362#M1016934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:17:51Z</dc:date>
    </item>
  </channel>
</rss>

