<?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: Restricting the INSERT from dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849566#M1319393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger,&lt;/P&gt;&lt;P&gt;  Can you tell me what is the shortdump says?&lt;/P&gt;&lt;P&gt;  May be put this insert statement in a try endtry block. But I t=dont think this will help you.&lt;/P&gt;&lt;P&gt;Try.&lt;/P&gt;&lt;P&gt;insert *******.&lt;/P&gt;&lt;P&gt;catch CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;  With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2009 12:11:39 GMT</pubDate>
    <dc:creator>former_member219399</dc:creator>
    <dc:date>2009-07-02T12:11:39Z</dc:date>
    <item>
      <title>Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849558#M1319385</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;I am uploading afile into one database table.Whenever a wrong file(which is not the type of the data base table) is uploaded,the program goes for dump at the at the INSERT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me how to avoid this dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ginger on Jul 2, 2009 6:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 10:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849558#M1319385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849559#M1319386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pleae make sure that the duplicate records are not inserted in database,otheriwse it will lead to dump.&lt;/P&gt;&lt;P&gt; use accepting duplicate key,if requirment there for duplicate records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 10:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849559#M1319386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T10:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849560#M1319387</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;U can catch the Error by using sy-subrc = 0 then Insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Insert statment.&lt;/P&gt;&lt;P&gt;elseif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message type e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if duplicates are there , then use Delete adjcent duplicate from itab comparing &amp;lt;Field name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Abaplover on Jul 2, 2009 12:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 10:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849560#M1319387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849561#M1319388</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;It always better to validate the records of the uploaded file data before inserting it to the database table. Loop at the uploaded records and validate each fields with respect to database table, maintain a error log table and populate it for invalid records. After validation, if the error log table is initial then go for insert else display error log report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't any validation in the program then you have to compulsorily maintain proper &amp;amp; validate data in the upload file to match database table field data type and other criteria to avoid short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 10:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849561#M1319388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849562#M1319389</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 may use CATCH......... ENDCATCH for catching the system exceptions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 11:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849562#M1319389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T11:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849563#M1319390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your  problem I feel -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you upload file to internal table , the internal table must be  having same structure of that database table.&lt;/P&gt;&lt;P&gt;If your internal table is not updated properly (check sy-subrc &amp;lt;&amp;gt; 0 ) then you can avoide updating database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 11:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849563#M1319390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T11:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849564#M1319391</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;Never insert or update the database table blindly. You need to validate the data before any updation. Once you upload the data from file, check whether the data uploaded is in correct format. If the data validation is successful, you can insert only those data to database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 11:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849564#M1319391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849565#M1319392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is good for the addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM TABLE itab [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SY-SUBRC will tell you if it is OK.&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>Thu, 02 Jul 2009 12:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849565#M1319392</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-07-02T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849566#M1319393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger,&lt;/P&gt;&lt;P&gt;  Can you tell me what is the shortdump says?&lt;/P&gt;&lt;P&gt;  May be put this insert statement in a try endtry block. But I t=dont think this will help you.&lt;/P&gt;&lt;P&gt;Try.&lt;/P&gt;&lt;P&gt;insert *******.&lt;/P&gt;&lt;P&gt;catch CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;  With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 12:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849566#M1319393</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2009-07-02T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the INSERT from dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849567#M1319394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the dump analysis (ST22). If the issue is because of the duplicate records then either remove duplicate entries from your internal table before inserting or use the addition ACCEPTING DUPLICATE KEYS in the insert statement. This will ignore all the duplicate records.&lt;/P&gt;&lt;P&gt;    Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 13:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-the-insert-from-dump/m-p/5849567#M1319394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-02T13:06:06Z</dc:date>
    </item>
  </channel>
</rss>

