<?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 objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229857#M479635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GO TO SE11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the radio button "Lock object"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the name starts with EZ or EY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: EYTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press Create button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the short description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Lock object for table ZTABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tables tab..Give the table name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: ZTABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and generate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your lock object is now created..You can see the LOCK MODULES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the menu ..GOTO -&amp;gt; LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 11:00:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-23T11:00:13Z</dc:date>
    <item>
      <title>lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229853#M479631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz send me step by step process of lock objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 10:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229853#M479631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T10:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229854#M479632</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Provide three type of Lock objects. &lt;/P&gt;&lt;P&gt;- Read Lock(Shared Locked) &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 &lt;/P&gt;&lt;P&gt;the locked area of the table &lt;/P&gt;&lt;P&gt;&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 &lt;/P&gt;&lt;P&gt;the locked area of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enhanced write lock (exclusive lock without cumulating) &lt;/P&gt;&lt;P&gt;works like a write lock except that the enhanced write lock also protects from further accesses from the &lt;/P&gt;&lt;P&gt;same transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technicaly: &lt;/P&gt;&lt;P&gt;When you create a lock object System automatically creat two function module. &lt;/P&gt;&lt;P&gt;1. ENQUEUE_&amp;lt;Lockobject name&amp;gt;. to insert the object in a queue. &lt;/P&gt;&lt;P&gt;2. DEQUEUE_&amp;lt;Lockobject name&amp;gt;. To remove the object is being queued through above FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;GO TO SE11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the radio button "Lock object"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the name starts with EZ or EY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: EYTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press Create button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the short description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Lock object for table ZTABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tables tab..Give the table name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: ZTABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and generate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your lock object is now created..You can see the LOCK MODULES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the menu ..GOTO -&amp;gt; LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock objects: &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm" target="test_blank"&gt;http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match Code Objects:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/tip/0,289483,sid21_gci553386,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/tip/0,289483,sid21_gci553386,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm" target="test_blank"&gt;http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 10:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229854#M479632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229855#M479633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2229125&amp;amp;messageID=3301061" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2229125&amp;amp;messageID=3301061&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 10:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229855#M479633</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-04-23T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229856#M479634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 10:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229856#M479634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229857#M479635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GO TO SE11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the radio button "Lock object"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the name starts with EZ or EY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: EYTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press Create button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the short description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Lock object for table ZTABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tables tab..Give the table name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: ZTABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and generate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your lock object is now created..You can see the LOCK MODULES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the menu ..GOTO -&amp;gt; LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 11:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229857#M479635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229858#M479636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sheik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock Objects are used to synchronize access to the same data by&lt;/P&gt;&lt;P&gt;more than one user. Function modules that can be used in&lt;/P&gt;&lt;P&gt;application programs are generated from the definition of a lock&lt;/P&gt;&lt;P&gt;object in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;The R/3 System synchronizes simultaneous access of&lt;/P&gt;&lt;P&gt;several users to the same data records with a lock&lt;/P&gt;&lt;P&gt;mechanism. When interactive transactions are programmed,&lt;/P&gt;&lt;P&gt;locks are set and released by calling function modules .&lt;/P&gt;&lt;P&gt;These function modules are automatically generated from the&lt;/P&gt;&lt;P&gt;definition of lock objects in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;Structure of a Lock Object&lt;/P&gt;&lt;P&gt;The tables in which data records should be locked with a&lt;/P&gt;&lt;P&gt;lock request are defined in a lock object together with their&lt;/P&gt;&lt;P&gt;key fields.&lt;/P&gt;&lt;P&gt;When tables are selected, one table (the primary table) is&lt;/P&gt;&lt;P&gt;first selected. Further tables (secondary tables) can also be&lt;/P&gt;&lt;P&gt;added using foreign key relationships.&lt;/P&gt;&lt;P&gt;Lock Arguments&lt;/P&gt;&lt;P&gt;The lock argument of a table in the lock object consists of the&lt;/P&gt;&lt;P&gt;key fields of the table.&lt;/P&gt;&lt;P&gt;The lock argument fields of a lock object are used as input&lt;/P&gt;&lt;P&gt;parameters in the function modules for setting and removing&lt;/P&gt;&lt;P&gt;locks generated from the lock object definition. When these&lt;/P&gt;&lt;P&gt;function modules are called, the table rows to be locked or&lt;/P&gt;&lt;P&gt;unlocked are specified by defining certain values in these fields.&lt;/P&gt;&lt;P&gt;These values can also be generic. The lock argument fields&lt;/P&gt;&lt;P&gt;therefore define which subset of the table rows should be&lt;/P&gt;&lt;P&gt;locked.&lt;/P&gt;&lt;P&gt;Data Dictionary/ Lock Objects&lt;/P&gt;&lt;P&gt;The simplest case of a lock object consists of exactly one&lt;/P&gt;&lt;P&gt;table and the lock argument of the table is the primary key of&lt;/P&gt;&lt;P&gt;this table. Several tables can also be included in a lock&lt;/P&gt;&lt;P&gt;object. A lock request therefore can lock an entire logical&lt;/P&gt;&lt;P&gt;object, and not only a record of a table. Such a logical object&lt;/P&gt;&lt;P&gt;can be for example a document comprising an entry in a&lt;/P&gt;&lt;P&gt;header table and N entries in a positiontable.&lt;/P&gt;&lt;P&gt;Lock Mode&lt;/P&gt;&lt;P&gt;The lock mode controls whether several users can access&lt;/P&gt;&lt;P&gt;data records at the same time. The lock mode can be&lt;/P&gt;&lt;P&gt;assigned separately for each table in the lock object. When&lt;/P&gt;&lt;P&gt;the lock is set, the corresponding lock entry is stored in the&lt;/P&gt;&lt;P&gt;lock table of the system for each table.&lt;/P&gt;&lt;P&gt;Access by more than one user can be synchronized in the&lt;/P&gt;&lt;P&gt;following ways:&lt;/P&gt;&lt;P&gt;Exclusive lock: The locked data can only be displayed or&lt;/P&gt;&lt;P&gt;edited by a single user. A request for another exclusive lock&lt;/P&gt;&lt;P&gt;or for a&lt;/P&gt;&lt;P&gt;shared lock is rejected.&lt;/P&gt;&lt;P&gt;Shared lock: More than one user can access the locked data&lt;/P&gt;&lt;P&gt;at the same time in display mode. A request for another&lt;/P&gt;&lt;P&gt;shared lock is&lt;/P&gt;&lt;P&gt;accepted, even if it comes from another user. An exclusive lock&lt;/P&gt;&lt;P&gt;is&lt;/P&gt;&lt;P&gt;rejected.&lt;/P&gt;&lt;P&gt;Exclusive but not cumulative: Exclusive locks can be requested&lt;/P&gt;&lt;P&gt;several times from the same transaction and are processed&lt;/P&gt;&lt;P&gt;successively. In contrast, exclusive but not cumulative locks&lt;/P&gt;&lt;P&gt;can be called only once from the same transaction. All other&lt;/P&gt;&lt;P&gt;lock requests are rejected.&lt;/P&gt;&lt;P&gt;1&amp;gt; Select object type Lock object in the initial screen of the ABAP&lt;/P&gt;&lt;P&gt;Dictionary, enter an object name and choose Create.&lt;/P&gt;&lt;P&gt;The name of a lock object should begin with an E (Enqueue).&lt;/P&gt;&lt;P&gt;The maintenance screen for lock objects is displayed.&lt;/P&gt;&lt;P&gt;2&amp;gt; Enter an explanatory short text in the field Short text.&lt;/P&gt;&lt;P&gt;You can then use the short text to find the lock object at a later&lt;/P&gt;&lt;P&gt;time, for example with the R/3 Repository Information System.&lt;/P&gt;&lt;P&gt;3&amp;gt; Enter the name of the primary table of the lock object.&lt;/P&gt;&lt;P&gt;All other tables in the lock object must be linked with the&lt;/P&gt;&lt;P&gt;primary table using foreign keys.&lt;/P&gt;&lt;P&gt;4&amp;gt; Select the lock mode of the primary table in the field below&lt;/P&gt;&lt;P&gt;it.&lt;/P&gt;&lt;P&gt;The lock mode is used as the default value for the&lt;/P&gt;&lt;P&gt;corresponding parameters of the function modules generated&lt;/P&gt;&lt;P&gt;from the lock object.&lt;/P&gt;&lt;P&gt;5&amp;gt; Choose Add if you want to lock records in more than one&lt;/P&gt;&lt;P&gt;table with the lock object.&lt;/P&gt;&lt;P&gt;A list of all the tables linked with the primary table using valid&lt;/P&gt;&lt;P&gt;foreign keys is displayed. Select the appropriate table. The lock&lt;/P&gt;&lt;P&gt;mode of the primary table is copied as lock mode. You can&lt;/P&gt;&lt;P&gt;change this setting as required, for example you can assign the&lt;/P&gt;&lt;P&gt;lock mode separately for each table.&lt;/P&gt;&lt;P&gt;Similarly, you can add a table linked with the secondary table&lt;/P&gt;&lt;P&gt;just added with foreign keys. To do this, place the cursor on&lt;/P&gt;&lt;P&gt;the name of the secondary table and choose Add.&lt;/P&gt;&lt;P&gt;If no lock mode is assigned to a table, no lock is set for the&lt;/P&gt;&lt;P&gt;entries in this table when the generated function modules are&lt;/P&gt;&lt;P&gt;called. You should not assign a lock mode if a secondary table&lt;/P&gt;&lt;P&gt;was only used to define a path between the primary table and&lt;/P&gt;&lt;P&gt;another secondary table with foreign keys.&lt;/P&gt;&lt;P&gt;6&amp;gt; Save your entries.&lt;/P&gt;&lt;P&gt;A dialog box appears in which you have to assign the lock&lt;/P&gt;&lt;P&gt;object a development class.&lt;/P&gt;&lt;P&gt;7&amp;gt; You can define whether the function modules generated from&lt;/P&gt;&lt;P&gt;the lock object should be RFC-enabled on the Attributes tab&lt;/P&gt;&lt;P&gt;page. If you set the Allow RFC flag, the generated function&lt;/P&gt;&lt;P&gt;modules can be called from within another system with Remote&lt;/P&gt;&lt;P&gt;Function Call. If you permit Remote Function Calls for an&lt;/P&gt;&lt;P&gt;existing lock object, you must ensure that the generated&lt;/P&gt;&lt;P&gt;function modules are called from within an ABAP program with&lt;/P&gt;&lt;P&gt;parameters appropriate for the type. You should therefore check&lt;/P&gt;&lt;P&gt;all programs that use the associated function modules before&lt;/P&gt;&lt;P&gt;activating the lock object with the new option.&lt;/P&gt;&lt;P&gt;8&amp;gt; Choose Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********rewords some points.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 11:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2229858#M479636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T11:13:53Z</dc:date>
    </item>
  </channel>
</rss>

