<?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: IN range comparison in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379527#M811474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohh great..you solved it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 10:04:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T10:04:41Z</dc:date>
    <item>
      <title>IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379517#M811464</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;How do I check if a value is in a range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing the 'IN' clause as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my test_value is declared as :-&lt;/P&gt;&lt;P&gt;lv_current_value       TYPE atwrt, with a value of  '210'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my range_table is declared as :-&lt;/P&gt;&lt;P&gt;RANGES: lr_check_value FOR ausp-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and has the table entry = &lt;/P&gt;&lt;P&gt;sign = 'I',&lt;/P&gt;&lt;P&gt;option = 'BT'.&lt;/P&gt;&lt;P&gt;low = '200'&lt;/P&gt;&lt;P&gt;high = '400'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have expected the following test to come out positive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF test_value IN lr_check_value.&lt;/P&gt;&lt;P&gt;   test = positive&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  test = negative.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can ayone shed any light?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379517#M811464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379518#M811465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following code works. Compare it with your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test type string.&lt;/P&gt;&lt;P&gt;parameters : lv_value TYPE atwrt default  '210'.&lt;/P&gt;&lt;P&gt;RANGES: lr_check_value FOR ausp-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_check_value-sign = 'I'.&lt;/P&gt;&lt;P&gt;lr_check_value-option = 'BT'.&lt;/P&gt;&lt;P&gt;lr_check_value-low = '200'.&lt;/P&gt;&lt;P&gt;lr_check_value-high = '400'.&lt;/P&gt;&lt;P&gt;append lr_check_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lv_value IN lr_check_value.&lt;/P&gt;&lt;P&gt;test = 'positive'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;test = 'negative'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379518#M811465</guid>
      <dc:creator>DirkAltmann</dc:creator>
      <dc:date>2008-02-22T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379519#M811466</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; lr_check_value -sign = 'I'.&lt;/P&gt;&lt;P&gt; lr_check_value -option = 'BT'.&lt;/P&gt;&lt;P&gt; lr_check_value -low = '200'.&lt;/P&gt;&lt;P&gt; lr_check_value -high = '400'.&lt;/P&gt;&lt;P&gt; append  lr_check_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can you 'IN' operator to check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379519#M811466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379520#M811467</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;Tried the same code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: p_auwrt TYPE ausp-atwrt VALUE '210'.

RANGES: r_auwrt FOR ausp-atwrt.

r_auwrt-sign = 'I'. r_auwrt-option = 'BT'.
r_auwrt-low = '200'. r_auwrt-high = '400'.
APPEND r_auwrt.

IF p_auwrt IN r_auwrt.
  WRITE:/ 'positive'.
ELSE.
  WRITE:/ 'negative'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works perfectly fine. &lt;/P&gt;&lt;P&gt;Just compare your code against this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379520#M811467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379521#M811468</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 have to use append statement..&lt;/P&gt;&lt;P&gt;sign = 'I',&lt;/P&gt;&lt;P&gt;option = 'BT'.&lt;/P&gt;&lt;P&gt;low = '200'&lt;/P&gt;&lt;P&gt;high = '400'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lr_check_value . it will work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379521#M811468</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-02-22T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379522#M811469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write the code as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your coding UR not giving any default value to test_value .. instead&lt;/P&gt;&lt;P&gt;lv_current_value is defaulted to 210 ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*my test_value is declared as :-&lt;/P&gt;&lt;P&gt;*lv_current_value TYPE atwrt, with a value of '210'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ausp.&lt;/P&gt;&lt;P&gt;data : test_value TYPE atwrt value '210'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: lr_check_value FOR ausp-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_check_value-sign = 'I'.&lt;/P&gt;&lt;P&gt;lr_check_value-option = 'BT'.&lt;/P&gt;&lt;P&gt;lr_check_value-low = '200'.&lt;/P&gt;&lt;P&gt;lr_check_value-high = '400'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lr_check_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF test_value IN lr_check_value.&lt;/P&gt;&lt;P&gt; write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'positive'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'negative'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379522#M811469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379523#M811470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was appending to the table but if&lt;/P&gt;&lt;P&gt;you substitute the ranges values to be from value 85 and the to value to be 213 &lt;/P&gt;&lt;P&gt;with test value = 200&lt;/P&gt;&lt;P&gt;the test is negative&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 09:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379523#M811470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379524#M811471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;however if if use '085' to '213' as the range&lt;/P&gt;&lt;P&gt;and test value = 200&lt;/P&gt;&lt;P&gt;the test is +ve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was  the declarationn of the range, which is character based - doh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 10:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379524#M811471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T10:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379525#M811472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TS,&lt;/P&gt;&lt;P&gt;  can you debug the program and check the values in the range lr_check_value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 10:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379525#M811472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379526#M811473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check with low value as 085 , it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_auwrt-low = '085'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 10:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379526#M811473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: IN range comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379527#M811474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohh great..you solved it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 10:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-range-comparison/m-p/3379527#M811474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T10:04:41Z</dc:date>
    </item>
  </channel>
</rss>

