<?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: fetching duplicate record entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455985#M1056281</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;Suppose the table sflight.&lt;/P&gt;&lt;P&gt;try this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab1 into wa1.
  Loop at itab1 into wa2 where carrid = wa1-carrid
                                             connid = wa1-connid.
   Append wa2 to tab2.
 endloop.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now internal table itab2 has the duplicate records if there are any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2008 11:27:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-09T11:27:02Z</dc:date>
    <item>
      <title>fetching duplicate record entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455982#M1056278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some data in a DB table, and i am trying to upload some records into the DB table using an excel sheet. I must find the duplicate records if any from the excel sheet ,ased on the primary key alone,and send those records as a mail to the user.&lt;/P&gt;&lt;P&gt;Please,if ny of you people could provide me with a logic to go ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Winnie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 10:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455982#M1056278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: fetching duplicate record entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455983#M1056279</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;&lt;/P&gt;&lt;P&gt;Use GUI_UPLOAD function module to upload the records from presentation server to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now delete the duplicate records from internal table using delete adjacent duplicate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then insert the records from internal table to DB table.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455983#M1056279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: fetching duplicate record entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455984#M1056280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sujit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hav done all what you hav said, but i require those duplicate entry records, cant just delete them. i need to identify them, and move them to another int. table. My problem is how to identify them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455984#M1056280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: fetching duplicate record entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455985#M1056281</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;Suppose the table sflight.&lt;/P&gt;&lt;P&gt;try this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab1 into wa1.
  Loop at itab1 into wa2 where carrid = wa1-carrid
                                             connid = wa1-connid.
   Append wa2 to tab2.
 endloop.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now internal table itab2 has the duplicate records if there are any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455985#M1056281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: fetching duplicate record entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455986#M1056282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload data to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT: itab1 BY primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2[] = itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROm itab2 COMPARING primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 INTO wa.&lt;/P&gt;&lt;P&gt;READ TABLE itab2 WITH KEY primary keys BINARY SEARCH TRANSPORTING NO FIELDS .&lt;/P&gt;&lt;P&gt;If sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;update data base table.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;APPEND that record to internal table. After end loop send this internal table as mail.&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;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-duplicate-record-entries/m-p/4455986#M1056282</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-09T11:36:01Z</dc:date>
    </item>
  </channel>
</rss>

