<?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: loop where range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043801#M87278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put 'BT' instead of 'EQ in the option of range type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2005 19:22:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-08T19:22:40Z</dc:date>
    <item>
      <title>loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043799#M87276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i´m executing a simple loop using a range in the where condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. loop at itab into wa_tab &lt;/P&gt;&lt;P&gt;      where racct in r_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values in r_range are &lt;/P&gt;&lt;P&gt;sign - 'I'&lt;/P&gt;&lt;P&gt;option 'EQ'&lt;/P&gt;&lt;P&gt;low  '0000311001'&lt;/P&gt;&lt;P&gt;high '0000315004'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The loop only finds the 'low' entry and then ends although both numbers are in the itab. If I change option to 'BT' the loop will find all those numbers between low and high.&lt;/P&gt;&lt;P&gt;What am i overlooking?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043799#M87276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043800#M87277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EQ is intended for single values - 000311001 only  or 000315004 only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BT is intended for values with a "distance" between them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043800#M87277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043801#M87278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put 'BT' instead of 'EQ in the option of range type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043801#M87278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043802#M87279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want only the two records, you need the following in your table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sign - 'I'
option 'EQ'
low '0000311001'
append r_range.

sign - 'I'
option 'EQ'
low '0000315004'
append r_range.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043802#M87279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043803#M87280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want range and need more single selection append individual entry to range with 'EQ' Option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043803#M87280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043804#M87281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want it to find those values only?  Then you must add both of the values to the range table like so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

range-sign = 'I'.
range-option = 'EQ'.
range-low = '0000311001'.
append range.

range-sign = 'I'.
range-option = 'EQ'.
range-low = '0000315004'.
append range.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are specifying single values.  You only want when you get a hit for 311001 or 315004.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043804#M87281</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-08T19:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043805#M87282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Best option is : &lt;/P&gt;&lt;P&gt;   1. Create Ranges &lt;/P&gt;&lt;P&gt;   2. Use &amp;lt;b&amp;gt;Ranges in the Database Selection&amp;lt;/b&amp;gt; instead at Internal Table Validation. &lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;     select * from MKPF into table itab where mblnr in r_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043805#M87282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: loop where range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043806#M87283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John, &lt;/P&gt;&lt;P&gt;Of course, (It´s getting late..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where-range/m-p/1043806#M87283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T19:38:31Z</dc:date>
    </item>
  </channel>
</rss>

