<?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 data between two different systems? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635389#M1762335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in a program where I have to create a function module which selects data from another system, and compares it to the actual one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In this case, a list of customers is in the two tables, but these customers may have different KUNNR's in the two different tables. So, I have to compare the KUNNR in the actual system with the KUNNR in the other system.&amp;nbsp; Then, I have to show a list with the customers which have different KUNNR's in the two systems. Can somebody give me an idea of how can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 11:21:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-06T11:21:29Z</dc:date>
    <item>
      <title>Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635389#M1762335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in a program where I have to create a function module which selects data from another system, and compares it to the actual one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In this case, a list of customers is in the two tables, but these customers may have different KUNNR's in the two different tables. So, I have to compare the KUNNR in the actual system with the KUNNR in the other system.&amp;nbsp; Then, I have to show a list with the customers which have different KUNNR's in the two systems. Can somebody give me an idea of how can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635389#M1762335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635390#M1762336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Shkelqim&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a FM (e.x. 'ZTEST_CHECK_CUSTOMER') of type RFC(Remote Function Call). And then in order to send data you have to configure RFC connection (e.x 'ZTEST_RFC') in SM59 of type ABAP connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take importing parameter as Customer Number(KUNNR) and tables as Customer details. Write a select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * into table IT_KNA1 from KNA1 where KUNNR in S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call that created FM in destination system where you want to check the values. As&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function 'ZTEST_CHECK_CUSTOMER' Destination 'ZTEST_RFC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in Destination system you can select KNA1 data in different table and compare it with source table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Govind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635390#M1762336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T11:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635391#M1762337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try to use Submit and Return Statement .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Thanks and Regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Ramkumar R .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635391#M1762337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T11:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635392#M1762338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding of your requirement,&lt;/P&gt;&lt;P&gt;you need to have a Z mapping table&amp;nbsp; in either system that maps the KUNNRs between the systems. For example,&amp;nbsp; the table caan have fields like&lt;/P&gt;&lt;P&gt;KUNNR system A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KUNNR system B&lt;/P&gt;&lt;P&gt;1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAAA&lt;/P&gt;&lt;P&gt;2222&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BBBB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;3333&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3333&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this you can produce the list with different KUNNRs, in this case first 2 records of the table.&lt;/P&gt;&lt;P&gt;I hope I have understood your requirement correctly.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635392#M1762338</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-08-06T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635393#M1762339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Shkelqim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Use the Fm RFC_READ_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can populate the Option table with the Selection Criteria(similar to how you wirte a dynamic where clause) and access the External System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on certain criteria you should be able to find a field which maps the customers in you original system to the external system so that you may identify the customers .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a limitation on the length of the data that you can import(512). so only fetch the fields that you require from the External system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if you require any further Information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635393#M1762339</guid>
      <dc:creator>vamsixk</dc:creator>
      <dc:date>2013-08-06T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635394#M1762340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create two internal tables in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will be filled through a SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second one, look for a function module called RFC_READ_TABLE (I think it's called that way). Then learn how to call a function module from an external SAP system (check the help of CALL FUNCTION: you will find a clause called DESTINATION, read it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have both your tables full, create an algorithm to compare both tables. Hints: LOOP INTO and READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And take into consideration Jürgen's advice in your other thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635394#M1762340</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2013-08-06T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635395#M1762341</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 compare data between different systems through multiple ways&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in; padding-left: 45px; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&lt;SPAN class="pasted-list-info"&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;There is a function called “RFC_READ_TABLE” , through which we can read the other system tables entries . If we have RFC connection and a valid user and password to access the data on the receiving system. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-indent: -0.25in; padding-left: 22px; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&lt;SPAN class="pasted-list-info"&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt; with maint.-view&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.25in; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;use: sm30 - maintain - utilities - adjust - enter rfc connection - mark - adjust&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other tables:&amp;nbsp; compare internal tables with your fm or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp; fm TABLE_ENTRIES_GET_VIA_RFC and modify your db-table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in; padding-left: 22px; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: Symbol; color: #333333; font-size: 10pt;"&gt;&lt;SPAN class="pasted-list-info"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;3) Use the Transaction code &amp;lt;b&amp;gt;SCMP&amp;lt;/b&amp;gt; to compare the tables. you need RFC conection for the camparison server client ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;Prameters for thsi T.code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;lt;b&amp;gt;View/Table:&amp;lt;/b&amp;gt; Please give the Table name which you want to compare&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;lt;b&amp;gt;R/3 Conection:&amp;lt;/b&amp;gt;: Give the RFC conection name (Use F4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;then there is some option, select the options to meet your requirment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635395#M1762341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635396#M1762342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shkelqim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to retrieve data from another system, use &lt;STRONG&gt;RFC enabled function module&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;RFC connection&lt;/STRONG&gt; must be created in &lt;STRONG&gt;SM59&lt;/STRONG&gt; and the &lt;STRONG&gt;function module&lt;/STRONG&gt; must be present in the &lt;STRONG&gt;destination system&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters should use &lt;STRONG&gt;pass by value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get all the customer numbers from the destination system from table KNA1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;FUNCTION&lt;/SPAN&gt; &amp;lt;Function_module_name&amp;gt; DESTINATION &amp;lt;Destination_System&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Importing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gt_kna1 = &amp;lt;All customer numbers from KNA1 of the destination system&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sort gt_kna1 by kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;actual system&lt;/STRONG&gt;, retrieve all the values of &lt;STRONG&gt;new customer numbers and old customer numbers &lt;/STRONG&gt;using &lt;STRONG&gt;SELECT &lt;/STRONG&gt;&lt;STRONG&gt;statement based on the old customers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if gt_kna1 is not initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select kunnr altkn from knb1 into table lt_knb1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for all entries in gt_kna1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE altkn = gt_kna1-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sort lt_knb1 by altkn.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at gt_kna1 into gs_kna1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read table lt_knb1 into ls_knb1 with key altkn = gs_kna1-kunnr binary search.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Both old and new customer numbers are the same, proceed to the next record&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if gs_kna1-kunnr = ls_knb1-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Both old and new customer numbers are different, store it into another internal table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_final-new = ls_knb1-kunnr. "New Customer Number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_final-old&amp;nbsp;&amp;nbsp; = gs_kna1-kunnr. "Old Customer Number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append ls_final to lt_final.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear: ls_final.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear: ls_knb1, gs_kna1.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;T. Prasanna Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635396#M1762342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data between two different systems?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635397#M1762343</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;First fetch the respective values from table A from system 1 through a common SELECT statement with the appropriate WHERE conditions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the Remote enabled function module 'RFC_READ_TABLE' where u mention the destination ( system 2 ), table name (eg. table A) and the respective WHERE conditions in the OPTION parameter and execute. This fetches the appropriate values into the DATA parameter ( name it table 2 ) of the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now loop table 1 and read table 2 for the corresponding values of table 1. If sy-subrc = 0 delete those values from both the tables A and B. Thus only the values which have mismatch are left out in both the tables which u can read and append to a final table.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-data-between-two-different-systems/m-p/9635397#M1762343</guid>
      <dc:creator>mayur_priyan</dc:creator>
      <dc:date>2013-08-06T12:50:14Z</dc:date>
    </item>
  </channel>
</rss>

