<?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: Insert Statement is not working in production server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188720#M1713970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi linga,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try to avoid select statement between loop......endloop. its a performance issue....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 06:16:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-07T06:16:19Z</dc:date>
    <item>
      <title>Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188710#M1713960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one program( Test certificate printout program). After giving my input when i run the program . Some data is saved into one ztable. Its working fine till 2 months before. Now its not working, i mean&amp;nbsp; when i run the program, the data is not getting saved into my table. The code which i have written for insert query is executing but it shows no effect. Please give me some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My code: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;insert zqm_tb_is1786n FROM table final2 ACCEPTING DUPLICATE KEYS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;Hints:&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;1) the internal table final2 having the values perfectly.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;2) This code is working fine in quality server.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;Linganathan.K&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188710#M1713960</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2013-01-05T12:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188711#M1713961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; have you any authorization to debug(fire fighter) your code in production server????&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188711#M1713961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-05T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188712#M1713962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I debugged in Production server. After that only i posted here my problem.&amp;nbsp; In production server also. The insert query is executed . But not getting inserted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Linganathan.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188712#M1713962</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2013-01-05T12:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188713#M1713963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Linga,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One Question,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Before this thread,U have many NOT ANSWERED THREAD OPEN,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If YOU got answer then u can close those FRIEND !!!!!!&amp;nbsp;&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Just Funny mood. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gourav.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188713#M1713963</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-01-05T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188714#M1713964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will do it. Please can you help me for this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Linganathan.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188714#M1713964</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2013-01-05T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188715#M1713965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you believe that everything is fine with your code and the values must be updated in DB, here are few things which you may like to check:&lt;/P&gt;&lt;P&gt;-&amp;nbsp; try using explicit commit after INSERT&lt;/P&gt;&lt;P&gt;- check if the same record is locked by another update/insert etc or not in debug mode&lt;/P&gt;&lt;P&gt;- check system parameters for commit limit etc &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 12:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188715#M1713965</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2013-01-05T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188716#M1713966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some thing is there,&lt;/P&gt;&lt;P&gt;the behaviour of &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;ACCEPTING DUPLICATE KEYS,like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;All rows inserted for this as far as possible,not insert all record,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;then rejected remaining rows &amp;amp; sy-subrc is 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;SY-DBCNT is set to the number of lines ,that are inserted already.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;U can do like this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;At first declare one new internal table,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;use select single based on PRIMARY OR SECONDARY key with check of SY-SUBRC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then u can insert Record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also follow what SANDIP, SABYASACHI &amp;amp; others said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is little helpful for u.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 13:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188716#M1713966</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-01-05T13:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188717#M1713967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use commit work after insert statement.You need not to use COMMIT with INSERT statement, as it automatically COMMITS the work but once the processing of a PAI event is over, so best and safer option is to use COMMIT with INSERT/MODIFY/DELETE/UPDATE. to reflect the change into the database at once.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 13:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188717#M1713967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-05T13:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188718#M1713968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumar Gourav malik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, In that Program they used SY-DBCNT . It is the primary key for that table. Every time inserting the values with this SY-DBCNT&amp;nbsp; value in that table. And used sy-subrc condition also. I dont know what is the exact problem in that code. And i have pasted my code for your reference. Please help me for my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;loop at final2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select SINGLE ORDERNO&amp;nbsp; TCYEAR from ZQM_TB_IS1786N INTO (ZQM_TB_IS1786N-ORDERNO,ZQM_TB_IS1786N-TCYEAR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where cerno ne '' and orderno = final2-orderno and lotno = final2-lotno AND TCYEAR = FINAL2-TCYEAR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sy-subrc ne 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert zqm_tb_is1786n FROM table final2 ACCEPTING DUPLICATE KEYS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;Hints:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;1) For the new input sy-subrc value is 4. My insert query is executed. But not saved into database tabele.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I confused whats the problem. Please do the helpful thing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thanks and Regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Linganathan.K&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 05:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188718#M1713968</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2013-01-07T05:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188719#M1713969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;In this case u can try with&lt;/P&gt;&lt;P&gt;MODIFY statement instead of INSERT.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;insert zqm_tb_is1786n FROM table final2 ACCEPTING DUPLICATE KEYS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;replace with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG&gt;MODIFY&amp;nbsp; table &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;zqm_tb_is1786n&lt;/SPAN&gt;itab FROM final2.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bcoz modify will works like modify for existing record &amp;amp; insert for new record.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Let see what happens!!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Gourav.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 05:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188719#M1713969</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-01-07T05:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188720#M1713970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi linga,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try to avoid select statement between loop......endloop. its a performance issue....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 06:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188720#M1713970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T06:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188721#M1713971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;insert zqm_tb_is1786n FROM table final2 ACCEPTING DUPLICATE KEYS.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;with&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;insert zqm_tb_is1786n FROM final2. " single record, you already checked for duplicate&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Also, you could try to remove the SELECT SINGLE from the LOOP/ENDLOOP, and replace it with a SELECT FOR ALL ENTRIES before the LOOP, checking final 2 is not empty, sort it, and use a READ TABLE BINATY SEARCH in the LOOP ENDLOOP to remove the records already in the database, then INSERT dbtab FROM TABLE final2 after the LOOP/ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 06:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188721#M1713971</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-01-07T06:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Statement is not working in production server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188722#M1713972</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;&amp;nbsp; you mentiond that&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;For the new input sy-subrc value is 4. My insert query is executed. But not saved into database tabele.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, the problem is, when&amp;nbsp; insert statement executed then some how it gets same key field value...for that reason sy-subrc = 4. comment out 'Accepting duplicate keys' and execute. in this case, it gives a short dump. try to find out any existing key field values. better you can use modify statement insted of insert which kumar gaurav already mentiond.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 06:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-is-not-working-in-production-server/m-p/9188722#M1713972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T06:51:42Z</dc:date>
    </item>
  </channel>
</rss>

