<?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: No queue for SAP locks ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010774#M1496593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no queue for sap locks.!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read documentation about sap locks.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 14:51:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-08T14:51:20Z</dc:date>
    <item>
      <title>No queue for SAP locks ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010773#M1496592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the docs I read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Remember in particular that setting too many shared locks without good reason can have a considerable effect on programs that work with database tables. If several programs running concurrently all set a shared lock for the same application object in the system, it can make it almost impossible to set an exclusive lock, since the program that needs to set that lock will be unable to find any time when there are no locks at all set for that object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean there is no lock queue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RDBMS lock requests enter a queue: RRRRRWRRRRRWWRRRRRWRRWRWRW&lt;/P&gt;&lt;P&gt;so the only issue is how long you have to wait - not whether it is possible to get a lock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 22:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010773#M1496592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T22:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: No queue for SAP locks ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010774#M1496593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no queue for sap locks.!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read documentation about sap locks.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 14:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010774#M1496593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: No queue for SAP locks ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010775#M1496594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the excerpt above that explains that seems to explain there is no queue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the functions are called ENQUEUE DEQUEUE&lt;/P&gt;&lt;P&gt;but I think that refers to the ability to aggregate locks to simplify application design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying there is a queue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 15:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010775#M1496594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: No queue for SAP locks ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010776#M1496595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;certainly that refers to the ability to aggregate locks to simplify application design. But there is not a queue of locks..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 17:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010776#M1496595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-23T17:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: No queue for SAP locks ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010777#M1496596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &amp;gt;Remember in particular that setting too many shared locks without good reason can have a considerable effect on programs that work with database tables. If several programs running concurrently all set a shared lock for the same application object in the system, it can make it almost impossible to set an exclusive lock, since the program that needs to set that lock will be unable to find any time when there are no locks at all set for that object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FireBean500, please don't forget to indicate the references, that makes it easier to answer if we have the context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your doc comes from:&lt;/P&gt;&lt;P&gt;[SAP Library - The SAP Lock Concept - Lock duration|http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Does this mean there is no lock queue?&lt;/P&gt;&lt;P&gt;&amp;gt; RDBMS lock requests enter a queue: RRRRRWRRRRRWWRRRRRWRRWRWRW&lt;/P&gt;&lt;P&gt;&amp;gt; so the only issue is how long you have to wait - not whether it is possible to get a lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use shared locks to keep SAP programs from getting exclusive locks, but I never found a situation where I had to use shared locks, I always used exclusive locks. Most of time, if lock can't be set, we usually make the program fail.&lt;/P&gt;&lt;P&gt;But we may find situations, especially parallel processing, where it is best to to wait for a few seconds in case lock fails. In that case we must program it ourselves (loop on ENQUEUE* function module and WAIT UP TO SECONDS statement).&lt;/P&gt;&lt;P&gt;We may also use the ENQUEUE* _WAIT parameter (5 attempts by default of 1 second wait each, see [Note 6822 - ENQUEUE WAIT does not wait for long enough|http://service.sap.com/sap/support/notes/6822] for more information)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 07:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-queue-for-sap-locks/m-p/7010777#M1496596</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-24T07:35:04Z</dc:date>
    </item>
  </channel>
</rss>

