<?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: Sort before delete adjacent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249438#M1014304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as all have said you should always sort the internal table before using DELETE ADJACENT DUPLICATES, as otherwise you may not get the appropriate result you want, if the table is not sorted then after using DELETE ADJACENT DUPLICATES also there might be duplicate records left, so to be sure that  all the duplicate records have been deleted  you should use sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Pritam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 06:33:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T06:33:09Z</dc:date>
    <item>
      <title>Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249427#M1014293</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;I have a requirement for delete adjacent records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DELETE ADJACENT DUPLICATES FROM IT_OPSALES COMPARING BUKRS ENAME NAME1 BSTKD VBELN AUDAT POSNR MATNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it mandatory to sort internal table before delete adjacent ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249427#M1014293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249428#M1014294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very compulsory to sort the table when you use the statement DELETE ADJACENT DUPLICATES. Because it checks if the adjacent record is similar . If it is similar it will delete else it will not delete. So it is compulsory to sort in order to get the appropriate output.&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;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249428#M1014294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249429#M1014295</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; Yes sort it on BUKRS ENAME NAME1 BSTKD VBELN AUDAT POSNR MATNR fields ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort IT_OPSALES  by BUKRS ENAME NAME1 BSTKD VBELN AUDAT POSNR MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249429#M1014295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249430#M1014296</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;Yes it is Mandatory to sort the internal table because as soon as you sort the Table all the SAME entries come Adjacent to each other so there after your statement works properly&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249430#M1014296</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-30T06:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249431#M1014297</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;Yes , It is mandetory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detail please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/06/aafd54fc4011d195280000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/06/aafd54fc4011d195280000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249431#M1014297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249432#M1014298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Mark, it always better to SORT the internal table before you use DELETE ADJECENT  DUPLICATES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249432#M1014298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249433#M1014299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; yes sorting is mandatory.&lt;/P&gt;&lt;P&gt;after sorting only u can do the delete adjacent duplicates.&lt;/P&gt;&lt;P&gt;when we sort all the data which are same come one after one so u can delete the adjacent duplicate data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249433#M1014299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249434#M1014300</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;After selecting the data into internal table. first we have to sort that internal table and use delete adjacent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;select * from zse_role into itab_role.&lt;/P&gt;&lt;P&gt;sort itab_role by i_rolecd.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;vasavi.v&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249434#M1014300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249435#M1014301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes Mark, It is mandatory to sort before deleting adjacent records, or else the system compares only with adjacent records. If the adjacent is not found as same ,it wont be deleted. At the end of all, the duplicate will still exists after deletion.&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;Jijo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249435#M1014301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249436#M1014302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to definitely SORT before using DELETE ADJACENT DUPLICATES&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As you are using COMPARING in delete with some fields you need to SORT the table with those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249436#M1014302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249437#M1014303</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;let us we have an table with following record in itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1  F2  F3  F4&lt;/P&gt;&lt;P&gt;a    b     c    d&lt;/P&gt;&lt;P&gt;c    x    y     z&lt;/P&gt;&lt;P&gt;a    b    d     e&lt;/P&gt;&lt;P&gt;c    x    y     h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now here if i apply &lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB1 COMPARING F1 F2  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here no record wil be deleteted &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if u sort the itab1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then apply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB1 COMPARING F1 F2  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have only two record  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spo it is always recomended to apply sort defore delete adjacent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249437#M1014303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort before delete adjacent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249438#M1014304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as all have said you should always sort the internal table before using DELETE ADJACENT DUPLICATES, as otherwise you may not get the appropriate result you want, if the table is not sorted then after using DELETE ADJACENT DUPLICATES also there might be duplicate records left, so to be sure that  all the duplicate records have been deleted  you should use sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Pritam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-before-delete-adjacent/m-p/4249438#M1014304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:33:09Z</dc:date>
    </item>
  </channel>
</rss>

