<?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: Length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757009#M903825</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;where do we need to pass this please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; layout-colwidth_optmize = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 09:18:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T09:18:13Z</dc:date>
    <item>
      <title>Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757007#M903823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an ALV report, while executing in background one of the field length is 40 but it is displaying till 15 only.&lt;/P&gt;&lt;P&gt;the field is ktext from aufk table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loc_count = loc_count + 1.&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'KTEXT'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-tabname = 'GT_LINE_ITEM1'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-seltext_l = 'Int Order Descr'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-outputlen = 40.&lt;/P&gt;&lt;P&gt;ls_fieldcat-col_pos = loc_count.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcat TO gt_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how to get field length as 40 while executing in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757007#M903823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757008#M903824</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 layout-colwidth_optmize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757008#M903824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757009#M903825</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;where do we need to pass this please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; layout-colwidth_optmize = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757009#M903825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757010#M903826</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;like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPE-POOLS SLIS.
DATA:LAYOUT TYPE slis_layout_alv.

layout-colwidth_optimize = 'X'.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
 EXPORTING
   I_CALLBACK_PROGRAM             = SY-REPID
   IS_LAYOUT                      = LAYOUT
   IT_FIELDCAT                    = FCAT
  TABLES
    T_OUTTAB                       = ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757010#M903826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757011#M903827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use databse tabname instead of internal table as shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loc_count = loc_count + 1.&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = 'KTEXT'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-tabname = 'AUFK'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-seltext_l = 'Int Order Descr'.&lt;/P&gt;&lt;P&gt;ls_fieldcat-outputlen = 40.&lt;/P&gt;&lt;P&gt;ls_fieldcat-col_pos = loc_count.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcat TO gt_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR ls_fieldcat.&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;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/3757011#M903827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:22:48Z</dc:date>
    </item>
  </channel>
</rss>

