<?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: Check values select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101216#M1183683</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;This code below show an example of checking &lt;STRONG&gt;each&lt;/STRONG&gt; select options condition separately. Just paste it and run. Then adapt the logic to work with your data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS pa_val type i.

data success.   "does entry satisfy all so_int entries?

select-options so_int for pa_val.

data wa_so_int like line of so_int.

"suppose we have such entries in so_int
so_int-sign = 'I'.
so_int-option = 'BT'.
so_int-low = 2.
so_int-high = 5.
append so_int.

so_int-option = 'EQ'.
so_int-low = 4.
append so_int.

loop at so_int into wa_so_int.
  if pa_val in so_int.
    success = 'X'.
  else.
    success = space.
    exit.
  endif.
ENDLOOP.

if success = 'X'.
  write 'Entry satifies all so_int conditions'.
else.
  write 'Some entries are not satified'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see only entry 4 to pa_val will satisfy both entires in selection options. These anyhow must be checked separately as the system implicitly puts there &lt;STRONG&gt;OR&lt;/STRONG&gt; between the conditions. As you said, if one of them is met no more are checked. I think this is the only way to check all of them, simply checking each of them separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 14:29:01 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-02-03T14:29:01Z</dc:date>
    <item>
      <title>Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101203#M1183670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me out. I need to know what the best way is to check if values from a select option is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: so_vndr for wa_lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to check if all values for so_vndr are in the table lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guido Koopmann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101203#M1183670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101204#M1183671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
if lfa1-lifnr in so_vndr.
   "it is ... do your coding here
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101204#M1183671</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-03T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101205#M1183672</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;As you are holding the value in a variable just write a select statement.&lt;/P&gt;&lt;P&gt;After this right a sy-subrc statement like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single lifnr from lfa1 into wa_lfa1 where lifnr = so_vndr.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message 'Value exists' type 'I'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Message 'Value doesnt exists' 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my answer helps you or least it would have given you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101205#M1183672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101206#M1183673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select lifnr&lt;/P&gt;&lt;P&gt;from lfa1&lt;/P&gt;&lt;P&gt;into table t_lifnr&lt;/P&gt;&lt;P&gt;where lifnr in so_vndr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop ar so_vndr where sign eq 'I' and option eq 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_lifnr with key lifnr = so_vndr-low.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;**message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101206#M1183673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101207#M1183674</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;U can use the following code to validate the select-option values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_lifnr-low.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE lifnr FROM lfa1&lt;/P&gt;&lt;P&gt;    INTO w_lifnr&lt;/P&gt;&lt;P&gt;    WHERE lifnr = s_lifnr-low.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE w000 WITH text-001.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_lifnr-high.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE lifnr FROM lfa1&lt;/P&gt;&lt;P&gt;    INTO w_lifnr&lt;/P&gt;&lt;P&gt;    WHERE lifnr = s_lifnr-high.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE w000 WITH text-001.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101207#M1183674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101208#M1183675</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT so_lifnr.
SELECT  lifnr FROM lfa1 INTO lv_lifnr 
UP TO 1 ROWS WHERE lifnr EQ so_lifnr-low.
IF sy-subrc NE 0.
* flag set
ENDIF.
ENDLOOP.

CLEAR lv_lifnr.

IF so_lifnr-high IS NOT INITIAL.
SELECT  lifnr FROM lfa1 INTO lv_lifnr
UP TO 1 ROWS WHERE lifnr EQ so_lifnr-high.
IF sy-subrc NE 0.
* flag set
ENDIF.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101208#M1183675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101209#M1183676</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;To validate the entered values in the SO_VDNR..Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON SO_VDNR.
IF NOT SO_VDNR[] IS INITIAL.
SELECT * UPTO 1 ROWS FROM LFA1
     WHERE LIFNR IN SO_VDNR.
ENDSELECT.
IF SY_SUBRC NE 0.
 " Error Message
ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101209#M1183676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101210#M1183677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for all the replies. If I look at some logic, then not all entries for the select option are checked. It's always the case if one entry is correct, it passes the logic and in my case I need to check all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guido Koopmann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101210#M1183677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101211#M1183678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can do it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  SELECT SINGLE * FROM lfa1
  WHERE lifnr IN so_lifnr.
  IF sy-subrc NE 0.
    " Error message MESSAGE 
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101211#M1183678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T14:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101212#M1183679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guido&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, the code posted by me loops through the select option table thereby checking all the entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101212#M1183679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101213#M1183680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally in select options if one entry is also correct it should pass the logic as you have to process it as user have atleast given one correct entry and you have to give a reault for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways for high and low do it as below and if you want for all the value in select options than retrieve all the value in a internal table and than you have to check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  wa_lfa1_lifnr type lfa1-lifnr,
  wa_lifnr      type lfa1-lifnr.

SELECT-OPTIONS:
  so_vndr for wa_lfa1_lifnr.

AT SELECTION-SCREEN ON so_vndr.

  If so_vndr-low is not initial.

    Clear wa_lifnr.

    Select single lifnr
      from lfa1
      into wa_lifnr
     where lifnr eq so_vndr-low.       " Compare the low value

    If sy-subrc ne 0 and wa_lifnr is initial.
      Message 'enter correct value in low' type 'E'.
    Elseif sy-subrc eq 0 and so_vndr-high is not initial.

    Clear wa_lifnr.

    Select single lifnr
      from lfa1
      into wa_lifnr
     where lifnr eq so_vndr-high.      " Compare the high value

      If sy-subrc ne 0.
        Message 'enter correct value in high' type 'E'.
      Endif.                           " If sy-subrc ne 0
    Endif.                             " If sy-subrc ne 0 and wa_lifnr
  Endif.                               " If so_vndr-low is not initial&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritam Ghosh on Feb 3, 2009 3:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101213#M1183680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101214#M1183681</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;Test the following Code Hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: lfa1.

SELECT-OPTIONS solifnr FOR lfa1-lifnr.


DATA: it_lfa1 LIKE STANDARD TABLE OF lfa1 WITH HEADER LINE.

SELECT * FROM lfa1
  INTO CORRESPONDING FIELDS OF TABLE it_lfa1
  WHERE lifnr IN solifnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if any Problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101214#M1183681</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-03T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101215#M1183682</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to check if all values for so_vndr are in the table lfa1-lifnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not possible. Imagine a situation where the user simply enters "&lt;STRONG&gt;" in the select options or some other pattern like B&lt;/STRONG&gt; or AB*or ranges 1 to 100 etc or all of the values mentioned before at the same time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be very difficult to find out which entry of the range or the pattern is valid and which is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the best way to validate this is to select the vendors from lfa1 where lifnr in so_vndr. And if you get a sy-subrc 0 means there are vendors else the entry is invalid. And this validation should be done in the at selection-screen on so_vndr event.&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101215#M1183682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101216#M1183683</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;This code below show an example of checking &lt;STRONG&gt;each&lt;/STRONG&gt; select options condition separately. Just paste it and run. Then adapt the logic to work with your data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS pa_val type i.

data success.   "does entry satisfy all so_int entries?

select-options so_int for pa_val.

data wa_so_int like line of so_int.

"suppose we have such entries in so_int
so_int-sign = 'I'.
so_int-option = 'BT'.
so_int-low = 2.
so_int-high = 5.
append so_int.

so_int-option = 'EQ'.
so_int-low = 4.
append so_int.

loop at so_int into wa_so_int.
  if pa_val in so_int.
    success = 'X'.
  else.
    success = space.
    exit.
  endif.
ENDLOOP.

if success = 'X'.
  write 'Entry satifies all so_int conditions'.
else.
  write 'Some entries are not satified'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see only entry 4 to pa_val will satisfy both entires in selection options. These anyhow must be checked separately as the system implicitly puts there &lt;STRONG&gt;OR&lt;/STRONG&gt; between the conditions. As you said, if one of them is met no more are checked. I think this is the only way to check all of them, simply checking each of them separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101216#M1183683</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-03T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Check values select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101217#M1183684</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 code, it will check for all inputs in select option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it_check contains only lifnr field an wa_check is work area for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  LOOP AT so_lifnr.
    wa_check-lifnr = so_lifnr-low. "For values specified individually
    "in list
    APPEND wa_check TO it_check.
  ENDLOOP.

  wa_check-lifnr = so_lifnr-low.
  APPEND wa_check TO it_check.

  wa_check-lifnr = so_lifnr-high.
  APPEND wa_check TO it_check.

  SORT it_check.
  DELETE ADJACENT DUPLICATES FROM it_check.
  "Now it_check contains all values with unique entries

  DESCRIBE TABLE it_check LINES w_cnt.
  SELECT lifnr FROM lfa1
  INTO TABLE it_check1
  FOR ALL ENTRIES IN it_check
  WHERE lifnr = it_check-lifnr.

  IF w_cnt NE sy-dbcnt. "If not equal then mismatch of data
    MESSAGE e000 WITH 'please verify your input'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 14:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-values-select-option/m-p/5101217#M1183684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T14:30:16Z</dc:date>
    </item>
  </channel>
</rss>

