<?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: enqueue/dequeue problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785758#M649454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You welcome tt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wk_prno like Z001-prno.&lt;/P&gt;&lt;P&gt;wk_prno = '1000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Locking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZ_Z001'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*mode_Z001 = 'E'&lt;/P&gt;&lt;P&gt;*mandt = sy-mandt&lt;/P&gt;&lt;P&gt;prno = wk_prno&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;X_PRNO = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; _SCOPE = '3'&lt;/P&gt;&lt;UL&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlocking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_EZ_Z001''&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              prno = wk_prno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Sep 2007 02:24:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-01T02:24:34Z</dc:date>
    <item>
      <title>enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785755#M649451</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 created lock object "ez_z001" for the table "z001", called&lt;/P&gt;&lt;P&gt;function module "enqueue_ez_z001" to lock the record, and the&lt;/P&gt;&lt;P&gt;the return code  sy-subrc = 0, but I still can edit the record in another&lt;/P&gt;&lt;P&gt;session/program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly advise what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 01:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785755#M649451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T01:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785756#M649452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you are calling FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum          = i_plaf-plnum -&amp;gt; Give your ztable field&lt;/P&gt;&lt;P&gt;          &amp;lt;b&amp;gt;    _scope         = '3'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;              foreign_lock   = 2&lt;/P&gt;&lt;P&gt;              system_failure = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the above FM ,How i am calling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlock &lt;/P&gt;&lt;P&gt; CALL FUNCTION 'DEQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum = i_plaf-plnum. -&amp;gt; give ztable field here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 02:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785756#M649452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T02:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785757#M649453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Seshu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called the FM as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wk_prno like Z001-prno.&lt;/P&gt;&lt;P&gt;wk_prno = '1000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZ_Z001'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   mode_Z001          = 'E'&lt;/P&gt;&lt;P&gt;   mandt                = sy-mandt&lt;/P&gt;&lt;P&gt;   prno                 = wk_prno&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_PRNO               = ' '&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;&lt;/P&gt;&lt;P&gt;Please kindly advise again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 02:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785757#M649453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T02:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785758#M649454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You welcome tt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wk_prno like Z001-prno.&lt;/P&gt;&lt;P&gt;wk_prno = '1000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Locking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZ_Z001'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*mode_Z001 = 'E'&lt;/P&gt;&lt;P&gt;*mandt = sy-mandt&lt;/P&gt;&lt;P&gt;prno = wk_prno&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;X_PRNO = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; _SCOPE = '3'&lt;/P&gt;&lt;UL&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlocking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_EZ_Z001''&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              prno = wk_prno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 02:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785758#M649454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T02:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785759#M649455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried according to your advise. But It didn't work. After the return code sy-subrc = 0, I still can edit the record via tcode SE16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly advise again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 02:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785759#M649455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T02:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785760#M649456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello tt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not mention table record at SE16 ,It is not possible to keep locking at record level in SE16 Transaction but you can keep locking record at transaction level ( if you have dialog program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherway you can lock complete table if you use below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock FM - 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;Unlock FM - 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am using ZTEST99 Table and i am able to lock complete table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSAI1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztest99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_RSTABLE         = 'E'&lt;/P&gt;&lt;P&gt;   TABNAME              = 'ZTEST99'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY             = ' '&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;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODE_RSTABLE       = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABNAME            = 'ZTEST99'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY           = ' '&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;          .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 04:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785760#M649456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T04:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: enqueue/dequeue problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785761#M649457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your expertise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was solved according to your advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 04:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-dequeue-problem/m-p/2785761#M649457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T04:37:43Z</dc:date>
    </item>
  </channel>
</rss>

