<?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 two tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430020#M823937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the problem with function "CTVB_COMPARE_TABLES" that when I have "STRING"-Fields in my table, then it produce a shortdump ASSIGN_CASTING_ILLEGAL_CAST in include LBUSSF00.&lt;/P&gt;&lt;P&gt;(line 95)&lt;/P&gt;&lt;P&gt;**....Prepare key for selection.........................................&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  **&lt;STRONG&gt;assign &amp;lt;lfs_table_old&amp;gt; to &amp;lt;lfs_table_x&amp;gt; casting.   "UNICODE&lt;/STRONG&gt;!**&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  assign &amp;lt;lfs_table_x&amp;gt;(key_length) to &amp;lt;lfs_table_key&amp;gt; casting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**....Select corresponding record in new table if it is changed.........                                                                                &lt;/P&gt;&lt;P&gt;WHAT CAN I DO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 08:58:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T08:58:19Z</dc:date>
    <item>
      <title>Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430014#M823931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz let me know if there is any transaction to compare the fields used in two tables or anyother way to do the same.&lt;/P&gt;&lt;P&gt;just to check the guid and partner id &lt;/P&gt;&lt;P&gt;Like we used to compare two programs in the same screen using SE 39&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430014#M823931</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-02-14T10:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430015#M823932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CATSXT_COMPARE_STRUCTURES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CTVB_COMPARE_TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430015#M823932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430016#M823933</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;   We can have one choice that we can compare the contents in 2 internal tables using FM 'CTVB_COMPARE_TABLES'. Just extract the data from those 2 tables and use this function module this will return three internal tables with deleted entries, new entries and modified intries in new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430016#M823933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430017#M823934</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;Try T-Code SCMP or you can go into the specific table you want to compare (SM31) and select "Utilities" then "Comparison" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vasudha L on Feb 14, 2008 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430017#M823934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430018#M823935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF it_1[]  =  it_2[].   " Tables contents are the same&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;                           " Tables contents are different&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;&lt;/P&gt;&lt;P&gt;If they have different structure, loop one of the tables, and then read the other in the loop, then compare field by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if   you don't need the contents (just comparing) you can do like this, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_1 INTO wa_1.&lt;/P&gt;&lt;P&gt;   READ TABLE it_2 WITH KEY field2 = wa_1-field2&lt;/P&gt;&lt;P&gt;                            field5 = wa_1-field5&lt;/P&gt;&lt;P&gt;                   TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Records are in both the  tables (field2 and field5 are the fields which are common in both tables).&lt;/P&gt;&lt;P&gt;   ENDIF.&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;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430018#M823935</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-02-14T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430019#M823936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends,&lt;/P&gt;&lt;P&gt;when i try to execute the FM CTVB_COMPARE_TABLES . i got the following error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare the fields used in two differeent tables..&lt;/P&gt;&lt;P&gt;and not the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all ur answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error generating the test frame&lt;/P&gt;&lt;P&gt;Message no. FL819&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system could not generate a syntactically correct test frame for function module CTVB_COMPARE_TABLES. You therefore cannot test the function module using the test environment. You have probably used an ABAP feature in the interface definition that is not yet supported in the test environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ANY TABLE" expected, not "STANDARD TABLE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether you can change the interface of the function module so that it is possible to generate the test frame. If this is not possible,you will have to write your own utility for testing the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure for System Administration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 12:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430019#M823936</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-02-14T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430020#M823937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the problem with function "CTVB_COMPARE_TABLES" that when I have "STRING"-Fields in my table, then it produce a shortdump ASSIGN_CASTING_ILLEGAL_CAST in include LBUSSF00.&lt;/P&gt;&lt;P&gt;(line 95)&lt;/P&gt;&lt;P&gt;**....Prepare key for selection.........................................&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  **&lt;STRONG&gt;assign &amp;lt;lfs_table_old&amp;gt; to &amp;lt;lfs_table_x&amp;gt; casting.   "UNICODE&lt;/STRONG&gt;!**&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  assign &amp;lt;lfs_table_x&amp;gt;(key_length) to &amp;lt;lfs_table_key&amp;gt; casting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**....Select corresponding record in new table if it is changed.........                                                                                &lt;/P&gt;&lt;P&gt;WHAT CAN I DO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430020#M823937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430021#M823938</link>
      <description>&lt;P&gt;DDIC tables and views:&lt;/P&gt;&lt;P&gt;Goto SE16 using view DD03VV and specify the two tables you want to compare in selection field TABNAME, then sort by FIELDNAME.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430021#M823938</guid>
      <dc:creator>lucdealethea</dc:creator>
      <dc:date>2020-01-07T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430022#M823939</link>
      <description>&lt;P&gt;You have answered a 12 years old question &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430022#M823939</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-01-07T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430023#M823940</link>
      <description>&lt;P&gt;Thanks Luc, your answer on 12 years old question was helpful to me.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 10:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-two-tables/m-p/3430023#M823940</guid>
      <dc:creator>former_member614707</dc:creator>
      <dc:date>2020-08-21T10:29:36Z</dc:date>
    </item>
  </channel>
</rss>

