<?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 compare 2 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601236#M269956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;i have to compare the fields of  2 tables(to check whether the values have changed for the fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables are of type vbap and contain all the fields of the table vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anybody know how to compare all the fields of the 2 tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was thinking of using loops but I guess there may be  an easier way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 08:14:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-10T08:14:28Z</dc:date>
    <item>
      <title>compare 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601236#M269956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;i have to compare the fields of  2 tables(to check whether the values have changed for the fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables are of type vbap and contain all the fields of the table vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anybody know how to compare all the fields of the 2 tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was thinking of using loops but I guess there may be  an easier way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601236#M269956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601237#M269957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can get all the table fields from table -DD03L   and then compare...&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;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601237#M269957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601238#M269958</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;You can use &amp;lt;itab1&amp;gt; &amp;lt;operator&amp;gt; &amp;lt;itab2&amp;gt;&lt;/P&gt;&lt;P&gt;where operator = [(EQ, =, NE, &amp;lt;&amp;gt;, &amp;gt;&amp;lt;, GE, &amp;gt;=, LE, &amp;lt;=, GT, &amp;gt;, LT, &amp;lt;)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;COL1 TYPE I,&lt;/P&gt;&lt;P&gt;COL2 TYPE I,&lt;/P&gt;&lt;P&gt;END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE TABLE OF LINE,&lt;/P&gt;&lt;P&gt;JTAB LIKE TABLE OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 3 TIMES.&lt;/P&gt;&lt;P&gt;LINE-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;LINE-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;  APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE ITAB TO JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-COL1 = 10. LINE-COL2 = 20.&lt;/P&gt;&lt;P&gt;APPEND LINE TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB GT JTAB.&lt;/P&gt;&lt;P&gt;WRITE / 'ITAB GT JTAB'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruthra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601238#M269958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601239#M269959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess u have to loop to compare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1 into wa_itab1.
  loop at itab2 into wa_itab2.
     if wa_itab1 = wa_itab2.
        *all the fields are equal
     else.
        *fields r not same.
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601239#M269959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601240#M269960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-tables/m-p/1601240#M269960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:33:13Z</dc:date>
    </item>
  </channel>
</rss>

