<?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/2210625#M473431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pinky,&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;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;You have to use these function module in your program. &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********Rewards 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>Wed, 02 May 2007 03:19:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T03:19:02Z</dc:date>
    <item>
      <title>lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210619#M473425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to lock mara table for that i created lock object.I am unableto use  the created lock object in se38 if i am pressing f4 values this created object is not found in it.What might be the reason for it ?plz explain me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 08:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210619#M473425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T08:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210620#M473426</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;Have you tried to use ENQUEUE_MARA lock object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 08:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210620#M473426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T08:43: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/2210621#M473427</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;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;You have to use these function module in your program. &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 08:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210621#M473427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210622#M473428</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;use this useful link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 08:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210622#M473428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210623#M473429</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;Lock object can create in SE11. For more information check the following 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;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 18:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210623#M473429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210624#M473430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi pinky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u must have not taken enqueue n dequeue....ie; locking the objects n unlocking the objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check it out.&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;madhuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 03:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210624#M473430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T03:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210625#M473431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pinky,&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;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;You have to use these function module in your program. &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********Rewards 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>Wed, 02 May 2007 03:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/2210625#M473431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T03:19:02Z</dc:date>
    </item>
  </channel>
</rss>

