<?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: abt lock objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820472#M350738</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 is an aggregated dictionary object and can be defined by using the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen&lt;/P&gt;&lt;P&gt;o	Enter short text as usual and the name for primary table.&lt;/P&gt;&lt;P&gt;o	Save&lt;/P&gt;&lt;P&gt;o	Select Tables option&lt;/P&gt;&lt;P&gt;From this screen you can:&lt;/P&gt;&lt;P&gt;Select secondary tables, if any, linked by foreign key relationship.&lt;/P&gt;&lt;P&gt;Fields for the lock objects. This option allows you to select fields for objects (R/3  system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you activate the lock object, the functions are automatically generated. And these are ENQUEUE-EZN and DEQUEUE-EZN. EZN is name of the lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While ENQUEUE is used in program to set the code over the selected data depending upon the lock object arguments. DEQUEUE is used to release the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2007 14:43:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-04T14:43:00Z</dc:date>
    <item>
      <title>abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820470#M350736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im aware of how to create lock objects.&lt;/P&gt;&lt;P&gt;but dont know how to use them exactly and where can anybody give me with example and how to use lock objects .&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820470#M350736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820471#M350737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this 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="2904801"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820471#M350737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820472#M350738</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 is an aggregated dictionary object and can be defined by using the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen&lt;/P&gt;&lt;P&gt;o	Enter short text as usual and the name for primary table.&lt;/P&gt;&lt;P&gt;o	Save&lt;/P&gt;&lt;P&gt;o	Select Tables option&lt;/P&gt;&lt;P&gt;From this screen you can:&lt;/P&gt;&lt;P&gt;Select secondary tables, if any, linked by foreign key relationship.&lt;/P&gt;&lt;P&gt;Fields for the lock objects. This option allows you to select fields for objects (R/3  system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you activate the lock object, the functions are automatically generated. And these are ENQUEUE-EZN and DEQUEUE-EZN. EZN is name of the lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While ENQUEUE is used in program to set the code over the selected data depending upon the lock object arguments. DEQUEUE is used to release the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820472#M350738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820473#M350739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest.
* testing the locking of tables...
data:
  varkey like rstable-varkey.

  varkey = sy-mandt.

* locking the tables............................
call function 'ENQUEUE_E_TABLE'
 exporting
*   MODE_RSTABLE         = 'E'
   tabname              = 'MARA'
   varkey               = varkey
*   X_TABNAME            = ' '
*   X_VARKEY             = ' '
*   _SCOPE               = '2'
*   _WAIT                = ' '
*   _COLLECT             = 'X'
 exceptions
   foreign_lock         = 1
   system_failure       = 2
   others               = 3
          .
  case sy-subrc.
    when 1.
        message i184(bctrain) with 'Foreignlock'.
    when 2.
      message i184(bctrain) with 'system failure'.
    when 0.
      message i184(bctrain) with 'success'.
        when others.
        message i184(bctrain) with 'others'.
  endcase.

* unlocking the table...............

  call function 'DEQUEUE_E_TABLE'
   exporting
*     MODE_RSTABLE       = 'E'
     tabname            = 'MARA'
     varkey             =  varkey
*     X_TABNAME          = ' '
*     X_VARKEY           = ' '
*     _SCOPE             = '3'
*     _SYNCHRON          = ' '
*     _COLLECT           = ' '
            .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820473#M350739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820474#M350740</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 objects are used to synchronize access to the same data by more than one program.look at the above examples,its good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look at these links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/frameset.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gunasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 04:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820474#M350740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T04:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820475#M350741</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;Do the following steps..&lt;/P&gt;&lt;P&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 modules to lock and unlock the records..&lt;/P&gt;&lt;P&gt;Some more information is here.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/198c37bf76454aa4058d8af3d806ab/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/198c37bf76454aa4058d8af3d806ab/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-charitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 04:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820475#M350741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T04:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820476#M350742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lock objects are created not for locking the Table, It is for locking the particular object for example Material number , Sales order No etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the objects are Business entities such as Material Number, Sales order no,&lt;/P&gt;&lt;P&gt;Invoice No. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever a lock object is created, it creates two function modules &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_*******&lt;/P&gt;&lt;P&gt;DEQUEUE_*******.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Lock a particular object U need to call the function module ENQUEUE_*******,&lt;/P&gt;&lt;P&gt;&amp;amp; to unlock call the function module DEQUEUE_*****.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly award points if the answer is usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;K.Varadharajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 07:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820476#M350742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T07:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: abt lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820477#M350743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Feb 2007 10:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abt-lock-objects/m-p/1820477#M350743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-24T10:33:56Z</dc:date>
    </item>
  </channel>
</rss>

