<?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 issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370217#M1039918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course it wouldnt pick up the record as you said because the valid from and valid to date range is out of the date range that the user entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go for this instead &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE validfrom GE s_selopt-low&lt;/P&gt;&lt;P&gt;AND validto LE s_selopt-high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 07:06:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T07:06:59Z</dc:date>
    <item>
      <title>Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370208#M1039909</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 have a select-option for dates, I want to select data from a table which has a &lt;STRONG&gt;valid from&lt;/STRONG&gt; and &lt;STRONG&gt;valid to&lt;/STRONG&gt; date fields for records.&lt;/P&gt;&lt;P&gt;The entered dates or date range are to be taken as multiple single dates and records that are &lt;STRONG&gt;valid for any of the entered dates&lt;/STRONG&gt; are to be selected. How can I do that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370208#M1039909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370209#M1039910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose your select options is named as S_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;dbtab&amp;gt; into table itab where date in S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the records with date in the range of s_date will be selected. it will be handled internally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370209#M1039910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370210#M1039911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hitesh K &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;what is the issue by using IN operator for SELECT-OPTION in WHERE Condition&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;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370210#M1039911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370211#M1039912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Theres a &lt;STRONG&gt;valid from&lt;/STRONG&gt; and a &lt;STRONG&gt;valid to&lt;/STRONG&gt; date in the database table and if any of the entered dates lie in between these dates, the record has to be selected. The problem is that entered date is not a parameter but select-option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370211#M1039912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370212#M1039913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the WHERE condition of the select statement try to give as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE validfrom IN s_selopt&lt;/P&gt;&lt;P&gt;AND       validto    IN s_selopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select options will have the following data in them (if you are giving a validity date range)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN = I&lt;/P&gt;&lt;P&gt;OPTION = BT&lt;/P&gt;&lt;P&gt;LOW = Valid from date&lt;/P&gt;&lt;P&gt;HIGH = Valid to date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the selected data will be restricted to the date range you are giving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370212#M1039913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370213#M1039914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;Let us say that there a record with &lt;STRONG&gt;valid from&lt;/STRONG&gt; date as &lt;STRONG&gt;01.01.2008&lt;/STRONG&gt; and &lt;STRONG&gt;valid to&lt;/STRONG&gt; date as &lt;STRONG&gt;31.01.2008&lt;/STRONG&gt;. And user enters &lt;STRONG&gt;02.01.2008 to 30.01.2008&lt;/STRONG&gt; in the &lt;STRONG&gt;select-option&lt;/STRONG&gt;. I want this record to be selected but your select will not pick the record. Hope you all understand the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370213#M1039914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370214#M1039915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hitesh ,&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;SELECT * FROM db_name INTO itab_name
FOR ALL ENTRIES IN S_DATE 
WHERE S_DATE-LOW GE VALID_FROM AND
S_DATE-HIGH LE VALID_TO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might work as all select-options values are stored in an itab with the select-options name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this and let me know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370214#M1039915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370215#M1039916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;When you can have &lt;STRONG&gt;multiple ranges&lt;/STRONG&gt; and/or &lt;STRONG&gt;multiple single&lt;/STRONG&gt; values in select-options this will not work.&lt;/P&gt;&lt;P&gt;In case where high is blank.&lt;/P&gt;&lt;P&gt;Hope you get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370215#M1039916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370216#M1039917</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 the date is select-options i.e. s_date  we can have query in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT f1 f2..&lt;/P&gt;&lt;P&gt;FROM  databasetable&lt;/P&gt;&lt;P&gt;WHERE validfrom IN s_date&lt;/P&gt;&lt;P&gt;AND validto IN s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_date will have values of datefrom and dateto in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN = I&lt;/P&gt;&lt;P&gt;OPTION = BT&lt;/P&gt;&lt;P&gt;LOW = datefrom&lt;/P&gt;&lt;P&gt;HIGH = dateto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above query will give u data for the given date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370216#M1039917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370217#M1039918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course it wouldnt pick up the record as you said because the valid from and valid to date range is out of the date range that the user entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go for this instead &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE validfrom GE s_selopt-low&lt;/P&gt;&lt;P&gt;AND validto LE s_selopt-high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370217#M1039918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370218#M1039919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then noway, u need to loop at select-options tables, check the sign to determine whether the user have entered multiple or single values. Then write select query to fetch and store it in a separate itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370218#M1039919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370219#M1039920</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 Dhanashri - Thank you for trying but when you say valid-from in s_date it means valid from date should be in entered date in select option (one of the entered date should actually be equal to valid from date) and not entered date lies in between the valid from and valid to dates. Hope u understand the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370219#M1039920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370220#M1039921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my understanding, the option given previously by Avinash should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;valid date must be greater than s_option-low and less than s_option-high.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="yellow" __jive_macro_name="color"&gt;Erwan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370220#M1039921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370221#M1039922</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 r right we can then use this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT f1 f2..&lt;/P&gt;&lt;P&gt;FROM dbtable&lt;/P&gt;&lt;P&gt;INTO internaltable&lt;/P&gt;&lt;P&gt;WHERE validfrom GE s_date-low&lt;/P&gt;&lt;P&gt;AND validto LE s_date-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370221#M1039922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370222#M1039923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Dhanashri and Erwan - the select will fail in case of multiple ranges and single values where high is blank.&lt;/P&gt;&lt;P&gt;I guess Karthik' solution can be used by removing excluded ranges and excluded single values options from the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370222#M1039923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370223#M1039924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well this is quite easy. make yourself a small painting on a paper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
         |------------------------|
        so1                   so2

    |---------------------------------------------|
  validfrom                                 validto
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you want to know if any of the dates between datefrom and dateto are within the intervall of you given selectoptions you gotta revert logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if validto greater equal so1 (select-option-low) and validfrom lesser equal so2 (select-option-high). then you have a hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
from   dbtab
into   table itab
where  validfrom le select-option-low
and    validto ge select-option-high.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on Aug 27, 2008 10:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370223#M1039924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370224#M1039925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But please see my previous comment. in case of single values and multiple ranges, this select will not work as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370224#M1039925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370225#M1039926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Humm....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hitesh, I think you should restrict the possibilities of your select option :&lt;/P&gt;&lt;P&gt;1- Use 2 parameters ( they will correspond to p_low and p_High ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- Use the FM 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;eg :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  init
*&amp;amp;---------------------------------------------------------------------*
FORM init.

  MOVE 'ALL'        TO opt_list-name.
  MOVE 'X' TO: opt_list-options-bt,
               opt_list-options-eq.
  APPEND opt_list TO restrict-opt_list_tab.

  CLEAR ass.
  MOVE: 'B'          TO ass-kind,
        'KOSTL_RANGE_SET' TO ass-name,
        'I'          TO ass-sg_main,
        ' '          TO ass-sg_addy,
        'ALL'        TO ass-op_main,
        'ALL'        TO ass-op_main.
  APPEND ass TO restrict-ass_tab.

  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
       EXPORTING
            restriction            = restrict
       EXCEPTIONS
            too_late               = 1
            repeated               = 2
            selopt_without_options = 3
            selopt_without_signs   = 4
            invalid_sign           = 5
            empty_option_list      = 6
            invalid_kind           = 7
            repeated_kind_a        = 8
            OTHERS                 = 9.
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

ENDFORM.                    " init

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370225#M1039926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370226#M1039927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you gotta do this for every record in your select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare yourself a ranges structure (ranges are similar to select options)&lt;/P&gt;&lt;P&gt;then loop your select options table in your structure.&lt;/P&gt;&lt;P&gt;then check if low or high value are missing.&lt;/P&gt;&lt;P&gt;if low = space then low 0 high.&lt;/P&gt;&lt;P&gt;and if high = space then high = low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will make the select work as designed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tho that you do it now more than one time (estimated you got more records in your select options, multiple values) you will have more than one select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since your second select will destroy data from first select, i´d advise you to select into an internal table, then after the select append all those entries in there into a second internal table.&lt;/P&gt;&lt;P&gt;then again select in your first itab and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370226#M1039927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370227#M1039928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you Erwan for that FM.&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;I've decided to do this by removing the exclude single values and exclude ranges from select-options using Erwans suggested FM and using the method suggested by Karthik. I think that should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-issue/m-p/4370227#M1039928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:03:44Z</dc:date>
    </item>
  </channel>
</rss>

