<?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: duplicates entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139372#M746042</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;To delete adjacent duplicate entries use the following statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;                                  [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                             |ALL FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system deletes all adjacent duplicate entries from the internal table &amp;lt;itab&amp;gt;. Entries are duplicate if they fulfill one of the following compare criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines. &lt;/P&gt;&lt;P&gt;If you use the addition COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... the contents of the specified fields &amp;lt;f 1 &amp;gt; &amp;lt;f 2 &amp;gt; ... must be identical in both lines. You can also specify a field &amp;lt;f i &amp;gt; dynamically as the contents of a field &amp;lt;n i &amp;gt; in the form (&amp;lt;n i &amp;gt;). If &amp;lt;n i &amp;gt; is empty when the statement is executed, it is ignored. You can restrict the search to partial fields by specifying offset and length. &lt;/P&gt;&lt;P&gt;If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines must be identical. &lt;/P&gt;&lt;P&gt;You can use this statement to delete all duplicate entries from an internal table if the table is sorted by the specified compare criterion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 11:06:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-06T11:06:26Z</dc:date>
    <item>
      <title>duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139367#M746037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody,&lt;/P&gt;&lt;P&gt;  i have some duplicate records in my flat file.&lt;/P&gt;&lt;P&gt;i have 1200 records to upload in to database. in those 1200 records there are many duplicate records.&lt;/P&gt;&lt;P&gt;my problem is i dnt want to upload the reocrds along with dulpicates. &lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt; if i had 5 records out of which 4 or duplicate an 1 is orginal record&lt;/P&gt;&lt;P&gt;so i want only original records to be upladed into database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the original records are known i will use bdc an upload the those records into database. plz tell me hw to do this with a sample example . an plz provide code for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 10:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139367#M746037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T10:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139368#M746038</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;see this code.&lt;/P&gt;&lt;P&gt;u can delete duplicates from ur records like this.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 10:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139368#M746038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139369#M746039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can't delete duplicate records from your flat file.&lt;/P&gt;&lt;P&gt;for this first upload that flat file into your internal table using FM 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;and then use 'DELETE ADJACENT DUPLICATES from i_tab COMPARING &amp;lt;fields&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vikas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 10:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139369#M746039</guid>
      <dc:creator>VikasB</dc:creator>
      <dc:date>2007-12-06T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139370#M746040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take the records in an internal table from flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the code for that internal table (it_tab1)&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now post that data from it_itab1 into BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sandeep Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 10:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139370#M746040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139371#M746041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort itab ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab comparing all fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 11:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139371#M746041</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-06T11:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: duplicates entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139372#M746042</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;To delete adjacent duplicate entries use the following statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;                                  [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                             |ALL FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system deletes all adjacent duplicate entries from the internal table &amp;lt;itab&amp;gt;. Entries are duplicate if they fulfill one of the following compare criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines. &lt;/P&gt;&lt;P&gt;If you use the addition COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... the contents of the specified fields &amp;lt;f 1 &amp;gt; &amp;lt;f 2 &amp;gt; ... must be identical in both lines. You can also specify a field &amp;lt;f i &amp;gt; dynamically as the contents of a field &amp;lt;n i &amp;gt; in the form (&amp;lt;n i &amp;gt;). If &amp;lt;n i &amp;gt; is empty when the statement is executed, it is ignored. You can restrict the search to partial fields by specifying offset and length. &lt;/P&gt;&lt;P&gt;If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines must be identical. &lt;/P&gt;&lt;P&gt;You can use this statement to delete all duplicate entries from an internal table if the table is sorted by the specified compare criterion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 11:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicates-entries/m-p/3139372#M746042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T11:06:26Z</dc:date>
    </item>
  </channel>
</rss>

