<?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: Selection-Screen Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922727#M1148635</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 need to use select-options not parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2008 05:59:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-10T05:59:23Z</dc:date>
    <item>
      <title>Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922724#M1148632</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;        In selection screen i should enter the month field only from MKPF-BUDAT.&lt;/P&gt;&lt;P&gt;which contains date as 01.03.2008.&lt;/P&gt;&lt;P&gt;i should capture only month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen should be like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; 03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should not allow to enter day n year.&lt;/P&gt;&lt;P&gt;how to validate this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suprith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 05:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922724#M1148632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T05:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922725#M1148633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;lets say you declared PARAMATERS Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters month(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you entered 03 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now AT SELECTION-SCREEN event&lt;/P&gt;&lt;P&gt;select single month from t247 INTO month where month = month&lt;/P&gt;&lt;P&gt;( for correct field names go through T247 table)&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;message 'Please enter a Valid Month' type 'E'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 05:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922725#M1148633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922726#M1148634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the following piece of code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report sy-repid.

parameters : p_month(2) type num.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this automtcailly user will have to enter a month number only and nothing else will be accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 05:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922726#M1148634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T05:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922727#M1148635</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 need to use select-options not parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 05:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922727#M1148635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T05:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922728#M1148636</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 this data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Bkpf-MONAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 06:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922728#M1148636</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-12-10T06:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922729#M1148637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suprith kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather using bkpf-budat. try out below way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTEST_MONTH.

TABLES : ISELLIST.

SELECT-OPTIONS : S_MONTH FOR ISELLIST-MONTH.
DATA: MONTH LIKE VVIS_SOPTI-SMONTH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.

  CALL FUNCTION 'REAL_ESTATE_F4_MONTH'
    EXPORTING
      I_MONTH       = 00
      I_POPUP_TITLE = 'Choose Month'
    IMPORTING
      E_MONTH       = MONTH.
*  E_SEL_OK =
  S_MONTH-LOW = MONTH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-HIGH.

  CALL FUNCTION 'REAL_ESTATE_F4_MONTH'
    EXPORTING
      I_MONTH       = 00
      I_POPUP_TITLE = 'Choose Month'
    IMPORTING
      E_MONTH       = MONTH.
*  E_SEL_OK =
  S_MONTH-HIGH = MONTH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 06:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922729#M1148637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T06:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922730#M1148638</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;   For your specific select option just write the code &lt;/P&gt;&lt;P&gt;at selection-screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if p_mon &amp;gt; 0 and p_mon &amp;lt;13...&lt;/P&gt;&lt;P&gt;consider the month numbers from 1 to 12..and then continue with the code for this check..this shud solve ur problem or else u can give errro messages for all other checks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 06:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/4922730#M1148638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T06:18:07Z</dc:date>
    </item>
  </channel>
</rss>

