<?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: Deleting duplicate data from a deep structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260596#M1215020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for d suggestion but can you tell me if my assumption dat this DELETE ADJACENT does not works on Deep structure is right or wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shoeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 14:31:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-09T14:31:57Z</dc:date>
    <item>
      <title>Deleting duplicate data from a deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260594#M1215018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this deep structure in my program (an internal table which contains another internal table).&lt;/P&gt;&lt;P&gt;I fetch data in it and now I want to delete adjacent duplicates from that deep structure.&lt;/P&gt;&lt;P&gt;I have used the command " DELTE ADJACENT DUPLICATES..COMPARING ALL FIELDS".&lt;/P&gt;&lt;P&gt;But it appears this has no effect on the deep structure. &lt;/P&gt;&lt;P&gt;Kindly suggest or let me know if my understanding is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shoeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260594#M1215018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting duplicate data from a deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260595#M1215019</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;Take the deep internal table data in to seperate internal table and use DELETE ADJACENT DUPLICATES statement on it and then update the Deep internal table with the new internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260595#M1215019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting duplicate data from a deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260596#M1215020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for d suggestion but can you tell me if my assumption dat this DELETE ADJACENT does not works on Deep structure is right or wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shoeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260596#M1215020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting duplicate data from a deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260597#M1215021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to specify the name of the deep internal table in a separate statment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
here itab is the main table and itab1 is the deep table within itab.
DELETE ADJACENT DUPLICATES from itab-itab1 comparing all fields
&lt;/CODE&gt;&lt;/PRE&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, 09 Mar 2009 14:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260597#M1215021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting duplicate data from a deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260598#M1215022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one correction to my code is that you will have loop at the main table and then within that delete the duplicates of the deep table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"here itab is the main table and itab1 is the deep table within itab.

Sort itab.
DELETE ADJACENT DUPLICATES from itab comparing all fields.  " this will not delete the records from inner tables,

" to delete duplicates of deep table

Loop at itab.
 Sort itab-itab1.
 DELETE ADJACENT DUPLICATES from itab-itab1 comparing all fields.
Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to answer your question, the delete adjacent duplicates does work on deep tables, but they need to be handled separately as given in the above code.&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, 09 Mar 2009 15:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-duplicate-data-from-a-deep-structure/m-p/5260598#M1215022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T15:11:02Z</dc:date>
    </item>
  </channel>
</rss>

