<?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 small doubt in ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672963#M1099030</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 need to check a value is there or not in a range. Can somebody tell me the logic please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_ranges is having company code ranges like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I EQ  1001   1004&lt;/P&gt;&lt;P&gt;I EQ  2001   2006&lt;/P&gt;&lt;P&gt;I EQ  3001   3009&lt;/P&gt;&lt;P&gt;I EQ  4001   4007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to check a variable is there in the above range or not.&lt;/P&gt;&lt;P&gt;Can somebody tell me the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Oct 28, 2008 4:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 15:00:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T15:00:39Z</dc:date>
    <item>
      <title>small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672963#M1099030</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 need to check a value is there or not in a range. Can somebody tell me the logic please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_ranges is having company code ranges like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I EQ  1001   1004&lt;/P&gt;&lt;P&gt;I EQ  2001   2006&lt;/P&gt;&lt;P&gt;I EQ  3001   3009&lt;/P&gt;&lt;P&gt;I EQ  4001   4007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to check a variable is there in the above range or not.&lt;/P&gt;&lt;P&gt;Can somebody tell me the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Oct 28, 2008 4:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672963#M1099030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672964#M1099031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF W_BUKRS IN R_BUKRS.
  WRITE: ' IT IS VALID'.
ELSE.
  WRITE: 'NOT VALID'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672964#M1099031</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-10-28T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672965#M1099032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF v_ccode IN r_ranges.
    "Company code exist in range.
ELSE.
    "Company code does not exist.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672965#M1099032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672966#M1099033</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;Use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if v_variable in r_range.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not v_variable in r_range.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672966#M1099033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672967#M1099034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before trying logic, correct the range. The option you should be using is 'BT', not 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672967#M1099034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672968#M1099035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_variable in r_range.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is checking only lower limit of the range. Ex: if ranges contains I  EQ   1001     1006. If I check the value 1003, If condition is failed. &lt;/P&gt;&lt;P&gt;What to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672968#M1099035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672969#M1099036</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;The filling up the range table is incorrect. When you have Low as well as High value means range.. you can't use 'EQ' as option instead use  'BT'.&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;Regds,&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672969#M1099036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672970#M1099037</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; It is checking only lower limit of the range. Ex: if ranges contains I  EQ   1001     1006. If I check the value 1003, If condition is failed. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my answer above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672970#M1099037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: small doubt in ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672971#M1099038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do what Rob suggested, do not use EQ, use BT.  EQ = equal = single value. BT = Between = range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-doubt-in-ranges/m-p/4672971#M1099038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:20:19Z</dc:date>
    </item>
  </channel>
</rss>

