<?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: How to Compare 2 internal table data... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656652#M1095659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the internal tables defined are having the same structure then you can compare the way you did. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if itab1[] = itab2[].
 "they are same
else.
 " they are not equal
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are not working means the two internal tables may be different check in debug mode once and see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 14:52:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-14T14:52:11Z</dc:date>
    <item>
      <title>How to Compare 2 internal table data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656651#M1095658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i ve 2 internal tables, both contains NRIC numbers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now i want to compare whether the both table data is same or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried like &lt;/P&gt;&lt;P&gt; if itab1[] = itab2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how 2 compare both tables are having matching data r not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;sudeer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656651#M1095658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare 2 internal table data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656652#M1095659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the internal tables defined are having the same structure then you can compare the way you did. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if itab1[] = itab2[].
 "they are same
else.
 " they are not equal
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are not working means the two internal tables may be different check in debug mode once and see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656652#M1095659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare 2 internal table data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656653#M1095660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab1 into wa_itab1.
  read table itab2 into wa_itab2 with key NRIC = wa_itab1.
     if sy-subrc eq 0.
           Delete itab1 index sy-index.  " or
           Delete itab2 index sy-index.
     endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656653#M1095660</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-14T14:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare 2 internal table data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656654#M1095661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur replay...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ve done same thing what u ve given, but its not working........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but both tables having same data....no doubt on that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my require ment is i ve contants in both tables.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want 2 check if both should have same no of records and contant also should be same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-compare-2-internal-table-data/m-p/4656654#M1095661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:09:23Z</dc:date>
    </item>
  </channel>
</rss>

