<?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: Fields Length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470118#M221069</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;if you are using 'REUSE_ALV_FIELDCATALOG_MERGE' to build the field catelog, then change the field length with below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_fieldcat into x_fieldcat.
 if x_fieldcat-fieldname = 'SMTP_ADDR'.
   x_fieldcat-OUTPUTLEN  = 20.
    modify it_fieldcat from x_fieldcat index sy-tabix.
   endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are building the fieldcatelog in your own way then use below code to change the field length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_fieldcat-FIELDNAME = 'SMTP_ADDR'.&lt;/P&gt;&lt;P&gt;it_fieldcat-KEY = 'X'.&lt;/P&gt;&lt;P&gt;it_fieldcat-OUTPUTLEN = '20'.&lt;/P&gt;&lt;P&gt;it_fieldcat-SELTEXT_L = 'E-Mail'.&lt;/P&gt;&lt;P&gt;APPEND it_fieldcat .&lt;/P&gt;&lt;P&gt;CLEAR it_fieldcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward Points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 15:45:21 GMT</pubDate>
    <dc:creator>Laxmana_Appana_</dc:creator>
    <dc:date>2006-09-04T15:45:21Z</dc:date>
    <item>
      <title>Fields Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470115#M221066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have pulled up the required e-mail field  from table ADR6 , but the problem is the ADR6-SMTP_ADDR field length is 241 char which is taking too much space in the ALV output may i know how to  reduce the actual legnth of field to the required pls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Vin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470115#M221066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470116#M221067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check the below links may be useful for u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="334407"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1645013"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470116#M221067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470117#M221068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While filling the field catalog fill the field "Outputlength"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Abhishek Jolly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470117#M221068</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2006-09-04T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470118#M221069</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;if you are using 'REUSE_ALV_FIELDCATALOG_MERGE' to build the field catelog, then change the field length with below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_fieldcat into x_fieldcat.
 if x_fieldcat-fieldname = 'SMTP_ADDR'.
   x_fieldcat-OUTPUTLEN  = 20.
    modify it_fieldcat from x_fieldcat index sy-tabix.
   endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are building the fieldcatelog in your own way then use below code to change the field length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_fieldcat-FIELDNAME = 'SMTP_ADDR'.&lt;/P&gt;&lt;P&gt;it_fieldcat-KEY = 'X'.&lt;/P&gt;&lt;P&gt;it_fieldcat-OUTPUTLEN = '20'.&lt;/P&gt;&lt;P&gt;it_fieldcat-SELTEXT_L = 'E-Mail'.&lt;/P&gt;&lt;P&gt;APPEND it_fieldcat .&lt;/P&gt;&lt;P&gt;CLEAR it_fieldcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward Points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-length/m-p/1470118#M221069</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-09-04T15:45:21Z</dc:date>
    </item>
  </channel>
</rss>

