<?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: lock object types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629522#M281047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two types of lock in the R/3 System:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shared lock&lt;/P&gt;&lt;P&gt;Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exclusive lock&lt;/P&gt;&lt;P&gt;Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock Duration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you set a lock, you should bear in mind that if it remains set for a long time, the availability of the object to other transactions is reduced. Whether or not this is acceptable depends on the nature of the task your program is performing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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. Conversely, a single exclusive lock prevents all other programs from reading the locked object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of an SAP LUW, you should release all locks. This either happens automatically during the database update, or explicitly, when you call the corresponding dequeue function module. Locks that are not linked to a database update are released at the end of the SAP transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 05:37:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T05:37:07Z</dc:date>
    <item>
      <title>lock object types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629518#M281043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt; i want to know types of lock objects like exclusive,&lt;/P&gt;&lt;P&gt;shared, exclusive&amp;amp;cumulative. etc..&lt;/P&gt;&lt;P&gt; can anybody help me and explain briefly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   regards,&lt;/P&gt;&lt;P&gt;  prerna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 05:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629518#M281043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: lock object types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629519#M281044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just refer for brief discription.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 05:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629519#M281044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T05:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: lock object types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629520#M281045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out Naresh's answer in the below thread...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1716213"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Santosh Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 05:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629520#M281045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T05:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: lock object types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629521#M281046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The description of an SAP lock to a table is made via the lock condition and the lock mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read lock (shared lock)&lt;/P&gt;&lt;P&gt;protects read access to an object. The read lock allows other transactions read access but not write access to the locked area of the table.&lt;/P&gt;&lt;P&gt;Write lock (exclusive lock)&lt;/P&gt;&lt;P&gt;protects write access to an object. The write lock allows other transactions neither read nor write access to the locked area of the table.&lt;/P&gt;&lt;P&gt;Enhanced write lock (exclusive lock without cumulation)&lt;/P&gt;&lt;P&gt;works like a write lock except that the enhanced write lock also protects from further accesses from the same transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaffer vali shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 05:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629521#M281046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: lock object types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629522#M281047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two types of lock in the R/3 System:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shared lock&lt;/P&gt;&lt;P&gt;Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exclusive lock&lt;/P&gt;&lt;P&gt;Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock Duration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you set a lock, you should bear in mind that if it remains set for a long time, the availability of the object to other transactions is reduced. Whether or not this is acceptable depends on the nature of the task your program is performing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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. Conversely, a single exclusive lock prevents all other programs from reading the locked object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of an SAP LUW, you should release all locks. This either happens automatically during the database update, or explicitly, when you call the corresponding dequeue function module. Locks that are not linked to a database update are released at the end of the SAP transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 05:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-types/m-p/1629522#M281047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T05:37:07Z</dc:date>
    </item>
  </channel>
</rss>

