<?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: usage of commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474662#M1417876</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 to  remove insert statement from loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use internal table to collect the records and Update your table from an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2010 16:26:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-07T16:26:05Z</dc:date>
    <item>
      <title>usage of commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474660#M1417874</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 got information from basis that due to my program there were many deadlocks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to use commit statement over there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look into the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read all records in active table of ODS into itab_ord&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from /BIC/AZVFOSDP200&lt;/P&gt;&lt;P&gt;  appending corresponding fields of table itab_ord&lt;/P&gt;&lt;P&gt;  where /BIC/ZPVIEWDT &amp;gt; '19900101'.&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;Insert Changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at itab_omod where SID eq ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    itab_omod-sid = zarequest.&lt;/P&gt;&lt;P&gt;    itab_omod-datapakid = zadatapakid.&lt;/P&gt;&lt;P&gt;    itab_omod-record = zarecord.&lt;/P&gt;&lt;P&gt;    modify itab_omod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    zarecord = zarecord + 1.&lt;/P&gt;&lt;P&gt;    insert into /BIC/AZVFOSDP240 values itab_omod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endif.&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;Changing the contents of new table with the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY /BIC/AZVFOSDP240 from table itab_neword.&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;Path&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 12:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474660#M1417874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-07T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: usage of commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474661#M1417875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the single modify statement for insertion and updation.&lt;/P&gt;&lt;P&gt;Read the f1 documentation for modify db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build the internal table with new and changed values and reflect  it in db with a single step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 13:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474661#M1417875</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-07T13:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: usage of commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474662#M1417876</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 to  remove insert statement from loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use internal table to collect the records and Update your table from an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 16:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474662#M1417876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-07T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: usage of commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474663#M1417877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
insert into /BIC/AZVFOSDP240 values itab_omod.

endloop.
endif.


* Changing the contents of new table with the value
MODIFY /BIC/AZVFOSDP240 from table itab_neword.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question can not be answered becasue there is a lot of information missing. I think it is nonsense that you should use a commit, you should commit in principle only at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is seems that you insert some lines and that you later modify the same lines, that is incorret. You should change the content of the database table only once. Make you changes in the internal tables and MODIFY at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performancewise it is probably better, if you can avoid the MODIFY and use INSERTs for the new lines and UPDATES for the already existing lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 08:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-of-commit/m-p/6474663#M1417877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T08:26:43Z</dc:date>
    </item>
  </channel>
</rss>

