<?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: DIsplaying duplicate entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462214#M552538</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 CAN DELEATE THOSE DUPLICATE ENTRIES FROM YOUR INTERNAL TABLE BY USING &lt;/P&gt;&lt;P&gt;DELEATE DUPLICATE ENTRIES IN ITAB &lt;/P&gt;&lt;P&gt;AND THEN PROCESS THE INTERNAL TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 10:15:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T10:15:48Z</dc:date>
    <item>
      <title>DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462213#M552537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hav an intrenal table y_itab .&lt;/P&gt;&lt;P&gt;i need to find out whether it has any duplicate entries , if ther are then display that record r else process .&lt;/P&gt;&lt;P&gt;Plz provide me some logic for this .&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462213#M552537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462214#M552538</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 CAN DELEATE THOSE DUPLICATE ENTRIES FROM YOUR INTERNAL TABLE BY USING &lt;/P&gt;&lt;P&gt;DELEATE DUPLICATE ENTRIES IN ITAB &lt;/P&gt;&lt;P&gt;AND THEN PROCESS THE INTERNAL TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462214#M552538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462215#M552539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I need to display those duplicate records .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462215#M552539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462216#M552540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread surely it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3455251&amp;amp;messageID=1260325" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3455251&amp;amp;messageID=1260325&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462216#M552540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462217#M552541</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;DELETE - duplicates &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... ADJACENT DUPLICATES FROM itab &lt;/P&gt;&lt;P&gt;[COMPARING { comp1 comp2 ...}|{ALL FIELDS}]... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... COMPARING {comp1 comp2 ...}|{ALL FIELDS} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;With these additions, the statement DELETE deletes all lines in certain groups of lines, except for the first line of the group. These are groups of lines that follow one another and have the same content in certain components. If the addition COMPARING is not specified, the groups are determined by the content of the key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines are considered to be doubled if the content of neighboring lines is the same in the components examined. In the case of several double lines following one another, all the lines - except for the first - are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... COMPARING {comp1 comp2 ...}|{ALL FIELDS} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the addition COMPARING is specified, the groups are determined either by the content of the specified components comp1 comp2 ... or the content of all components ALL FIELDS. The specification of individual components comp is made as described in the section Specification of Components. Access to class attributes is possible through the object component selector only as of Release 6.10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Deleting all multiple-occurring lines in the internal table connection_tab. The result of this exanple corresponds to the one in the example for the position specification for INSERT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF connection, &lt;/P&gt;&lt;P&gt;cityfrom TYPE spfli-cityfrom, &lt;/P&gt;&lt;P&gt;cityto TYPE spfli-cityto, &lt;/P&gt;&lt;P&gt;distid TYPE spfli-distid, &lt;/P&gt;&lt;P&gt;distance TYPE spfli-distance, &lt;/P&gt;&lt;P&gt;END OF connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA connection_tab LIKE SORTED TABLE OF connection &lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE KEY cityfrom cityto &lt;/P&gt;&lt;P&gt;distid distance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cityfrom cityto distid distance &lt;/P&gt;&lt;P&gt;FROM spfli &lt;/P&gt;&lt;P&gt;INTO TABLE connection_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM connection_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462217#M552541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462218#M552542</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;itab1[] = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;    loop at itab where condition for checking duplicate.&lt;/P&gt;&lt;P&gt;       write : / itab.&lt;/P&gt;&lt;P&gt;       delete itab1 where condition for checking duplicate.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462218#M552542</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-26T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462219#M552543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  take another intenal table of same structure y_itab. let it be y_itab1.&lt;/P&gt;&lt;P&gt;y_itab1[] = y_itab[]&lt;/P&gt;&lt;P&gt;then delete the duplicates in y_itab1[] w.r.t key field.&lt;/P&gt;&lt;P&gt;after that,&lt;/P&gt;&lt;P&gt; loop at y_itab1[]&lt;/P&gt;&lt;P&gt; loop at  y_itab.......&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    count = count +1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if count &amp;gt; 1.&lt;/P&gt;&lt;P&gt; display ur record.&lt;/P&gt;&lt;P&gt;clear count.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;just an idea  am giving.&lt;/P&gt;&lt;P&gt;try for other logic which doesn't containn nested loop if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward points&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;praveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462219#M552543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462220#M552544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry no need to check sy-surc here.&lt;/P&gt;&lt;P&gt;thaks,&lt;/P&gt;&lt;P&gt;Praveena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462220#M552544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462221#M552545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key vbeln = itab1-vbeln and check with all fields.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab1-count = l_count.&lt;/P&gt;&lt;P&gt;Modify itab1 ndex sytabix  transporting count .&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;l_count = l_couynt + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;itab2[] = itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display the data from itab1 where count  is similar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462221#M552545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: DIsplaying duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462222#M552546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Create another internal table itab1 the same way as itab .&lt;/P&gt;&lt;P&gt;Populate itab1 with the same data of itab .&lt;/P&gt;&lt;P&gt;itab1[] = itab[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to display duplicate entries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key f1 = itab-f1&lt;/P&gt;&lt;P&gt;                                      f2 = itab-f2&lt;/P&gt;&lt;P&gt;                                      ...............&lt;/P&gt;&lt;P&gt;                                      fn = itab-fn .&lt;/P&gt;&lt;P&gt; ( Here key should be ALL the fields )&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is the duplicate entry and display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write : itab1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*PROCESS as you want&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Laxmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward all helpful answers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-duplicate-entries/m-p/2462222#M552546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:28:43Z</dc:date>
    </item>
  </channel>
</rss>

