<?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: short dump when database updating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899273#M1144197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Declare work areas for the declared internal tables, and use the following syntax and try to delete already existing records. Use same for second internal table also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remove already existing entries for tcode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM db_tab1&lt;/P&gt;&lt;P&gt;INTO TABLE itab3&lt;/P&gt;&lt;P&gt;WHERE edate = pdate.&lt;/P&gt;&lt;P&gt;SORT itab3 by f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 INTO wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE itab3 WITH KEY f1 = wa_itab1-f1&lt;/P&gt;&lt;P&gt;  f2 = wa_itab1-f2&lt;/P&gt;&lt;P&gt;  f3 = wa_itab1-f3&lt;/P&gt;&lt;P&gt;  f4 = wa_itab1-f4&lt;/P&gt;&lt;P&gt;  BINARY SEARCH TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0&lt;/P&gt;&lt;P&gt;         DELETE table itab1 from wa_itab1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 05:49:53 GMT</pubDate>
    <dc:creator>former_member585060</dc:creator>
    <dc:date>2008-12-11T05:49:53Z</dc:date>
    <item>
      <title>short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899269#M1144193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I'm updating database by using insert statements.  i'm deleting all the duplicate entries. eventhough i'm getting dump. dump error is like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" If you use an ABAP/4 Open SQL array insert to insert a record in     &lt;/P&gt;&lt;P&gt;the database and that record already exists with the same key,       &lt;/P&gt;&lt;P&gt;this results in a termination.                                                                                &lt;/P&gt;&lt;P&gt;(With an ABAP/4 Open SQL single record insert in the same error      &lt;/P&gt;&lt;P&gt;situation, processing does not terminate, but SY-SUBRC is set to 4.) "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bellow is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT: itab1, itab2 BY f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM itab1 comparing all fields.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM itab2 comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remove already existing entries for tcode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT * FROM db_tab1&lt;/P&gt;&lt;P&gt;           INTO TABLE itab3&lt;/P&gt;&lt;P&gt;           WHERE edate = pdate.&lt;/P&gt;&lt;P&gt;  SORT itab3 by f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    READ TABLE itab3 WITH KEY f1 = itab1-f1&lt;/P&gt;&lt;P&gt;                                  f2 = itab1-f2&lt;/P&gt;&lt;P&gt;                                  f3 = itab1-f3&lt;/P&gt;&lt;P&gt;                                  f4 = itab1-f4&lt;/P&gt;&lt;P&gt;                                 BINARY SEARCH TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;    CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    DELETE itab1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remove already existing entries for program ID&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT * FROM db_tab2&lt;/P&gt;&lt;P&gt;           INTO TABLE itab4&lt;/P&gt;&lt;P&gt;           WHERE edate = pdate.&lt;/P&gt;&lt;P&gt;  SORT itab4 by f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;  LOOP AT itab2.&lt;/P&gt;&lt;P&gt;    READ TABLE itab4 WITH KEY f1 = itab2-f1&lt;/P&gt;&lt;P&gt;                                  f2 = itab2-f2&lt;/P&gt;&lt;P&gt;                                  f3 = itab2-f3&lt;/P&gt;&lt;P&gt;                                  f4 = itab2-f4&lt;/P&gt;&lt;P&gt;                                 BINARY SEARCH TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;    CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    DELETE itab2.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR itab1.&lt;/P&gt;&lt;P&gt;  IF NOT itab1[] IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   INSERT db_tab1 FROM TABLE itab1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT itab2[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    INSERT db_tab2 FROM TABLE itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please show me a solution. if i use modify statement i hope it will get solved. but i want to know why its giving dump even i'm deleting all the duplicate entries.&lt;/P&gt;&lt;P&gt;One more thing my report is scheduled for bacground job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;g.s.naidu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899269#M1144193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T05:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899270#M1144194</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;You are deleting duplicate entries from Internal table.&lt;/P&gt;&lt;P&gt;Before running the program check that the entry you want to insert is already exist in Database table.&lt;/P&gt;&lt;P&gt;If yes then it will give a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899270#M1144194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T05:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899271#M1144195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before entering in the database check whether the entry already exists in table  or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899271#M1144195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T05:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899272#M1144196</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;&lt;/P&gt;&lt;P&gt;           You are right. but i'm deleting the records which are already in the database also. you can observe that in my code. here i'm deleting duplicate entries from itab and after that i'm checking for already existing records from database table also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;g.s.naidu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899272#M1144196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T05:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899273#M1144197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Declare work areas for the declared internal tables, and use the following syntax and try to delete already existing records. Use same for second internal table also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remove already existing entries for tcode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM db_tab1&lt;/P&gt;&lt;P&gt;INTO TABLE itab3&lt;/P&gt;&lt;P&gt;WHERE edate = pdate.&lt;/P&gt;&lt;P&gt;SORT itab3 by f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 INTO wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE itab3 WITH KEY f1 = wa_itab1-f1&lt;/P&gt;&lt;P&gt;  f2 = wa_itab1-f2&lt;/P&gt;&lt;P&gt;  f3 = wa_itab1-f3&lt;/P&gt;&lt;P&gt;  f4 = wa_itab1-f4&lt;/P&gt;&lt;P&gt;  BINARY SEARCH TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0&lt;/P&gt;&lt;P&gt;         DELETE table itab1 from wa_itab1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899273#M1144197</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-12-11T05:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: short dump when database updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899274#M1144198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naidu,&lt;/P&gt;&lt;P&gt;Instead of using INSERT use MODIFY it will insert if the record is not there else updates the existing record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab from table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info please go through the F1 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 05:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-when-database-updating/m-p/4899274#M1144198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T05:51:04Z</dc:date>
    </item>
  </channel>
</rss>

