<?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: doubt in selection screen -reg in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288169#M498881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just to validate if the length of the field p_year is 4, also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

len = strlen(p_year).
if len ne 4.
  message........
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 12:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T12:27:36Z</dc:date>
    <item>
      <title>doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288164#M498876</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;can anybody tell logic behind below that gives the error message wrong entry if we enter year only two or three digits.&lt;/P&gt;&lt;P&gt;What i didnt understand here is how it finds the above wrong entry using simply year+2(1) etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS     : p_month(2) TYPE c,&lt;/P&gt;&lt;P&gt;                 p_year(4) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF p_year&lt;EM&gt;2(1) = ' ' OR p_year&lt;/EM&gt;3(1) = ' ' OR p_year+2(2) = ' '.&lt;/P&gt;&lt;P&gt;    MESSAGE 'Wrong entry in year field! Enter year in 4 characters .......' TYPE 'E'.&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;thanks in adv&lt;/P&gt;&lt;P&gt;sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288164#M498876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T12:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288165#M498877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a particular date either date or month or year cant be zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anyone is zero that is a wrong date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288165#M498877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T12:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288166#M498878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is called offset.&lt;/P&gt;&lt;P&gt;e.g. if year = 2014&lt;/P&gt;&lt;P&gt;Then year+2(1) means 1.&lt;/P&gt;&lt;P&gt;As it starts with 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward al helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288166#M498878</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-18T12:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288167#M498879</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;   In the code :&lt;/P&gt;&lt;P&gt;    IF p_year&lt;EM&gt;2(1) = ' ' OR p_year&lt;/EM&gt;3(1) = ' ' OR p_year+2(2) = ' '.&lt;/P&gt;&lt;P&gt;   the logic is used to check if there is a space somethere in the in the value entered. if a space is there, then that means the number is not proper and so the year .And accordingly the error message is passed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explains properly to you !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288167#M498879</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-05-18T12:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288168#M498880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Here the validation check is for all 4 digits to be filled in the year field. if only 1 or 2 or 3 digits filled, it will give an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288168#M498880</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2007-05-18T12:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in selection screen -reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288169#M498881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just to validate if the length of the field p_year is 4, also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

len = strlen(p_year).
if len ne 4.
  message........
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-selection-screen-reg/m-p/2288169#M498881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T12:27:36Z</dc:date>
    </item>
  </channel>
</rss>

