<?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: Abap Query - Delete duplicates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992188#M1895821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Moved from SAP ERP SD Billing to ABAP Development&lt;/SPAN&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;SPAN style="font-family: verdana,geneva;"&gt;G. Lakshmipathi&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 13:04:22 GMT</pubDate>
    <dc:creator>Lakshmipathi</dc:creator>
    <dc:date>2015-03-26T13:04:22Z</dc:date>
    <item>
      <title>Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992185#M1895818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt;I'm doing an abap query in SQ02 with LIKP and LIPS tables.&lt;/P&gt;&lt;P&gt;As output I just want lines with different entries in LIPS of material.&lt;/P&gt;&lt;P&gt;How can I delete the duplicates? With instruction &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;delete ADJACENT DUPLICATES FROM XXXX&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;COMPARING &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;A href="https://community.sap.com/"&gt;vbeln matnr, how can I identity the table?&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Dora&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 16:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992185#M1895818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-25T16:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992186#M1895819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all why duplicate comes, did you check the query input parameters?&lt;/P&gt;&lt;P&gt;If you still want to add coding, then put your question in ABAP forum for answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 19:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992186#M1895819</guid>
      <dc:creator>Shiva_Ram</dc:creator>
      <dc:date>2015-03-25T19:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992187#M1895820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dora&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For removing duplicate you need to fetch data into some internal table and then apply &lt;/P&gt;&lt;P&gt;delete adjacent clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax for this &lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM itab comparing f1 f2 f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here f1 f2 and f3 are list of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 20:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992187#M1895820</guid>
      <dc:creator>former_member610494</dc:creator>
      <dc:date>2015-03-25T20:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992188#M1895821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Moved from SAP ERP SD Billing to ABAP Development&lt;/SPAN&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;SPAN style="font-family: verdana,geneva;"&gt;G. Lakshmipathi&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 13:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992188#M1895821</guid>
      <dc:creator>Lakshmipathi</dc:creator>
      <dc:date>2015-03-26T13:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992189#M1895822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG&gt;&lt;EM&gt;Dora&lt;/EM&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;It is a very well known difficult task to use '&lt;EM&gt;&lt;STRONG&gt;Delete Adjacent Duplicates&lt;/STRONG&gt;&lt;/EM&gt;' syntax in Infoset Query because of the fact that you are not aware of the internal table.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Two methods to address this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;1. Study the repeating lines and use another suitable join in the tables manually, which can eliminate the undesirable duplicates.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;2. The other one I always practiced was, Study all fields of the repeating lines. Identify at least one the field value which is not same in these duplicate lines. Suppose you have a field ABCD and values X in one and Y in other. And you have decided to have the lines with value X. Then give the following syntax in the &lt;EM&gt;Record Processing &lt;/EM&gt;section of SQ02.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;CHECK TABLE-ABCD = 'X'.&amp;nbsp; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;This would remove the lines with Y.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="color: #548235; font-size: 14.0pt; text-decoration: underline; font-family: Mistral;"&gt;KJogeswaraRao&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992189#M1895822</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2015-03-26T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992190#M1895823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your answer.&lt;/P&gt;&lt;P&gt;The good of your answer is that now I know that this is not a simple question.&lt;/P&gt;&lt;P&gt;I can do sort the data before the &lt;EM&gt;Record Processing?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dora&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992190#M1895823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-26T18:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992191#M1895824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, the internal table figures in your question. So the answer is 'No'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 21:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992191#M1895824</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2015-03-26T21:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992192#M1895825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, my problem is that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an header table and an item table.&lt;/P&gt;&lt;P&gt;I want the output with just 1 line for each entry for document/material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: Doc A - Material 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc A - Material 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc A - Material 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output with just 2 lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc A - Material 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc A - Material 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can stay with the last document/material and compare and if is the next is the same I can make a ' check ' as you say.&lt;/P&gt;&lt;P&gt;But if the lines don't came in order this is not going to work.&lt;/P&gt;&lt;P&gt;There are any way of compare with the lines that as already been process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992192#M1895825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-27T09:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Query - Delete duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992193#M1895826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solutions for the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create an internal table.&lt;/P&gt;&lt;P&gt;Then with an additional field I verify if that record already exists. Then I check if doesn't exists inserts in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 09:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-delete-duplicates/m-p/10992193#M1895826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-29T09:14:46Z</dc:date>
    </item>
  </channel>
</rss>

