<?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: Delete duplicate row from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723425#M1109031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other key in the itab on which you can short itab and then SORT itab by that key and then delete itab comparing that key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2008 08:11:34 GMT</pubDate>
    <dc:creator>Sandeep_Panghal</dc:creator>
    <dc:date>2008-11-17T08:11:34Z</dc:date>
    <item>
      <title>Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723424#M1109030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the all duplicate row except first one.&lt;/P&gt;&lt;P&gt;Searching for the all the duplicate rows should get deleted except last one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723424#M1109030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723425#M1109031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other key in the itab on which you can short itab and then SORT itab by that key and then delete itab comparing that key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723425#M1109031</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2008-11-17T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723426#M1109032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reshma,&lt;/P&gt;&lt;P&gt;Sort the itab in descending order of the fields that you want the records for, and then write DELETE ADJACENT DUPLICATES FROM itab. When you'll sort by descending order, the last record should be on the top and will be kept deleting the remaining records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723426#M1109032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723427#M1109033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    DELETE ADJACENT DUPLICATES FROM itab comparing field1,field2......or all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before doing this...you have to sort your internal table with respect to those field1,field2....then use the syntax of Delete.&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723427#M1109033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723428#M1109034</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;sort the internal table with some Keys as per your requirement and then use Command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM itab &lt;/P&gt;&lt;P&gt;                                          &lt;STRONG&gt;COMPARING&lt;/STRONG&gt; &amp;lt;field names on which you sorted the table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will delete the duplacte records by comparing the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723428#M1109034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723429#M1109035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by &amp;lt;fields1&amp;gt; &amp;lt;field2&amp;gt; .......... ascending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723429#M1109035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723430#M1109036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reshma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the DELETE ADJACENT DUPLICATES......You should always sort the internal table. Now if the records are as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;001     abc     10000&lt;/P&gt;&lt;P&gt;001     abc     1000&lt;/P&gt;&lt;P&gt;002     def       20000&lt;/P&gt;&lt;P&gt;002     def       2000&lt;/P&gt;&lt;P&gt;003     xyz      30000&lt;/P&gt;&lt;P&gt;003     xyz      3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these entries suppose you want only three entries that is &lt;/P&gt;&lt;P&gt;001     abc     1000&lt;/P&gt;&lt;P&gt;002     def       2000&lt;/P&gt;&lt;P&gt;003     xyz      3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now sort the table by amt ascending. then the entries in the table will be&lt;/P&gt;&lt;P&gt;001     abc     1000&lt;/P&gt;&lt;P&gt;001     abc     10000&lt;/P&gt;&lt;P&gt;002     def       2000&lt;/P&gt;&lt;P&gt;002     def       20000&lt;/P&gt;&lt;P&gt;003     xyz      3000&lt;/P&gt;&lt;P&gt;003     xyz      30000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now DELETE ADJACENT DUPLICATES....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your entries. This will solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-row-from-internal-table/m-p/4723430#M1109036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T08:20:10Z</dc:date>
    </item>
  </channel>
</rss>

