<?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: duplicate records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416426#M200292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Deleting Adjacent Duplicate Entries&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To delete adjacent duplicate entries use the following statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;                                  [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                             |ALL FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can try as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM ITAB COMPARING KUNNR VKORG VTWEG BSTKD BSTDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go thhru this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/06/aafd54fc4011d195280000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/06/aafd54fc4011d195280000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jul 2006 08:38:22 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2006-07-22T08:38:22Z</dc:date>
    <item>
      <title>duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416423#M200289</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;How to delete duplicate records of p.o. while checking with kunnr, vkorg, vtweg, bstkd, bstdk respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the Needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416423#M200289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T08:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416424#M200290</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;if your data is in a internal table i_tab , then sort and use the below statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_tab by kunnr vkorg vtweg bstkd bstdk &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_tab comparing kunnr vkorg vtweg bstkd bstdk &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... COMPARING f1 f2 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... COMPARING ALL FIELDS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Deletes adjacent duplicate entries from the internal table itab. If there are n duplicate entries in succession, the first entry is retained, and the following n-1 entries are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two lines are regarded as duplicates if their keys are identical. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return Code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;At least one duplicate was found, and at least one entry was deleted. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;No duplicates found, no entries deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... COMPARING f1 f2 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Two lines of the internal table itab are regarded as duplicates if they have identical contents in the fields f1, f2, ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... COMPARING ALL FIELDS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Two lines of the internal table are regarded as duplicates if all of their field contents are identical. &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;appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416424#M200290</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-22T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416425#M200291</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;Just sort the internal table and then use the statement delete adjacent from itab comparing field names...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorting is must...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416425#M200291</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-07-22T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416426#M200292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Deleting Adjacent Duplicate Entries&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To delete adjacent duplicate entries use the following statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;                                  [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                             |ALL FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can try as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM ITAB COMPARING KUNNR VKORG VTWEG BSTKD BSTDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go thhru this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/06/aafd54fc4011d195280000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/06/aafd54fc4011d195280000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416426#M200292</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-22T08:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416427#M200293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before deleting duplicate records, sort the internal table according to your needs. What fields you are going to sort. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then user adjacent duplicates statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416427#M200293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416428#M200294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you sort your internal table by kunnr, vkorg, vtweg, bstkd, bstdk &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt; [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;     |ALL FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giridhar..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 12:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416428#M200294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416429#M200295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to delete duplicate records.i suppose there are you ways. &lt;/P&gt;&lt;P&gt;One: not to select the duplicate records .for that use the key word DISTINCT for selecting multiple records.it will not select duplicate records.&lt;/P&gt;&lt;P&gt;Two:select all the records into a internal table.sort it ,then use 'DELETE ADJECENT DUPLICATES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please award points if it meets your requirement.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 04:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/1416429#M200295</guid>
      <dc:creator>muhammed_nishad</dc:creator>
      <dc:date>2006-07-24T04:29:40Z</dc:date>
    </item>
  </channel>
</rss>

