<?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 display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464237#M218794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought that it would have worked as you have it coded.  But try to set the initial lenghth as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;F gs_fieldcat-fieldname = 'ZZ_TXT50'.
 gs_fieldcat-outputlen = '20'.
&amp;lt;b&amp;gt; gs_fieldcat-intlen    = '50'.&amp;lt;/b&amp;gt; 
 MODIFY gt_fieldcat FROM gs_fieldcat.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 17:11:56 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-07T17:11:56Z</dc:date>
    <item>
      <title>ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464233#M218790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to display the GL descirption to 20 characters, when the user drag right side , it should display the entire GL Description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_fieldcatalog_fx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_tmp_tabix LIKE sy-tfill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_structure_name       = 'ZGLS_FX_ENTRIES'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = gt_fieldcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      program_error          = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_fieldcat INTO gs_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gs_fieldcat-fieldname = 'ZZ_BELNR' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'GJAHR' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'ZZ_USNAM' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'BUDAT' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'VBUND' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'ZZBS_ACCT' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'ZZ_PPRCT' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'PROJK' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gs_fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY gt_fieldcat FROM gs_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gs_fieldcat-fieldname = 'ZZAMT_DC' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'ZZ_DMBTR' OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       gs_fieldcat-fieldname = 'ZZAMT_GCC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gs_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY gt_fieldcat FROM gs_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gs_fieldcat-fieldname = 'ZZ_TXT50'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;b&amp;gt;gs_fieldcat-outputlen = '20'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY gt_fieldcat FROM gs_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if gs_fieldcat-fieldname = 'ZZ_SGTXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gs_fieldcat-outputlen = '30'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY gt_fieldcat FROM gs_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_fieldcat LINES sy-tfill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_tmp_tabix = sy-tfill + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE lv_tmp_tabix TO gv_col_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "build_fieldcatalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Text : Build the layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_layout_fx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_layout-no_input = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464233#M218790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T16:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464234#M218791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have given the output legnth as 20, is it not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464234#M218791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T16:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464235#M218792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working can u please how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464235#M218792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464236#M218793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;try by commenting  this line&lt;/P&gt;&lt;P&gt;gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 17:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464236#M218793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464237#M218794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought that it would have worked as you have it coded.  But try to set the initial lenghth as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;F gs_fieldcat-fieldname = 'ZZ_TXT50'.
 gs_fieldcat-outputlen = '20'.
&amp;lt;b&amp;gt; gs_fieldcat-intlen    = '50'.&amp;lt;/b&amp;gt; 
 MODIFY gt_fieldcat FROM gs_fieldcat.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 17:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/1464237#M218794</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-07T17:11:56Z</dc:date>
    </item>
  </channel>
</rss>

