<?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 only in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452352#M1414033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working,&lt;/P&gt;&lt;P&gt;Can u give me sample..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2010 13:45:34 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2010-01-05T13:45:34Z</dc:date>
    <item>
      <title>Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452342#M1414023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;I am working On report,&lt;/P&gt;&lt;P&gt;In that i have to delete only duplicate records , ( Delete adjestent duplicate comapring field will delete the entire row)&lt;/P&gt;&lt;P&gt;I dont want to delete entire row just want to show duplicate records empty on the next row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For EXample&lt;/P&gt;&lt;P&gt;DOc.NO   Customr   Advnce  scheme&lt;/P&gt;&lt;P&gt;1234        11111      1000         400&lt;/P&gt;&lt;P&gt;1234         1111        1000        200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above doc number customer and advnce fields are having same values and scheme is having differnt value&lt;/P&gt;&lt;P&gt;in that i just want to delete duplicate records in second row  i.e. ( 1234 1111 1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way,&lt;/P&gt;&lt;P&gt;Please help me out.&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;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 13:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452342#M1414023</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-04T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452343#M1414024</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;&lt;/P&gt;&lt;P&gt;I think it is not duplicate records because the scheme value is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better short the output by DOc.NO Customer Advnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or post forum bit clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 13:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452343#M1414024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452344#M1414025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun&lt;/P&gt;&lt;P&gt;Few records are duplicate and&lt;/P&gt;&lt;P&gt;For same Document and customer 2 schems are there and advance given is only once..&lt;/P&gt;&lt;P&gt;but it is showing that advance 2 times after sorting .&lt;/P&gt;&lt;P&gt;So my calculations are going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok is there any method to delete only perticular records not entire row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 13:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452344#M1414025</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-04T13:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452345#M1414026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katyare,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using the internal table for calculating a total of advances for a particular document. If a document has multiple schema - then the same advance comes multiple times and hence creates havoc with your summation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution needed is to retain the records in internal table, but for every duplicate document number occurence clear out the advance amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using delete adjacent duplicates - try using control break statements within the loop/ endloop scope. What you can do is clear out the advance amount for all records except AT NEW docnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 13:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452345#M1414026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T13:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452346#M1414027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Thanks For the reply&lt;/P&gt;&lt;P&gt;i am using t_final and wa_final.&lt;/P&gt;&lt;P&gt;u mean&lt;/P&gt;&lt;P&gt;Loop at itab&lt;/P&gt;&lt;P&gt;Atend of t_final-kwert.&lt;/P&gt;&lt;P&gt;Clear t_final.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 14:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452346#M1414027</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-04T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452347#M1414028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not yet, because it will not elimitate triple records. Easiest solution is after sorting, loop and insert into a sorted table with unique key. If success (sy-subrc = 0), ist is no duplicate, otherwise it is and should not be consiedered for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 17:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452347#M1414028</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-04T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452348#M1414029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the final internal table ? if you are displaying in alv use sort and group .. if its a classic report use control break statements and format your output .. deleting the specific fields doesnt make any sense ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 20:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452348#M1414029</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-04T20:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452349#M1414030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working,&lt;/P&gt;&lt;P&gt;Can u give me sample..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 09:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452349#M1414030</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-05T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452350#M1414031</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;can you please post your relevant code as formatted code and tell us where what does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I can help you. As an abstract guiding obviously does not help you, I need at least the code that does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 09:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452350#M1414031</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-05T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452351#M1414032</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;A Question: Is it that a document will always have one advance? If Yes, then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Loop on your table. At NEW Docno, clear a flag.&lt;/P&gt;&lt;P&gt;2. Set the flag only if you get an advance,&lt;/P&gt;&lt;P&gt;3. For all the following records, you can check the falg and process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 12:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452351#M1414032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452352#M1414033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working,&lt;/P&gt;&lt;P&gt;Can u give me sample..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 13:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452352#M1414033</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-05T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452353#M1414034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi You can go through the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_KONV INTO WA_KONV WITH KEY KNUMV = WA_VBRK-KNUMV&lt;/P&gt;&lt;P&gt;                                        KPOSN = WA_VBRP-POSNR&lt;/P&gt;&lt;P&gt;                                        KSCHL = 'ZOT1' .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WA_FINAL-KWERT = WA_KONV-KWERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR WA_T001W.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE T_T001W  into wa_t001w WITH KEY WERKS = WA_VBRP-WERKS.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WA_FINAL-NAME1 = WA_T001W-NAME1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR wa_t005u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE t_t005u into wa_t005u with key bland = wa_vbrp-wkreg.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       wa_final-BEZei = WA_T005U-BEZEI.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear wa_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE t_kna1 into wa_kna1 with key kunnr = wa_vbrk-kunrg.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;   wa_final-Name2 = wa_kna1-name1.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_final-kwert = wa_final-kwert * ( -1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF wa_final-FKLMG &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  wa_final-ADVNCE = WA_FINAL-KWERT / wa_final-FKLMG.&lt;/P&gt;&lt;P&gt;  wa_final-RATE = wa_final-ZRB_ACAMT / wa_final-FKLMG.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;  WA_FINAL-DIFFRENCE = WA_FINAL-KWERT - WA_FINAL-ZRB_ACAMT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF wa_final-VBTYP = '0'.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa_final-fklmg = wa_final-fklmg * ( -1 ).&lt;/P&gt;&lt;P&gt;    wa_final-kwert = wa_final-kwert * ( -1 ).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  APPEND WA_FINAL TO T_FINAL.&lt;/P&gt;&lt;P&gt;  sort t_final by KWERT.&lt;/P&gt;&lt;P&gt;  CLEAR WA_FINAL.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See KWERT is the Advance Given &lt;/P&gt;&lt;P&gt;For Same Document number Advance given will be only once but schemes are two,&lt;/P&gt;&lt;P&gt;I dont want to consider Advance given evry time for each scheme for same document number.&lt;/P&gt;&lt;P&gt;It gives problem while calculating differnce in Advance given and acrrual amount. &lt;/P&gt;&lt;P&gt;I hope u undstand my problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 20:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452353#M1414034</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-05T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Duplicate only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452354#M1414035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;I used At new and gave flag to same document number,&lt;/P&gt;&lt;P&gt;Problem solved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 16:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-duplicate-only/m-p/6452354#M1414035</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-01-07T16:01:20Z</dc:date>
    </item>
  </channel>
</rss>

