<?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 Performance tuning for DB Updates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-db-updates/m-p/3272203#M782236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What should be taken care of for Database updates in ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 16:32:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-17T16:32:32Z</dc:date>
    <item>
      <title>Performance tuning for DB Updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-db-updates/m-p/3272203#M782236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What should be taken care of for Database updates in ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 16:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-db-updates/m-p/3272203#M782236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for DB Updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-db-updates/m-p/3272204#M782237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All Database manipulations in SAP (UPDATE, INSERT, DELETE) can be executed one record at a time or through an 'Array' operation.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    Example:&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    No good    &lt;/P&gt;&lt;P&gt;    LOOP AT T_MAT.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign value to material group MARA-MATKL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;      UPDATE MARA SET MATKL = T_MAT-MATKL.&lt;/P&gt;&lt;P&gt;             WHERE MATNR = T_MAT-MATNR.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;   GOOD&lt;/P&gt;&lt;P&gt;    LOOP AT T_MAT.    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign value to material group MARA-MATKL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &amp;#133;&amp;#133;  &lt;/P&gt;&lt;P&gt;    ENDLOOP&lt;/P&gt;&lt;P&gt;    UPDATE MARA FROM TABLE T_MAT.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;    After the execution of the array update, the following system fields are populated:&lt;/P&gt;&lt;P&gt;&amp;#149;	SY-SUBRC - Contains 0 if all updates were successfully executed&lt;/P&gt;&lt;P&gt;&amp;#149;	SY-DBCNT -Contains the number of successfully updated records&lt;/P&gt;&lt;P&gt;   Restrictions:&lt;/P&gt;&lt;P&gt;&amp;#149;	The Array update function can't be combined with UPDATE SET&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   Recommendation:&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&amp;#149;	 Array update&amp;amp;#61672;If a large number of fields are changed in multiple records  &lt;/P&gt;&lt;P&gt;&amp;#149;	 Update set&amp;amp;#61672;If a small number of fields are changed in one record  &lt;/P&gt;&lt;P&gt;&amp;#149;	If a small number of fields are changed in multiple records &lt;/P&gt;&lt;P&gt;        -&amp;gt; Define a modifiable view using the key fields and the fields which are to be changed&lt;/P&gt;&lt;P&gt;Updating Key fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key fields can be updated for transparent tables just like any other table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception:&lt;/P&gt;&lt;P&gt;If synchronous match codes exist for the table, the key field update will be unsuccessful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 16:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-db-updates/m-p/3272204#M782237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T16:37:39Z</dc:date>
    </item>
  </channel>
</rss>

