<?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: NEED TO DELETE DUPLICATE RECORDS IN S111 DATABASE TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515487#M18278</link>
    <description>&lt;P&gt;How was this data inserted in database, bypassing Primary Key constraint, primary index inactive?&lt;/P&gt;
  &lt;P&gt;The OPEN SQL delete will use primary key values to identify records to delete, here with same keys you get only one record and database raise an error.&lt;/P&gt;
  &lt;P&gt;Did you &lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Look for OSS notes&lt;/LI&gt;
   &lt;LI&gt;Consider full clear the database table (SE14, delete data), reactivation of index and regeneration of data with reports like RMEBEIN3 or RMCENEUA.&lt;/LI&gt;
   &lt;LI&gt;raise an OSS message, if problem was generated by standard solution&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;Else could you try to (as a last tricky solution)&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Compress the internal table (sort or sorted type, delete adjacent duplicates or similar statement like a COLLECT into another table)&lt;/LI&gt;
   &lt;LI&gt;Try a DELETE WHERE clause (in a loop) &lt;/LI&gt;
   &lt;LI&gt;database commit &lt;/LI&gt;
   &lt;LI&gt;reactivation of index&lt;/LI&gt;
   &lt;LI&gt;insert back records from the internal table (without duplicate now)&lt;/LI&gt;
  &lt;/UL&gt;</description>
    <pubDate>Thu, 26 Oct 2017 13:59:53 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-10-26T13:59:53Z</dc:date>
    <item>
      <title>NEED TO DELETE DUPLICATE RECORDS IN S111 DATABASE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515486#M18277</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
  &lt;P&gt; Currently im using ECC 6.0 EHP 8.0 version. &lt;/P&gt;
  &lt;P&gt;i need to delete duplicate records in database table S111. For deletion im using the statement.&lt;/P&gt;
  &lt;P&gt;Loop at...&lt;/P&gt;
  &lt;P&gt;DELETE S111 FROM gw_table. &lt;/P&gt;
  &lt;P&gt;endloop.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/80023-q.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;But the system is throwing run time error. that is the system is not allowing to delete multiple duplicate records using the work area.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/80024-11.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;the below logic works for deleting multiple records. but taking too much time and performance is too poor. any idea to resolve this issue.&lt;/P&gt;
  &lt;P&gt;loop at ..&lt;/P&gt;
  &lt;P&gt;DELETE S111 FROM TABLE gi_table.&lt;/P&gt;
  &lt;P&gt;endloop. &lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 13:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515486#M18277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-26T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: NEED TO DELETE DUPLICATE RECORDS IN S111 DATABASE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515487#M18278</link>
      <description>&lt;P&gt;How was this data inserted in database, bypassing Primary Key constraint, primary index inactive?&lt;/P&gt;
  &lt;P&gt;The OPEN SQL delete will use primary key values to identify records to delete, here with same keys you get only one record and database raise an error.&lt;/P&gt;
  &lt;P&gt;Did you &lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Look for OSS notes&lt;/LI&gt;
   &lt;LI&gt;Consider full clear the database table (SE14, delete data), reactivation of index and regeneration of data with reports like RMEBEIN3 or RMCENEUA.&lt;/LI&gt;
   &lt;LI&gt;raise an OSS message, if problem was generated by standard solution&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;Else could you try to (as a last tricky solution)&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Compress the internal table (sort or sorted type, delete adjacent duplicates or similar statement like a COLLECT into another table)&lt;/LI&gt;
   &lt;LI&gt;Try a DELETE WHERE clause (in a loop) &lt;/LI&gt;
   &lt;LI&gt;database commit &lt;/LI&gt;
   &lt;LI&gt;reactivation of index&lt;/LI&gt;
   &lt;LI&gt;insert back records from the internal table (without duplicate now)&lt;/LI&gt;
  &lt;/UL&gt;</description>
      <pubDate>Thu, 26 Oct 2017 13:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515487#M18278</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-10-26T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: NEED TO DELETE DUPLICATE RECORDS IN S111 DATABASE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515488#M18279</link>
      <description>&lt;P&gt;hi recently they had upgraded the ecc system. we cannot go for mass deletion since its a standard sap table. &lt;/P&gt;
  &lt;P&gt;I had written the code as below. her gi_s111_final table contains the duplicate records.&lt;/P&gt;
  &lt;P&gt; in order to check how many records in data base i'm using select statement in and getting in gi_table.&lt;/P&gt;
  &lt;P&gt;then im trying to delete records based on gi_table internal table. since work area deletion is throwing run time error (please see my previous post for run time error.)&lt;/P&gt;
  &lt;P&gt; the below code is working fine. but performance wise poor. any idea to improve performance.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/80030-666.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/80031-777.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 14:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515488#M18279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-26T14:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: NEED TO DELETE DUPLICATE RECORDS IN S111 DATABASE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515489#M18280</link>
      <description>&lt;P&gt;Try to add a call of db_commit between delete and modify and replace modify with insert. Then activate index with SE14.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 05:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-delete-duplicate-records-in-s111-database-table/m-p/515489#M18280</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-10-27T05:31:16Z</dc:date>
    </item>
  </channel>
</rss>

