<?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 object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572762#M258599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rahul,&lt;/P&gt;&lt;P&gt;steps&lt;/P&gt;&lt;P&gt;1.first generate a lock object on a perticular table in se11 &lt;/P&gt;&lt;P&gt;2. start lock object eith EZtabname then .&lt;/P&gt;&lt;P&gt;3.where u want to use that lock object call function ENQUEUE_lockobjname&lt;/P&gt;&lt;P&gt;4.pass lock mode and fields u want to lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 for unlock call function DEQUEUE_lockobjname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bellow is the sample example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPLOCKSS MESSAGE-ID sabapdocu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables ZPEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZPLOCK'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_ZPEMP           = 'S'&lt;/P&gt;&lt;P&gt;   MANDT                = SY-MANDT.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / 'Lock gained',sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZPEMP.&lt;/P&gt;&lt;P&gt;write: / ZPEMP-EMPNO,ZPEMP-FNAME,ZPEMP-MNAME.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait up to 60 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_EZPLOCK'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_ZPEMP       = 'S'&lt;/P&gt;&lt;P&gt;   MANDT            = SY-MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / 'Lock released',sy-uzeit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 09:53:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T09:53:18Z</dc:date>
    <item>
      <title>lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572759#M258596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need proper coding of lock object with parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572759#M258596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572760#M258597</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_di471/helpdata/EN/cf/21ea0b446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_di471/helpdata/EN/cf/21ea0b446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to lock and unlock object...&lt;/P&gt;&lt;P&gt;fm used...ENQUEUE_E_TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex...&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;lock Table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&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;HR originaltext="--------" /&gt;&lt;P&gt;Unlock Table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer for more....&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="1716213"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572760#M258597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572761#M258598</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;For the parameters, it is freely design by you. But always remember that the lock key should be always representing the unique record of the table. Otherwise it defeat the purpose of locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls have a look on FMs ENQUEUE_E_TABLE and DEQUEUE_E_TABLE as well. If your table is "Maintenance" allowed. You have to use these FMs as well to achieve the exclusive lock of your object. Because the table is accessible via SM30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572761#M258598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572762#M258599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rahul,&lt;/P&gt;&lt;P&gt;steps&lt;/P&gt;&lt;P&gt;1.first generate a lock object on a perticular table in se11 &lt;/P&gt;&lt;P&gt;2. start lock object eith EZtabname then .&lt;/P&gt;&lt;P&gt;3.where u want to use that lock object call function ENQUEUE_lockobjname&lt;/P&gt;&lt;P&gt;4.pass lock mode and fields u want to lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 for unlock call function DEQUEUE_lockobjname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bellow is the sample example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPLOCKSS MESSAGE-ID sabapdocu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables ZPEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZPLOCK'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_ZPEMP           = 'S'&lt;/P&gt;&lt;P&gt;   MANDT                = SY-MANDT.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / 'Lock gained',sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZPEMP.&lt;/P&gt;&lt;P&gt;write: / ZPEMP-EMPNO,ZPEMP-FNAME,ZPEMP-MNAME.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait up to 60 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_EZPLOCK'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_ZPEMP       = 'S'&lt;/P&gt;&lt;P&gt;   MANDT            = SY-MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / 'Lock released',sy-uzeit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572762#M258599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572763#M258600</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;chk this simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;lock Table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&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;HR originaltext="--------" /&gt;&lt;P&gt;Unlock Table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 10:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572763#M258600</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-18T10:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572764#M258601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     create lock objects for table in se11 and call &lt;/P&gt;&lt;P&gt;     function.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ENQUEUE_EZ_ZSDCFRT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            MODE_ZSDCFRT   = 'E'&lt;/P&gt;&lt;P&gt;            MANDT          = SY-MANDT&lt;/P&gt;&lt;P&gt;            ZORGZIP        = L_ORGZIP&lt;/P&gt;&lt;P&gt;            ZDESZIP        = L_DESZIP&lt;/P&gt;&lt;P&gt;            ZLAND1         = L_LAND1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          ZEFFDTE        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZORGZIP      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZDESZIP      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZLAND1       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZEFFDTE      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _SCOPE         = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _WAIT          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _COLLECT       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            FOREIGN_LOCK   = 1&lt;/P&gt;&lt;P&gt;            SYSTEM_FAILURE = 2&lt;/P&gt;&lt;P&gt;            OTHERS         = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_EZ_ZSDCFRT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            MODE_ZSDCFRT = 'E'&lt;/P&gt;&lt;P&gt;            MANDT        = SY-MANDT&lt;/P&gt;&lt;P&gt;            ZORGZIP      = P_ORGZIP&lt;/P&gt;&lt;P&gt;            ZDESZIP      = P_DESZIP&lt;/P&gt;&lt;P&gt;            ZLAND1       = COUNTRY&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          ZEFFDTE      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZORGZIP    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZDESZIP    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZLAND1     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          X_ZEFFDTE    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _SCOPE       = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _SYNCHRON    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          _COLLECT     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS       = 1.&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;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 10:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/1572764#M258601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T10:05:13Z</dc:date>
    </item>
  </channel>
</rss>

