<?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 data between a Database table and an internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573090#M2008737</link>
    <description>&lt;P&gt;You can: Select Inner join two data table.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 08:36:56 GMT</pubDate>
    <dc:creator>former_member808116</dc:creator>
    <dc:date>2022-06-15T08:36:56Z</dc:date>
    <item>
      <title>Compare data between a Database table and an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573087#M2008734</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
  &lt;P&gt;I want to compare two columns from an internal table (Specification number and Material Number) to the same two columns in a database table (ESTMJ). The specification number and material number assignment in the internal table should be the same as the specification number and material number assignment in the database table. I am pretty new to ABAP. How do i go about this comparison? &lt;/P&gt;
  &lt;P&gt;Should I pull the data from the db table and then compare it with the internal table? or can i directly compare the two columns of both tables? &lt;/P&gt;
  &lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;
  &lt;P&gt;Ejas. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573087#M2008734</guid>
      <dc:creator>ejas_nazeerutheen87</dc:creator>
      <dc:date>2022-06-14T19:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between a Database table and an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573088#M2008735</link>
      <description>&lt;P&gt;Version 1:&lt;BR /&gt;&lt;BR /&gt;Your internal table is ITAB1.&lt;BR /&gt;&lt;BR /&gt;//declare a 2nd internal table&lt;BR /&gt;&lt;BR /&gt;table I_ESTMJ_2 like ESTMJ.&lt;BR /&gt;&lt;BR /&gt;//load this 2nd internal table&lt;/P&gt;&lt;P&gt;select * from ESTMJ into table  i_ESTMJ_2.&lt;BR /&gt;&lt;BR /&gt;//compare&lt;BR /&gt;&lt;BR /&gt;loop at ITAB1.&lt;/P&gt;&lt;P&gt;  read table i_ESTMJ_2 where/with {material number assignment, aka, whatever you specifically looking for}&lt;BR /&gt;&lt;BR /&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    /*do whatever you wanted if records don't match or don't exist*/&lt;BR /&gt;&lt;BR /&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Version 2, delete what's extra:&lt;BR /&gt;&lt;BR /&gt;loop at ITAB1.&lt;BR /&gt;  delete i_ESTMJ_2 where  {I_STMJ_2 material number assignment} ne  {ITAB1-material number assignment}.&lt;BR /&gt;endloop.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573088#M2008735</guid>
      <dc:creator>Alterman</dc:creator>
      <dc:date>2022-06-14T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between a Database table and an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573089#M2008736</link>
      <description>&lt;P&gt;Thanks a lot Mikhail. Much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573089#M2008736</guid>
      <dc:creator>ejas_nazeerutheen87</dc:creator>
      <dc:date>2022-06-14T20:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between a Database table and an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573090#M2008737</link>
      <description>&lt;P&gt;You can: Select Inner join two data table.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-a-database-table-and-an-internal-table/m-p/12573090#M2008737</guid>
      <dc:creator>former_member808116</dc:creator>
      <dc:date>2022-06-15T08:36:56Z</dc:date>
    </item>
  </channel>
</rss>

