<?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 range tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682804#M1449876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lt_range_2 .
IF lt_range_2-low IN lt_range_1.
"Value exist
ELSE.
"not exist.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This would imply that you only have -low filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about (at least for a small tab): &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT from tab into tab1 where key in lt_range1.
SELECT from tab into tab2 where key in lt_range2.
IF tab2[] = tab1[].
" hurray!
ELSE.
" ahum...
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Mar 2010 14:55:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-05T14:55:57Z</dc:date>
    <item>
      <title>Compare range tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682802#M1449874</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 have two range tables and want to compare them. That means, I need to check, if the values, selected in one range table&lt;/P&gt;&lt;P&gt;are also selected in the other one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have range table lt_range_1 &amp;amp; lt_range_2.&lt;/P&gt;&lt;P&gt;In table lt_range_2 I have some single values and in lt_range_1 I have a range defined. No I want to know, if the single values fo lt_range_2 are in the selected range of lt_range_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 13:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682802#M1449874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare range tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682803#M1449875</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;Check below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT lt_range_2 .
IF lt_range_2-low IN lt_range_1.
"Value exist
ELSE.
"not exist.
ENDIF.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that ranges works similar to select options. Check F1 help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 13:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682803#M1449875</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-05T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare range tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682804#M1449876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lt_range_2 .
IF lt_range_2-low IN lt_range_1.
"Value exist
ELSE.
"not exist.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This would imply that you only have -low filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about (at least for a small tab): &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT from tab into tab1 where key in lt_range1.
SELECT from tab into tab2 where key in lt_range2.
IF tab2[] = tab1[].
" hurray!
ELSE.
" ahum...
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 14:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682804#M1449876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare range tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682805#M1449877</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;Welcome to SCN!!!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here question is about comparing the single values in one range variable (always has it in low) with the range of values in another range variable. Direct comparison won't work here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
In table lt_range_2 I have some single values and in lt_range_1 I have a range defined. Now I want to know, if the single values fo lt_range_2 are in the selected range of lt_range_1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 15:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-range-tables/m-p/6682805#M1449877</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-05T15:03:46Z</dc:date>
    </item>
  </channel>
</rss>

