<?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 creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102293#M980977</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;In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built in on database tables. Developers can also lock objects over table records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To lock an object you need to call standard functions, which are automatically generated when defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defined LUW i.e, logical unit of work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases lock at the end of transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating lock objects.&lt;/P&gt;&lt;P&gt;From initial SE11 screen, enter the name for the object and then click create. The system displays a dialog box for maintain lock objects screen.&lt;/P&gt;&lt;P&gt;Enter short text and name the primary table.&lt;/P&gt;&lt;P&gt;save.&lt;/P&gt;&lt;P&gt;select the tables option.&lt;/P&gt;&lt;P&gt;select the secondary tables, if any linked by foreign key.&lt;/P&gt;&lt;P&gt;select the fields for the lock objects. (This will lock upto record level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you activate the object the lock object the functions Enqueue_lockobject, dequeue_lock onject are automatically generated.&lt;/P&gt;&lt;P&gt;Ene queue is used to lock the record in the transaction or report program and dequeue is used to release the lock.&lt;/P&gt;&lt;P&gt;Types of locks:&lt;/P&gt;&lt;P&gt;1.Exclusive: modified and displayed by single user.&lt;/P&gt;&lt;P&gt;2.Shared: several users can access simultaneously in display mode but can be modified single user the first one.&lt;/P&gt;&lt;P&gt;3.Exclusive not cumulating: similar to exclusive lock but can be called several times from the same transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 07:08:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T07:08:18Z</dc:date>
    <item>
      <title>lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102285#M980969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all.&lt;/P&gt;&lt;P&gt;   what is lock object . wat is exact use of lock object .&lt;/P&gt;&lt;P&gt;   can u send me simple example on lock object .&lt;/P&gt;&lt;P&gt;   is it mainly used for module pools or else .&lt;/P&gt;&lt;P&gt;  give me brief ....&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;&lt;/P&gt;&lt;P&gt;Tanx in advance ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102285#M980969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102286#M980970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search this site of LOCK OBJECTS.  or ENQUEUE.   Read the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search first - ask second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102286#M980970</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-01T05:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102287#M980971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;locking is required to prevent  multiple  acess to same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you are changing a PO.&lt;/P&gt;&lt;P&gt;A check is required to prevent editing of the same PO at the same time by some one else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purpose SAP use the concept of locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique is used for data consistency and integrity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this links for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm|http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102287#M980971</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2008-07-01T05:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102288#M980972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/Utilities/ABAPReference/ABENSAP_LOCK.htm|http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/Utilities/ABAPReference/ABENSAP_LOCK.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102288#M980972</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2008-07-01T05:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102289#M980973</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;    Not only for module pool.. where ever you want to restrict multi user Data fetching and modifying from the database table... there you can go for lock object...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after cretaing the lock object it can generate two function modules...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one is to lock and other one is to open the lock...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they are always.. like.... &lt;/P&gt;&lt;P&gt;ENQUEUE_&amp;lt;se11 lock object name&amp;gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;DEQUEUE_&amp;lt;se11 lock object name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create lock object...&lt;/P&gt;&lt;P&gt;1. Enter the name starting with EZ in the SE11 and click on create...&lt;/P&gt;&lt;P&gt;2. Enter the short text.&lt;/P&gt;&lt;P&gt;3.Give your table name under TABLES tab PRIMARY TABLE block&lt;/P&gt;&lt;P&gt;4. Set the Lock mode.. . ex: Exclusive , Not cumulative( u can c documentaion for this)&lt;/P&gt;&lt;P&gt;5. Activate&lt;/P&gt;&lt;P&gt;6. Goto-&amp;gt;lock modules... u can get two function modules like above...&lt;/P&gt;&lt;P&gt;7. thats is ur lock object cretaed...&lt;/P&gt;&lt;P&gt;now in the program whre ever u want to tetch the data from that table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before select statement...call this function moduel..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  CALL FUNCTION 'ENQUEUE_&amp;lt;lo name&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;gt;      EXPORTING&lt;/P&gt;&lt;P&gt;&amp;gt;        MODE_ZLOAN_REIM = 'X'&lt;/P&gt;&lt;P&gt;&amp;gt;        MANDT           = SY-MANDT&lt;/P&gt;&lt;P&gt;&amp;gt;        &amp;lt;keyfld&amp;gt;         = &amp;lt;value variable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;        X_ZEMP_CODE     = ' '&lt;/P&gt;&lt;P&gt;&amp;gt;        _SCOPE          = '2'&lt;/P&gt;&lt;P&gt;&amp;gt;        _WAIT           = ' '&lt;/P&gt;&lt;P&gt;&amp;gt;        _COLLECT        = ' '&lt;/P&gt;&lt;P&gt;&amp;gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;gt;        FOREIGN_LOCK    = 1&lt;/P&gt;&lt;P&gt;&amp;gt;        SYSTEM_FAILURE  = 2&lt;/P&gt;&lt;P&gt;&amp;gt;        OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&amp;gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;&amp;gt;              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&amp;gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102289#M980973</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-07-01T05:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102290#M980974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi matthiew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please dont use hard words..many times its difficult for new joiner to search..so better help him in searching and give links &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; hope you will take this in right spirit &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madan Gopal Sharma on Jul 1, 2008 8:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102290#M980974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102291#M980975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select object type Lock object in the initial screen of the ABAP Dictionary, enter an object name and choose Create. 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;&lt;/P&gt;&lt;P&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 time, for example with the R/3 Repository Information System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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 primary table using foreign keys. There are also some restrictions on the valid foreign key relationships.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the lock mode of the primary table in the field below it. &lt;/P&gt;&lt;P&gt;The lock mode is used as the default value for the corresponding parameters of the function modules generated from the lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Add if you want to lock records in more than one table with the lock object. &lt;/P&gt;&lt;P&gt;A list of all the tables linked with the primary table using valid foreign keys is displayed. Select the appropriate table. The lock mode of the primary table is copied as lock mode. You can change this setting as required, for example you can assign the lock mode separately for each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, you can add a table linked with the secondary table just added with foreign keys. To do this, place the cursor on the name of the secondary table and choose Add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no lock mode is assigned to a table, no lock is set for the entries in this table when the generated function modules are called. You should not assign a lock mode if a secondary table was only used to define a path between the primary table and another secondary table with foreign keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your entries. &lt;/P&gt;&lt;P&gt;A dialog box appears in which you have to assign the lock object a development class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can (optionally) exclude lock parameters (see lock objects) from the function module generation on the Lock parameter tab page. This makes sense for example if you always want to lock a parameter generically. &lt;/P&gt;&lt;P&gt;To do this, simply deselect the Weight flag for the parameter. The parameter is not taken into consideration in the generated function modules. This parameter is then always locked generically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of a lock parameter is usually the name of the corresponding table field. If two fields with the same name are used as lock parameters in the lock object from different tables, you must choose a new name for one of the fields in field Lock parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define whether the function modules generated from the lock object should be RFC-enabled on the Attributes tab page. &lt;/P&gt;&lt;P&gt;If you set the Allow RFC flag, the generated function modules can be called from within another system with Remote Function Call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you permit Remote Function Calls for an existing lock object, you must ensure that the generated function modules are called from within an ABAP program with parameters appropriate for the type. You should therefore check all programs that use the associated function modules before activating the lock object with the new option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose  Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock Modes :&lt;/P&gt;&lt;P&gt;The lock mode controls whether several users can access data records at the same time. The lock mode can be assigned separately for each table in the lock object. When the lock is set, the corresponding lock entry is stored in the lock table of the system for each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access by more than one user can be synchronized in the following ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected. &lt;/P&gt;&lt;P&gt;Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected. &lt;/P&gt;&lt;P&gt;Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102291#M980975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T06:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102292#M980976</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;STRONG&gt;&lt;U&gt;Lock Objects&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP System synchronizes simultaneous access of several users to the same data records with a lock mechanism. When interactive transactions are programmed, locks are set and released by calling function modules (see Function Modules for Lock Requests). These function modules are automatically generated from the definition of lock objects in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many types of lock objects? &lt;/P&gt;&lt;P&gt;How to create Lock objects? &lt;/P&gt;&lt;P&gt;What is the main use of it in real time? &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102292#M980976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102293#M980977</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;In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built in on database tables. Developers can also lock objects over table records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To lock an object you need to call standard functions, which are automatically generated when defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defined LUW i.e, logical unit of work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases lock at the end of transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating lock objects.&lt;/P&gt;&lt;P&gt;From initial SE11 screen, enter the name for the object and then click create. The system displays a dialog box for maintain lock objects screen.&lt;/P&gt;&lt;P&gt;Enter short text and name the primary table.&lt;/P&gt;&lt;P&gt;save.&lt;/P&gt;&lt;P&gt;select the tables option.&lt;/P&gt;&lt;P&gt;select the secondary tables, if any linked by foreign key.&lt;/P&gt;&lt;P&gt;select the fields for the lock objects. (This will lock upto record level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you activate the object the lock object the functions Enqueue_lockobject, dequeue_lock onject are automatically generated.&lt;/P&gt;&lt;P&gt;Ene queue is used to lock the record in the transaction or report program and dequeue is used to release the lock.&lt;/P&gt;&lt;P&gt;Types of locks:&lt;/P&gt;&lt;P&gt;1.Exclusive: modified and displayed by single user.&lt;/P&gt;&lt;P&gt;2.Shared: several users can access simultaneously in display mode but can be modified single user the first one.&lt;/P&gt;&lt;P&gt;3.Exclusive not cumulating: similar to exclusive lock but can be called several times from the same transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102293#M980977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102294#M980978</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 hope the following link will help you.&lt;/P&gt;&lt;P&gt;&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;regards,&lt;/P&gt;&lt;P&gt;sravan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 08:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102294#M980978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102295#M980979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi matthiew,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Please dont use hard words..many times its difficult for new joiner to search..so better help him in searching and give links &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; hope you will take this in right spirit &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Madan Gopal Sharma on Jul 1, 2008 8:47 AM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better the poster reads the rules, follows them, and cuts down on the useless noise in the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone posts a question which shows they've attempted to help themselves, you'll find me very helpful.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want the benefit of my experience, or do you want to feel good about yourself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 18:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects-creation/m-p/4102295#M980979</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-01T18:49:28Z</dc:date>
    </item>
  </channel>
</rss>

