<?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: Program terminated at the Insert statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995650#M1163495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like too many DB changes without "commit work" inbetween. Try splitting the data into several blocks of e.g. 10,000 records and insert those with a "commit work" statement after each insert.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. is this the same problem? &lt;SPAN __jive_macro_name="thread" id="1186583"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 15:35:37 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2009-01-05T15:35:37Z</dc:date>
    <item>
      <title>Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995643#M1163488</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 am working on a program and it's getting terminated everytime it come across this statement "INSERT ztable_data FROM TABLE itab_data.". the reason is itab&lt;/P&gt;&lt;P&gt;_data contains huge number of records and as and when it comes to this place the logs gets saturated and finally the programs is getting terminated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pleas tell me how can I take care of this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995643#M1163488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T15:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995644#M1163489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The insert Statement always checks for the key fileds in the DB table.&lt;/P&gt;&lt;P&gt;if that record doesn't exist then it inserts the records.&lt;/P&gt;&lt;P&gt;if we are trying to insert the already existed record then it goes dump.&lt;/P&gt;&lt;P&gt;so for already existed record use the &lt;STRONG&gt;UPDATE&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995644#M1163489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995645#M1163490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the internal table do not contain records of same key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also.. if there is huge data in internal table.... try executting in background ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as foreground execution is limited only for some time... based on basis config...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995645#M1163490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995646#M1163491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot insert into Internal table from internal table. Loop the internal to work area and insert the work area to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on insert statement you will get help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995646#M1163491</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-01-05T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995647#M1163492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply...when in my case we are first deleting the whole ztable using the truncate statement (as when I was trying to use the delete from statement teh program was terminating and logs were getting satured but using truncate statement solved this problem) and then after some validations we are inserting the records back again in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tahnks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995647#M1163492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995648#M1163493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but we are not inserting the recods from internal to internal but we are inserting from internal to custom table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995648#M1163493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995649#M1163494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;"INSERT ztable_data FROM TABLE itab_data.". the reason is itab&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure the structure of itab_data and ztable_data is exactly the same, &lt;STRONG&gt;modify&lt;/STRONG&gt; statement might also help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a similar thing to delete entries and re-upload again..kindaa.. press F1 on modify for more info..it should solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995649#M1163494</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-05T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995650#M1163495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like too many DB changes without "commit work" inbetween. Try splitting the data into several blocks of e.g. 10,000 records and insert those with a "commit work" statement after each insert.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. is this the same problem? &lt;SPAN __jive_macro_name="thread" id="1186583"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 15:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995650#M1163495</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-01-05T15:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995651#M1163496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you solve your problem?&lt;/P&gt;&lt;P&gt;I am in the same boat too &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have a solution for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w.r.t your other post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete: The system leaves the resources / memory allocated during this statement.&lt;/P&gt;&lt;P&gt;Truncate: This soes not. So its good to use this native sql statement.&lt;/P&gt;&lt;P&gt;I handled the same way in my program by commenting the delete statement.&lt;/P&gt;&lt;P&gt;Now my dump is throwing at INSERT statement to update 700K records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 18:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995651#M1163496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Program terminated at the Insert statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995652#M1163497</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;Try using "ACCEPTING DUPLICATE KEYS " with the insert command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if there is any records with the same key, it will not over write. Only new records will be inserted with no dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to insert new records and modify the existing record then use Modify command instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 19:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated-at-the-insert-statement/m-p/4995652#M1163497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T19:49:34Z</dc:date>
    </item>
  </channel>
</rss>

