<?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: field length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468941#M220546</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;Can't you perform a AT SELECTION-SCREEN and check the content of the SELECT-OPTIONS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify your problem a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 15:32:24 GMT</pubDate>
    <dc:creator>guillaume-hrc</dc:creator>
    <dc:date>2006-07-25T15:32:24Z</dc:date>
    <item>
      <title>field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468940#M220545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;P&gt;namely county of discharge, country of loading etc&lt;/P&gt;&lt;P&gt;i must change the field legth  from 3 to 2 such that it should restrict the user to enter third digit in selection screen. and these three fields must be in select-options not parameters so please &lt;/P&gt;&lt;P&gt;suggest me  the solution.&lt;/P&gt;&lt;P&gt;like ex county of loading its lenght in database table is 3 so i want it to be 2 in selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: kranthi reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: kranthi reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468940#M220545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468941#M220546</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;Can't you perform a AT SELECTION-SCREEN and check the content of the SELECT-OPTIONS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify your problem a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468941#M220546</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-07-25T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468942#M220547</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 are two ways for acheiving this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a select-option based on a data element as shown below...&lt;/P&gt;&lt;P&gt;   data LAND1(2) TYPE C.&lt;/P&gt;&lt;P&gt;   SELECT-OPTIONS P_LAND1 FOR LAND1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To Check the field length at the AT SELECTION-SCREEN Event and raise error message when the length excees 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there is any other way to achieve this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468942#M220547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468943#M220548</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;check this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the selection screen with visible length option like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_matnr for mara-matnr VISIBLE LENGTH 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;visible length of the field should be 5 (characters) if the database field length is more than this also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;validate the field contents at AT SELECTION SCREEN event like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr&lt;/P&gt;&lt;P&gt;if strlen(s_matnr-low) &amp;gt; 5 .&lt;/P&gt;&lt;P&gt;  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;error&lt;/P&gt;&lt;P&gt;     exit.&lt;/P&gt;&lt;P&gt;endif.&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;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 16:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468943#M220548</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-25T16:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468944#M220549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. replce the parameter by 2 digit variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. parameters: p_ch(3) type c visible length 2.&lt;/P&gt;&lt;P&gt;at selection-screen on p_ch.&lt;/P&gt;&lt;P&gt;if p_ch+2(1) ne sapce.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 13:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468944#M220549</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-07-27T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468945#M220550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ABC.

TABLES : T005.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_LAND FOR T005-LAND1 VISIBLE LENGTH 2.
SELECTION-SCREEN END OF BLOCK B1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 13:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/1468945#M220550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T13:46:59Z</dc:date>
    </item>
  </channel>
</rss>

