<?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 Help regarding Table Lock in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566466#M255920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am writing a FM to insert data into a Z table, but before inserting the data I have to check if the Z table is locked or not. If the table is locked I have to wait for lock to disappear and then continue processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am using FM 'ENQUEUE_E_TABLE' to lock the table but is there is any way to find out when the lock is released?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2006 06:26:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-21T06:26:57Z</dc:date>
    <item>
      <title>Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566466#M255920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am writing a FM to insert data into a Z table, but before inserting the data I have to check if the Z table is locked or not. If the table is locked I have to wait for lock to disappear and then continue processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am using FM 'ENQUEUE_E_TABLE' to lock the table but is there is any way to find out when the lock is released?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566466#M255920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566467#M255921</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;One of the exceptions raised by 'ENQUEUE_E_TABLE' is FORIEGN_LOCK. SO if this exception is raised then your table will not get locked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i think it is taken care of automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566467#M255921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566468#M255922</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;After calling fm ENQUEUE_E_TABLE you have to check the SY-SUBRC, if it' zero it means the table is unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember the lock is automatically released only at the end of trx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566468#M255922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566469#M255923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If u want lock ur Ztables then create the lock objects for the same using Tcode SE11. The Lock Object name should start with EZ or EY.&lt;/P&gt;&lt;P&gt;Once u activated the Lock Object which u have created a Fm will be created automatically with the name ENQUEUE_EZ(name) for locking and DEQUEUE_EZ(NAME).&lt;/P&gt;&lt;P&gt;Use these FM for locking and unloking.&lt;/P&gt;&lt;P&gt;same procedure can be followed for the Std. Tables also.&lt;/P&gt;&lt;P&gt;refer for example..&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="2074992"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if useful reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566469#M255923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566470#M255924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Punit,&lt;/P&gt;&lt;P&gt;Releasing of Lock depends on the person who is using that particular Lock, u cannot blindly wait for the lock to be released, one thing you can try out is call the Enqueue FM(lock) in the PBO of the dialog program and the Dequeue FM(Unlock) just before you come out of the transaction, thats the probable solution what i feel from your question. For any clarrification Revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Santosh.D&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566470#M255924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566471#M255925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for the exception FORIEGN_LOCK raised by that FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566471#M255925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566472#M255926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Every body for help,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    The problem I am facing is suppose I make an attempt to lock the Z table with my ID, but I it was already locked by some another user. Now I have to wait for the lock by another user to release and then lock the table with my ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   How can I check when the other user will release the lock and I can lock the table with my ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566472#M255926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Table Lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566473#M255927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out tcode SM12 for Lock Entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Santosh.D&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-table-lock/m-p/1566473#M255927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:55:35Z</dc:date>
    </item>
  </channel>
</rss>

