<?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 Ztable updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615985#M1760274</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have created a ztable releted to sale order details.There is some problem in updating the table.&lt;/P&gt;&lt;P&gt;whenever a record is added or modified, the update gets failed untill the next change is done...&lt;/P&gt;&lt;P&gt;Eg..1st change which i made is updated only after the 2nd change is made and 2nd change is updated after the 3rd and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this reg.&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;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2013 09:34:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-07-18T09:34:36Z</dc:date>
    <item>
      <title>Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615985#M1760274</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have created a ztable releted to sale order details.There is some problem in updating the table.&lt;/P&gt;&lt;P&gt;whenever a record is added or modified, the update gets failed untill the next change is done...&lt;/P&gt;&lt;P&gt;Eg..1st change which i made is updated only after the 2nd change is made and 2nd change is updated after the 3rd and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this reg.&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;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 09:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615985#M1760274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-18T09:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615986#M1760275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How did you updating the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 10:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615986#M1760275</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-07-18T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615987#M1760276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;Tell whether the Fields in the Z Table are standard's or custom fields.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is standard then there should n't be any problem in insert/update the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell in detail how the table is being updated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 11:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615987#M1760276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-18T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615988#M1760277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you use COMMIT WORK after update? if not try with using it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 11:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615988#M1760277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-18T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615989#M1760278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read &lt;A _jive_internal="true" class="font-color-normal" href="https://answers.sap.com/community/getting-started/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers"&gt;Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers&lt;/A&gt;&lt;SPAN class="h2"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h2"&gt;Can you precise : &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How did you update the table, did you uise COMMIT WORK or FM DB_COMMIT or ?&lt;/LI&gt;&lt;LI&gt;In which context (single report, BAdI of a standard transacton...)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="h2"&gt;Read online help like &lt;A href="http://help.sap.com/abapdocu_731/en/abendb_commit.htm"&gt;Implicit Database Commits&lt;/A&gt;&lt;/SPAN&gt; (or what the system did that you should have done yourself before...^)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 11:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615989#M1760278</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-07-18T11:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615990#M1760279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your replies. The problem is solved.&lt;/P&gt;&lt;P&gt;I had to update custom field. There was a problem in commit work and was rectified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 05:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615990#M1760279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-20T05:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615991#M1760280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just check the documentation in INSERT and MODIFY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;INSERT dbtab &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INSERT { {INTO &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_TARGET&amp;amp;quot;"&gt;target&lt;/A&gt; VALUES &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_SOURCE&amp;amp;quot;"&gt;source&lt;/A&gt; }&lt;/STRONG&gt; &lt;BR /&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_TARGET&amp;amp;quot;"&gt;target&lt;/A&gt; FROM&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_SOURCE&amp;amp;quot;"&gt;source&lt;/A&gt; } }.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Effect &lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INSERT&lt;/STRONG&gt; statement inserts one or more rows specified in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_SOURCE&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;source&lt;/STRONG&gt;&lt;/A&gt; in the database table specified in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPINSERT_TARGET&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;target&lt;/STRONG&gt;&lt;/A&gt;. The two variants with &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INTO&lt;/STRONG&gt; and &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;VALUES&lt;/STRONG&gt; or without &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INTO&lt;/STRONG&gt; with &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;FROM&lt;/STRONG&gt; behave identically, with the exception that you cannot specify any internal tables in &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;source&lt;/STRONG&gt; after &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;VALUES&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System Fields&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INSERT&lt;/STRONG&gt; statement sets the values of the system fields &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-subrc&lt;/STRONG&gt; and &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;sy-subrc&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Meaning&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one row was inserted.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one row could not be inserted, because the database table already contains a row with the same &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENPRIMARY_KEY_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;primary key&lt;/A&gt; or a unique &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENSECONDARY_INDEX_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;secondary index&lt;/A&gt;.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INSERT&lt;/STRONG&gt; statement sets &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt; to the number of rows inserted. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Note &lt;/SPAN&gt;&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;The inserted rows are finally included in the table in the next &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_COMMIT_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database commit&lt;/A&gt;. Up until this point, they can still be removed by a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_ROLLBACK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database rollback&lt;/A&gt;. &lt;/LI&gt;&lt;LI&gt;The statement &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;INSERT&lt;/STRONG&gt; sets a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database lock&lt;/A&gt; until the next database commit or rollback. If used incorrectly, this can lead to a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDEADLOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;deadlock&lt;/A&gt;.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;The number of rows that can be inserted in the tables of a database within a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LUW_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database LUW&lt;/A&gt; is limited, since a database system can only manage a limited amount of locks and data in the rollback area. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, &lt;STRONG&gt; &lt;SPAN class="L1S52"&gt;INSERT &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; ztable VALUES wa_ztable&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;MODIFY dbtab &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;MODIFY &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPMODIFY_TARGET&amp;amp;quot;"&gt;target&lt;/A&gt; FROM &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPMODIFY_SOURCE&amp;amp;quot;"&gt;source&lt;/A&gt;.&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Effect &lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;MODIFY&lt;/STRONG&gt; statement inserts one or several lines specified in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPMODIFY_TARGET&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;source&lt;/STRONG&gt;&lt;/A&gt; in the database table specified in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPMODIFY_TARGET&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;target&lt;/STRONG&gt;&lt;/A&gt;, or overwrites existing lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System fields&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;MODIFY&lt;/STRONG&gt; statement sets the values of the &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-subrc&lt;/STRONG&gt; and &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt; system fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;sy-subrc&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Meaning&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;All lines were inserted or changed.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one line could not be processed as there is already a line with the same unique name &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENSECONDARY_INDEX_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;secondary index&lt;/A&gt; in the database table.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;MODIFY&lt;/STRONG&gt; statement sets &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt; to the number of processed lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Note &lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;The changes are finally transferred to the database table with the next &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_COMMIT_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database commit&lt;/A&gt;. Up to that point, they can be reversed with a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_ROLLBACK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database rollback&lt;/A&gt;. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;MODIFY&lt;/STRONG&gt; statement sets a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database lock&lt;/A&gt; until the next database commit or database rollback; incorrect usage can result in a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDEADLOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;deadlock&lt;/A&gt; . &lt;/LI&gt;&lt;LI&gt;The number of rows that can be inserted into or changed in the tables of a database within a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LUW_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database LUW&lt;/A&gt; is restricted database-specifically by the fact that a database system can only manage a limited amount of locks and data in the rollback area. &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;EXAMPLE : &lt;STRONG&gt;MODIFY ztable &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; wa_ztable.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;UPDATE dbtab &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&amp;nbsp; &lt;A name="@@UPDATE dbtab@@&amp;amp;ABAP_STATEMENT&amp;amp;@@"&gt;&lt;/A&gt; &lt;/P&gt;&lt;H2&gt;&lt;SPAN style="color: #000080; font-size: 14pt;"&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;UPDATE &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPUPDATE_TARGET&amp;amp;quot;"&gt;target&lt;/A&gt; &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPUPDATE_SOURCE&amp;amp;quot;"&gt;source&lt;/A&gt;.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Effect: &lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;The statement &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;UPDATE&lt;/STRONG&gt; changes the content of one or more lines of the database table specified in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPUPDATE_TARGET&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;target&lt;/STRONG&gt;&lt;/A&gt;. The entries in &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABAPUPDATE_SOURCE&amp;amp;quot;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;source&lt;/STRONG&gt;&lt;/A&gt; determine which columns of which lines are changed, and how they are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System fields&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;UPDATE&lt;/STRONG&gt; sets the values of the system fields &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-subrc&lt;/STRONG&gt; and &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;sy-subrc&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Meaning&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one line has been changed.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one line was not able to be changed, either because no appropriate line was found, or because the change would generate a line that leads to double entries in the &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENPRIMARY_KEY_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;primary key&lt;/A&gt; or a unique &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENSECONDARY_INDEX_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;secondary index&lt;/A&gt; in the database table.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The statement &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;UPDATE&lt;/STRONG&gt; sets &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;sy-dbcnt&lt;/STRONG&gt; to the number of changed lines. &lt;/P&gt;&lt;H4&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;Note &lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;The changes are definitively copied to the database with the next &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_COMMIT_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database commit&lt;/A&gt;. Until that point, they can still be undone using a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_ROLLBACK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database rollback&lt;/A&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The statement &lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;UPDATE&lt;/STRONG&gt; sets a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database lock&lt;/A&gt; up to the next database commit or rollback, which may lead to a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDEADLOCK_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;deadlock&lt;/A&gt; if used incorrectly. &lt;/LI&gt;&lt;LI&gt;For the specific database, the number of rows that can be changed within a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/SAPEVENT:&amp;amp;quot;ABENDATABASE_LUW_GLOSRY&amp;amp;quot;" style="color: #505050;"&gt;database LUW&lt;/A&gt; in the database table is restricted by the fact that a database system can only manage a certain amount of data in the rollback area and from locks. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 06:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615991#M1760280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-21T06:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615992#M1760281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you check if other tables also have the same behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; One suggestion: After your first change, check for consistency of the table structure and contents in SE14 transaction. In case of any consistencies exist, you can try to adjust the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ashwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 06:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615992#M1760281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-21T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615993#M1760282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is a simple problem, before asking, you should try to get any help online first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 08:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615993#M1760282</guid>
      <dc:creator>Aiolos</dc:creator>
      <dc:date>2013-07-21T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ztable updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615994#M1760283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use "COMMIT WORK" after your statement used for Updating (either UPDATE/MODIFY/INSERT). So that all the tables related to that particular object will get updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;VIJAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 10:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ztable-updation/m-p/9615994#M1760283</guid>
      <dc:creator>VijayaKrishnaG</dc:creator>
      <dc:date>2013-07-21T10:09:44Z</dc:date>
    </item>
  </channel>
</rss>

