<?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: Compare select option with a range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065867#M1176992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since select options and ranges are both internal tables with the same structure you can use a range the same as you use a select option in your database select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Select * from your_table
    into your itab
    where lgart in so_lgart  or
          lgart in r_lgart.    " your range table.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2009 16:17:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-30T16:17:56Z</dc:date>
    <item>
      <title>Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065865#M1176990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a range of lgart, with values like 9000 bt 8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection screen have a selecto option for lgart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have all the lgart entered by the users and that belows to the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that??????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 16:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065865#M1176990</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2009-01-30T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065866#M1176991</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;I don't understand which kind of control u need to do, anyway the SELECT-OPTIONS and RANGE are two internal table with the same structure so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF T_RANGE TO S_SEL_OPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If RANGE means interval for you with a min and a max value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_SEL_OPT(3) = 'IBT'.&lt;/P&gt;&lt;P&gt;S_SEL_OPT-LOW = &amp;lt;min&amp;gt;.&lt;/P&gt;&lt;P&gt;S_SEL_OPT-HIGH = &amp;lt;max&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND S_SEL_OPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 16:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065866#M1176991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T16:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065867#M1176992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since select options and ranges are both internal tables with the same structure you can use a range the same as you use a select option in your database select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Select * from your_table
    into your itab
    where lgart in so_lgart  or
          lgart in r_lgart.    " your range table.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 16:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065867#M1176992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065868#M1176993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I want to have all the lgart entered by the users &lt;STRONG&gt;and&lt;/STRONG&gt; that belows to the range.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do you really mean AND? Or do you want OR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 16:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065868#M1176993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065869#M1176994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the scenary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a range (lgart) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: gr_lgart FOR  t512t-lgart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the values low = 9000 sign = bt high = 9500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the selection screen &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_lgart for t512t-lgart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the selection screen the user can enter the value &lt;/P&gt;&lt;P&gt;         S_lgart-low eq 9870 sign eq&lt;/P&gt;&lt;P&gt;         S_lgart-low eq 9100 sign bt  S_lgart-high eq 9200.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get all the values from the select option that belongs to my range gr_lgart.&lt;/P&gt;&lt;P&gt;How can I compare ... for example in this case i will use just &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          S_lgart-low eq 9100 sign bt  S_lgart-high eq 9200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because is the only range that belongs to my range&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 17:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065869#M1176994</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2009-01-30T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065870#M1176995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks to me that you would follow Greg's advice, but use 'AND' instead of 'OR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 17:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065870#M1176995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T17:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare select option with a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065871#M1176996</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;RANGES: gr_lgart FOR t512t-lgart.

SELECT-OPTIONS : S_lgart for t512t-lgart .

START-OF-SELECTION.

   SELECT * FROM &amp;lt;TABLE&amp;gt; INTO ITAB WHERE LGART IN S_LGART.
     
       IF ITAB-LGART IN GR_LAGRT.
          APPEND ITAB.
      ENDIF.

 ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also upload all hit in ITAB and the delete the record not in your range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES: gr_lgart FOR t512t-lgart.

SELECT-OPTIONS : S_lgart for t512t-lgart .

START-OF-SELECTION.

   SELECT * FROM &amp;lt;TABLE&amp;gt; INTO TABLE ITAB WHERE LGART IN S_LGART.
     
  DELETE ITAB WHERE NOT LGART IN GR_LAGRT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 17:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-select-option-with-a-range/m-p/5065871#M1176996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T17:25:58Z</dc:date>
    </item>
  </channel>
</rss>

