<?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: Write and Read lock in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102262#M1508639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lock in sap system have two type lock.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;one&lt;/STRONG&gt;: sap lock through  (ENQUEUE_&amp;lt;lock object name&amp;gt;) and  (DEQUEUE_&amp;lt;lock object name&amp;gt;) function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;two&lt;/STRONG&gt;: database lock ,it is controlled by database system lock mechanism.  About database lock , you can read database vender's document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About details ,you can read ["Relationship Between SAP Locks and Database Locks "|http://help.sap.com/saphelp_nw04/helpdata/en/f4/71aa036c874c308c1a819f05321137/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jul 2010 02:09:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-16T02:09:17Z</dc:date>
    <item>
      <title>Write and Read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102259#M1508636</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 have a query on locking database tables using ENQUEUE-DEQUEUE mechanism. When an entry in a database table is being updated, as I understand a lock can be placed on the entry using u2018ENQUEUEu2019 to restrict multiple users from updating the record. But what happens when a u2018SELECTu2019 is performed on the database table while a lock exists on an entry? Will it result in an exception or will the previous entry be read?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Amrutha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 05:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102259#M1508636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-09T05:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write and Read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102260#M1508637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What I have understood from your question is, if a user is entring some values in a table then the lock is applied and the same time you want to read/select values from that table. And you want to knwo that whether you will be able to see the updated values or not??? please correct me if I miss understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the scenario&lt;/P&gt;&lt;P&gt;suppose I am entring the values and you are selecting the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will be able to see the values which are saved.&lt;/P&gt;&lt;P&gt;example.&lt;/P&gt;&lt;P&gt;I have entered 3 values and saved only 2, in this case if you will select the data from that table then you will be able to see those 2 entries which I made and saved, but not the 3rd one because it is still in LUW not in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are clear with your issue now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details please read lock topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 06:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102260#M1508637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-09T06:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Write and Read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102261#M1508638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amrutha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 3 types of lock modes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022Exclusive Mode:  If the data record is locked in exclusive mode, data record can only be edited or displayed by a single user. Another request of executive lock or shared lock is rejected. &lt;/P&gt;&lt;P&gt;u2022Shared Mode: If the data record is locked in shared mode, locked data record can be accessed by other users in display mode. Another request of shared lock is accepted (even if it comes from another user). However, request of exclusive lock is rejected. This is because, only one user can edit or display the record in exclusive lock mode.  &lt;/P&gt;&lt;P&gt;u2022Exclusive but not cumulative Mode: Exclusive locks can be requested and processed successfully several times from the same transaction. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. If it is called again from the same transaction, the lock request is rejected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you. now since select statemtnet will only read the lock if someone lock the object in exclusive mode and sends a shared lock request it will be rejected howevre if someone lock the objetc in shared mode and sends a shared lock request it will be accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you.&lt;/P&gt;&lt;P&gt;thnaks,&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 10:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102261#M1508638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-09T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Write and Read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102262#M1508639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lock in sap system have two type lock.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;one&lt;/STRONG&gt;: sap lock through  (ENQUEUE_&amp;lt;lock object name&amp;gt;) and  (DEQUEUE_&amp;lt;lock object name&amp;gt;) function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;two&lt;/STRONG&gt;: database lock ,it is controlled by database system lock mechanism.  About database lock , you can read database vender's document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About details ,you can read ["Relationship Between SAP Locks and Database Locks "|http://help.sap.com/saphelp_nw04/helpdata/en/f4/71aa036c874c308c1a819f05321137/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 02:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/7102262#M1508639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-16T02:09:17Z</dc:date>
    </item>
  </channel>
</rss>

