<?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: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797399#M342564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dieter,&lt;/P&gt;&lt;P&gt;  Your tables (In this case MKPF/MSEG) can be locked only for the duration of your program. If your program is running for 12 hours (say a monthly report or so), then you can lock your tables at the beginning of your program and they will remain locked till the program ends. But once the program ends the locks will be released and the tables will be accessible to other programs/users. If you want to lock your tables even after the program ends, then you have to lock the transaction with SM01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 04:41:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T04:41:19Z</dc:date>
    <item>
      <title>Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797392#M342557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i use the above FMs in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_TEST1 MESSAGE-ID ZZ.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PARAMETERS: P_LOCK   RADIOBUTTON GROUP PRI1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            P_UNLOCK RADIOBUTTON GROUP PRI1.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: TABLE LIKE  RSTABLE-TABNAME VALUE 'MSEG'.&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;  CASE P_LOCK.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    WHEN 'X'.&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&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;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        WRITE: / 'P_LOCK', SY-SUBRC.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&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;P&gt;          TABNAME        = TABLE&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;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        WRITE: / 'P_UNLOCK', SY-SUBRC.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run with P_LOCK = 'X' and look in SM12 nothing is locked.&lt;/P&gt;&lt;P&gt;What mistake is in my report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 12:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797392#M342557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T12:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797393#M342558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dieter,&lt;/P&gt;&lt;P&gt;  The problem is that SAP will automatically release all the locks if the program/transaction has terminated sucessfully. So by the time you look in transaction SM12, ZGRO_TEST1 has ended and the locks are released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 12:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797393#M342558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797394#M342559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see another possibility to lock/unlock a table&lt;/P&gt;&lt;P&gt;after the report ends?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 12:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797394#M342559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797395#M342560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as program execution is finished all locks will be realeased.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You debug the program and check in sm12 simultaneously , at one point of program table will be locked and it will be released as soon as program execution is finished..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull..&lt;/P&gt;&lt;P&gt;Let me know if you want more clarification..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 12:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797395#M342560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797396#M342561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dieter,&lt;/P&gt;&lt;P&gt;  I didnt understand your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 13:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797396#M342561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797397#M342562</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 executed ur program and checked the entries in sm12.&lt;/P&gt;&lt;P&gt;there exists an entry in sm12 for the program code  in TRDIR table .&lt;/P&gt;&lt;P&gt;it shows an exclusive lock placed on the table which could be deleted as well&lt;/P&gt;&lt;P&gt; by checking the other radiobutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i suggest you to check the locked entry in TRDIR table , by entering your program name in the selection screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz revert if the issue persists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 13:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797397#M342562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T13:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797398#M342563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;what i want is this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have our Inventory. I don't whant to lock Tcodes via SM01.&lt;/P&gt;&lt;P&gt;I will lock MKPF and MSEG for about 12 hours.&lt;/P&gt;&lt;P&gt;Therefor i tried it via a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer show to me, that this isn't possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore i look for another possibility to lock MKPF/MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 13:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797398#M342563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ENQUEUE_E_TABLE/DEQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797399#M342564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dieter,&lt;/P&gt;&lt;P&gt;  Your tables (In this case MKPF/MSEG) can be locked only for the duration of your program. If your program is running for 12 hours (say a monthly report or so), then you can lock your tables at the beginning of your program and they will remain locked till the program ends. But once the program ends the locks will be released and the tables will be accessible to other programs/users. If you want to lock your tables even after the program ends, then you have to lock the transaction with SM01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 04:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-enqueue-e-table-dequeue-e-table/m-p/1797399#M342564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T04:41:19Z</dc:date>
    </item>
  </channel>
</rss>

