<?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: Tables without locks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446046#M211729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;This is done to aviod any inconsistency while accessing the database.&lt;/P&gt;&lt;P&gt;Well locking the table ensures the basic ACID properties of the DB.&lt;/P&gt;&lt;P&gt;A--&amp;gt; Atomicity&lt;/P&gt;&lt;P&gt;C--&amp;gt; Consistency&lt;/P&gt;&lt;P&gt;I--&amp;gt; Isolation&lt;/P&gt;&lt;P&gt;D--&amp;gt; Durabilty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to update the database table at the same time might result into inconsistency.&lt;/P&gt;&lt;P&gt;DB_SQL_ERROR runtime might be issued.&lt;/P&gt;&lt;P&gt;Never seen it personally though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2006 18:42:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-24T18:42:38Z</dc:date>
    <item>
      <title>Tables without locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446045#M211728</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;I understand that somehow I would have to create locks to avoid table collision when updating tables by several users.  What happens if I don't do that, meaning while one user is writing and updating a table and another is do in the same to the same table? Will the program give a runtime error? Are all the users running the program will run into the runtime error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 18:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446045#M211728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T18:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tables without locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446046#M211729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;This is done to aviod any inconsistency while accessing the database.&lt;/P&gt;&lt;P&gt;Well locking the table ensures the basic ACID properties of the DB.&lt;/P&gt;&lt;P&gt;A--&amp;gt; Atomicity&lt;/P&gt;&lt;P&gt;C--&amp;gt; Consistency&lt;/P&gt;&lt;P&gt;I--&amp;gt; Isolation&lt;/P&gt;&lt;P&gt;D--&amp;gt; Durabilty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to update the database table at the same time might result into inconsistency.&lt;/P&gt;&lt;P&gt;DB_SQL_ERROR runtime might be issued.&lt;/P&gt;&lt;P&gt;Never seen it personally though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 18:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446046#M211729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tables without locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446047#M211730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP system is equipped with a special lock mechanism that synchronizes access to data on the database. The purpose of the lock mechanism is to prevent two transactions from changing the same data on the database simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 18:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446047#M211730</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-24T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tables without locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446048#M211731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, there will be no ABAP runtime error if you don't use the locks, but you will have data inconsistancies.  For example, say user 1 bring up a record of the ztable, and needs to change the description, say field number 2. User goes and gets a cup of coffee without saving,  User 2 enters the transaction and wants to change the description of the same record that user 1 has open, user 2 saves and exits.  User 1 comes back and saves the changes,  the description field has now been updated overwriting the value that user 2 had previously changed.  You can see the importance of locking, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 18:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-without-locks/m-p/1446048#M211731</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-24T18:47:48Z</dc:date>
    </item>
  </channel>
</rss>

