<?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: Comparing 2 internal Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108495#M1361722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to compare it line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have to perform it in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant use IT1[] = IT2[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 05:22:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-08T05:22:59Z</dc:date>
    <item>
      <title>Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108492#M1361719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two Internal tables with the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to compare their contents line by line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Loop at IT1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Read Table IT2 with key MBLNR = IT1-MBLNR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EndLoop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108492#M1361719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108493#M1361720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cant see where your problem is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108493#M1361720</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-08T05:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108494#M1361721</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;PRE&gt;&lt;CODE&gt;
sort: IT1, IT2.
if IT1[] = IT2[].
  write: 'Same'.
else.
  write: 'With difference'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108494#M1361721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108495#M1361722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to compare it line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have to perform it in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant use IT1[] = IT2[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108495#M1361722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108496#M1361723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;Your problem is not very much clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use loop instead of Read, because any of two same records, Read statement takes only first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at IT1.&lt;/P&gt;&lt;P&gt;loop at  IT2 where MBLNR = IT1-MBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndLoop.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108496#M1361723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108497#M1361724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try IT1 [ ] = IT2 [ ] .&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108497#M1361724</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-09-08T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108498#M1361725</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;Before comparing sort bothinternal tables on all the fields &amp;amp; compare line to line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108498#M1361725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108499#M1361726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get Number of lines of table1 and table2. if different, tables are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The do a DO loop DO lines times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read from table 1 with index into workarea1, read from table2 by index into workarea 2. Compare both workareas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108499#M1361726</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-08T05:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108500#M1361727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is not clear to you all. Check the below detail description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Internal table of same structure. Both Internal tables contain 70 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both have a primary key DOCNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sorted both Internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to check if their is any change in contents in IT2 with respect to the contents of IT1-DOCNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to check the IT2 field by field &amp;amp; Line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT1 -&amp;gt; &lt;/P&gt;&lt;P&gt;DOCNO    EBELN     MATNR    LIFNR    DMBTR&lt;/P&gt;&lt;P&gt;50001      25001     110-001   10021    100&lt;/P&gt;&lt;P&gt;50002      25002     110-001   10021    200&lt;/P&gt;&lt;P&gt;50003      25003     110-001   10021    500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT2 -&amp;gt; &lt;/P&gt;&lt;P&gt;DOCNO    EBELN     MATNR    LIFNR    DMBTR&lt;/P&gt;&lt;P&gt;50001      25001     110-001   10021    300&lt;/P&gt;&lt;P&gt;50002      25002     110-001   10021    200&lt;/P&gt;&lt;P&gt;50003      25003     110-001   10021    600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as shown above, I want to compare both the internal tables field by field. &lt;/P&gt;&lt;P&gt;Like: In row 1 &amp;amp; 3 only DMBTR is different. Rest is same.&lt;/P&gt;&lt;P&gt;So, i want to copy such rows in separate IT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me how to code the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Gupta on Sep 8, 2009 7:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108500#M1361727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108501#M1361728</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;there is two way to do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop tab1 .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    read table tab2 with key fld1 = itab1-fld1  fld2 = itab1-fld2 fld3 = itab1-fld3 . (compare all fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    match .&lt;/P&gt;&lt;P&gt; else .&lt;/P&gt;&lt;P&gt;   not match .&lt;/P&gt;&lt;P&gt; endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATSXT_COMPARE_STRUCTURES&lt;/P&gt;&lt;P&gt;CTVB_COMPARE_TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jitendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108501#M1361728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108502#M1361729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unclear problems will result in unclear solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line by line is completly different to field by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through the tables and compare the fields. The needed statement is IF. This is just a  laborious task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop, read from both tables into different work areas, compare field by field with if. Thats it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108502#M1361729</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-08T05:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108503#M1361730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is a laborious task so i cant use if Condition with in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that only i am asking if their is any dynamic solution for handling such requirement or if there is any standard function to handle the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108503#M1361730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T05:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108504#M1361731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By whichever way you go finally you need to compare using IF statement only. it may be custom code or standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other option may be you can try using SEARCH &amp;lt;itab&amp;gt; FOR &amp;lt;data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 07:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108504#M1361731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T07:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108505#M1361732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first sort both the internal tables.&lt;/P&gt;&lt;P&gt; loop at the first internal table (which has more entries) and read the content of the second internal table(which has less entries) for every occurence of the first internal table and have a count if count increses the tables are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*for checking the no of entries in the internal table and looping based on the no of entries&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE  itab1 LINES COUNT_1.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE  itab2 LINES COUNT_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  : count type i default 0,  *variable for checking  the same content&lt;/P&gt;&lt;P&gt;             count_1 type i default 0,&lt;/P&gt;&lt;P&gt;             count_2  type i default 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB1 field1 field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB2 field1 field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF count1 &amp;gt;count2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 INTO watab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab2 INTO watab2 WITH KEY field1 = 'VALUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab2 INTO watab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab1INTO watab1 WITH KEY field1 = 'VALUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF count &amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write  ' both the contents are same'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write 'Different'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u.&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;Gopalakrishnan Ulagajothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108505#M1361732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108506#M1361733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Please check withthe following ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.describe structureof two internal tables.&lt;/P&gt;&lt;P&gt;den create dynamic subroutine and apply loop in one table.&lt;/P&gt;&lt;P&gt;it will take one by one all he fields and compare it with another fields.&lt;/P&gt;&lt;P&gt;3. u are having fundamentals od how to compare.&lt;/P&gt;&lt;P&gt;please &lt;/P&gt;&lt;P&gt;try dis it will work and with optimized code also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 10:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/6108506#M1361733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T10:26:18Z</dc:date>
    </item>
  </channel>
</rss>

