<?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: Select-Options Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303732#M1635855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dieter,&lt;/P&gt;&lt;P&gt;You suggestions worked very well. Only thing i have bothered is DO loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i didn't find any other solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 11:42:07 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2011-10-28T11:42:07Z</dc:date>
    <item>
      <title>Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303722#M1635845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have selection option like the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_acti type char4
select-options: s_acti for v_acti obligatory.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here user can enter value from 0000 to 9999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to validate this  Here  user needs to allow values only from 2000 to 9999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have find following to do this :--&amp;gt;&lt;/P&gt;&lt;P&gt;(1). I have created a domain and put the value range as 2000 to 9999 and used that data element. ( This is not working and not giving error message if user enter value as 1000 in s_acti-low)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it can validated in "at selection screen" event . But the issue is here user can enter values &amp;lt;2000 or &amp;gt;9999  or ne 2000 like that . I find these combinations validations in the "at selection screen" more tedious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other possible way i saw is create an internal table with value ranging from 0000 to 1999 and value the selection option &lt;/P&gt;&lt;P&gt;s_acti as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
loop at itab.
if itab-acti in s_acti.
  message e000(v1) with "Wrong Input"
endif. 
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But don't want above like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally my requirement is to make validation in at selection screen event if user values as  &amp;lt; 2000 combination i have give an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moderators : please do not lock this thread i have searched this forum for nearest one answers, but could not find. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 08:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303722#M1635845</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-10-28T08:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303723#M1635846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;as mentioned in a thread:this may help u:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&amp;lt;&amp;lt; Moderator message - Cut and paste response from &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1731503"&gt;&lt;/A&gt; removed. Plagiarism is not allowed in SCN &amp;gt;&amp;gt;&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 28, 2011 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303723#M1635846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T09:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303724#M1635847</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;You can use the following syntax in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_ACTI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  ( s_acti-low not between '2000' and '9999' ) AND ( s_acti-HIGH not between '2000' and '9999' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303724#M1635847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303725#M1635848</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;try this short code with MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: MARA.
*
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
*
AT SELECTION-SCREEN.
*
  SELECT * FROM MARA WHERE MATNR IN S_MATNR.
    IF MARA-MATNR LT '000000000000000200'.
      MESSAGE E010 WITH 'Range not allowed'.
      EXIT.
    ENDIF.
  ENDSELECT.
*
START-OF-SELECTION.
  WRITE: / 'TEST'.

END-OF-SELECTION.
*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303725#M1635848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T09:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303726#M1635849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just only allow the user to enter a low and high range and restrict all other options ( NP,CP,NE,LE etc )using SELECT_OPTIONS_RESTRICT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303726#M1635849</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-10-28T09:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303727#M1635850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point #1 Here for s_acti selection there is no table entries ( like mara or makt ) so selecting a value then validating is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303727#M1635850</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-10-28T09:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303728#M1635851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables:vbak,vbap.&lt;/P&gt;&lt;P&gt;types:begin of x_vbak,&lt;/P&gt;&lt;P&gt;      vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      end of x_vbak.&lt;/P&gt;&lt;P&gt;data:it_vbeln type standard table of x_vbak,&lt;/P&gt;&lt;P&gt;      wa_vbeln type x_vbak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_posnr type  table of vbap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      rt_vbak type range of vbak-vbeln,&lt;/P&gt;&lt;P&gt;      wrt_vbak like line of rt_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;  from vbak&lt;/P&gt;&lt;P&gt;  into table it_vbeln.&lt;/P&gt;&lt;P&gt;wrt_vbak-low = '0000002000'.&lt;/P&gt;&lt;P&gt;wrt_vbak-sign = 'I'.&lt;/P&gt;&lt;P&gt;wrt_vbak-high = '0000009999'.&lt;/P&gt;&lt;P&gt;wrt_vbak-option = 'BT'.&lt;/P&gt;&lt;P&gt;append wrt_vbak to rt_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select vbeln&lt;/P&gt;&lt;P&gt;        posnr&lt;/P&gt;&lt;P&gt;         from vbap&lt;/P&gt;&lt;P&gt;    into table it_posnr&lt;/P&gt;&lt;P&gt;    where vbeln in rt_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write:/ 'data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this example and do the same of your requiremnt &lt;/P&gt;&lt;P&gt;i have done this example its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 10:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303728#M1635851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303729#M1635852</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;another way is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_ACTI TYPE CHAR4.
*
SELECT-OPTIONS: S_ACTI FOR V_ACTI OBLIGATORY.
*
AT SELECTION-SCREEN.
*
  DO 1999 TIMES.
    IF SY-INDEX IN S_ACTI.
      MESSAGE E010 WITH 'Range not allowed'.
      EXIT.
    ENDIF.
  ENDDO.

START-OF-SELECTION.
  WRITE: / 'TEST'.
END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dieter Gröhn on Oct 28, 2011 1:39 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303729#M1635852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303730#M1635853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for validating SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;you need to use the particular data base table inside LOOP..... ENDLOOP&lt;/P&gt;&lt;P&gt;for HIGH, LOW as well as SIGN = 'EQ'..&lt;/P&gt;&lt;P&gt;Check the below code. sure it will help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'EQ'.
    SELECT SINGLE * FROM LFA1
           WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-LOW.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-LOW.
      EXIT.
    ENDIF.
  ENDLOOP.

  LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'BT'.
    SELECT SINGLE * FROM LFA1
            WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-LOW.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-LOW.
      EXIT.
    ENDIF.
  ENDLOOP.

  LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'BT'.
    SELECT SINGLE * FROM LFA1
          WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-HIGH.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-HIGH.
      EXIT.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303730#M1635853</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-10-28T11:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303731#M1635854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for validating SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;you need to use the particular data base table inside LOOP..... ENDLOOP&lt;/P&gt;&lt;P&gt;for HIGH, LOW as well as SIGN = 'EQ'..&lt;/P&gt;&lt;P&gt;Check the below code. sure it will help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'EQ'.
    SELECT SINGLE * FROM LFA1
            WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-LOW.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-LOW.
      EXIT.
    ENDIF.
  ENDLOOP.

  LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'BT'.
    SELECT SINGLE * FROM LFA1
           WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-LOW.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-LOW.
      EXIT.
    ENDIF.
  ENDLOOP.

  LOOP AT S_LIFNR.
    CHECK S_LIFNR-OPTION = 'BT'.
    SELECT SINGLE * FROM LFA1
           WHERE
           MANDT = SY-MANDT AND
           LIFNR = S_LIFNR-HIGH.
    IF SY-SUBRC NE 0.
      MESSAGE E101(06) WITH S_LIFNR-HIGH.
      EXIT.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;SUJI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303731#M1635854</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-10-28T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303732#M1635855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dieter,&lt;/P&gt;&lt;P&gt;You suggestions worked very well. Only thing i have bothered is DO loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i didn't find any other solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303732#M1635855</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-10-28T11:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303733#M1635856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant really believe that allmighty a®s has a problem with this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand you right, user can only enter 0000 to 9999.&lt;/P&gt;&lt;P&gt;What i would do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make myself an internal table with values 0000 to 1999.&lt;/P&gt;&lt;P&gt;like following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data begin of ls_number.
data number type i.
data end   of ls_number.
data lt_numbers type table of ls_number.
DO 1999 TIMES.
  ls_number-number = sy-index.
  append ls_number to lt_numbers.
ENDDO.
"add 0
ls_number-number = 0.
append ls_number to lt_numbers.

"now simulate a select
loop at lt_number into ls_number where number in so_number.
  "if you get here you got unallowed entries in your select option
  "process error message
  exit.
endloop.

If sy-subrc = 4.
  "all is fine
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you got my drift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303733#M1635856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303734#M1635857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This day not my day.i am totally drained !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Initial post i am given the same solution, but QM come up with queries related DO loop for 0000 to 1999 itrations&lt;/P&gt;&lt;P&gt;so that it would get some expert opinions regarding that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;a®s &lt;/P&gt;&lt;P&gt;Other possible way i saw is create an internal table with value ranging from 0000 to 1999 and value the selection option&lt;/P&gt;&lt;P&gt;s_acti as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
loop at itab.
if itab-acti in s_acti.
  message e000(v1) with "Wrong Input"
endif. 
endloop.
&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 12:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303734#M1635857</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-10-28T12:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303735#M1635858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if s_acti-low &amp;lt;= 1999 .&lt;/P&gt;&lt;P&gt;  MESSAGE 'wrong input' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if s_acti-low &amp;gt;= 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write : 'working fine'.&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;Try This&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303735#M1635858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T13:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303736#M1635859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@a®s - the issue I have with this is that in your original post, you set out your requirements, stating what you do and do not want; then after a number of people try to solve your problem, you mark as solved an answer which gives a solution that you specifically say you don't want and then assign nothing to the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would have been better to assign a yellow star to each answer and close the thread as "closed but unanswered".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 14:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303736#M1635859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303737#M1635860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you misunderstood my question in the initial post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other possible way i saw is create an &lt;STRONG&gt;internal table&lt;/STRONG&gt; with value ranging from 0000 to 1999 and value the selection option s_acti as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
loop at itab.
if itab-acti in s_acti.
  message e000(v1) with "Wrong Input"
endif. 
endloop.
&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But don't want above like&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also i mentioned in my initial post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;know it can validated in "at selection screen" event . But the issue is here user can enter values &amp;lt;2000 or &amp;gt;9999 or ne 2000 like that . I find these combinations validations in the "at selection screen" more tedious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to avoid internal table in some manner, and the given the maximum points to user who given the answer close to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have made question "Closed but answered" and given points to each user who answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My explnation here is not to hurt anybody's intensions, who are giving answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really thankful Rob for pointing out &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 17:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303737#M1635860</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-10-28T17:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303738#M1635861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I think you misunderstood my question in the initial post.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Well, it certainly wouldn't be the first time &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really didn't mean anything personal - I was more thinking about the point system in general. Moderators see a lot of posts where points are assigned (if at all) to posts that are incorrect or irrelevant (not saying that this is the case here). So this skews a system that is already not helpful in the long run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS Since you did mark this as closed but unanswered, I couldn't respond to it originally. I had to mark it as un answered. You can change it back at your convenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 18:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303738#M1635861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303739#M1635862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post deleted by myself... someone had already suggested my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arseni Gallardo on Oct 29, 2011 4:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 14:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303739#M1635862</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2011-10-29T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303740#M1635863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a®s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS defines a complex filter. If you do not apply the filter to data, you have little chance to validate the filter.&lt;/P&gt;&lt;P&gt;The only way, I think ABAP is fast enough, may be to check all distinct values outside the desired range, in your case value^s from 0000 to 1999:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA lv_numc4 TYPE NUMC4.
while  lv_numc4 &amp;lt; 2000.
  IF lv_NUMC IN s_acti.
    MESSAGE TYPE 'E' 'Invalid range used - please restrict to 2000 to 9999'.
  ENDIF.
  ADD 1 TO lv_numc4.
ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm convinced that will take less time than the user is able to notice even if 1999 is in the range. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 20:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303740#M1635863</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-10-29T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303741#M1635864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I researched a lot for this issue. SCN members given the closest answer to this issue. So i am closing this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 12:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation/m-p/8303741#M1635864</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2011-11-08T12:02:41Z</dc:date>
    </item>
  </channel>
</rss>

