<?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 Enqueue Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533975#M243720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;    i have a custom transaction in SAP. &lt;/P&gt;&lt;P&gt;    if a user is currently running the transaction and that same time if any other user tries to run the same transaction i should display error that "you cannot run the transation at this time". in short only one person can run the transaction at any given point of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    can anyone help me how to achieve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    awaiting your reply and thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sai easwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 03:44:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-02T03:44:12Z</dc:date>
    <item>
      <title>Enqueue Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533975#M243720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;    i have a custom transaction in SAP. &lt;/P&gt;&lt;P&gt;    if a user is currently running the transaction and that same time if any other user tries to run the same transaction i should display error that "you cannot run the transation at this time". in short only one person can run the transaction at any given point of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    can anyone help me how to achieve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    awaiting your reply and thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sai easwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 03:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533975#M243720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T03:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Enqueue Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533976#M243721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Create a Lock object with mode 'E' on the tables used in the custom program. Activate the lock object, when u do it 2 Function Modules are generated&amp;lt;b&amp;gt;[ENQUEUE_&amp;lt;Lock_object_name&amp;gt; and DEQUEUE_&amp;lt;Lock_object_name&amp;gt; ]&amp;lt;/b&amp;gt; CALL The Enqueue module in PBO which is used to lock and call the Dequeue module after exit statement in PAI to Unlock.&lt;/P&gt;&lt;P&gt;For Further Information on Lock objects check out SAP Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:-&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 04:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533976#M243721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enqueue Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533977#M243722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    i guess lock obejcts are for tables&lt;/P&gt;&lt;P&gt;    i want to know if the transaction/program is currently being run by someone or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    the table is in a different box altogother..i am running the program in one server and the table to be updated is in anotehr server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sai easwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 04:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533977#M243722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T04:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Enqueue Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533978#M243723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;      Check out this example code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is for locking the table for calorific values(te450).&lt;/P&gt;&lt;P&gt;In the same way, you should find a function module for your table. You can find it by going to se37 transaction and typing 'ENQUEUE*' and press F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS:&lt;/P&gt;&lt;P&gt;             lc_exc_lock      TYPE c VALUE 'E',&lt;/P&gt;&lt;P&gt;             lc_enqueue_scope TYPE c VALUE '2',&lt;/P&gt;&lt;P&gt;             lc_dequeue_scope TYPE c VALUE '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock the table te450&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'ENQUEUE_EZCALOR_VALUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      mode_te450     = lc_exc_lock&lt;/P&gt;&lt;P&gt;      &lt;U&gt;scope         = lc&lt;/U&gt;enqueue_scope&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;    EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modifying the te450 table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MODIFY te450 FROM TABLE lit_te450.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock the te450 table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_EZCALOR_VALUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      mode_te450 = lc_exc_lock&lt;/P&gt;&lt;P&gt;      &lt;U&gt;scope     = lc&lt;/U&gt;dequeue_scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find this example useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanuja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 05:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-transaction/m-p/1533978#M243723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T05:00:40Z</dc:date>
    </item>
  </channel>
</rss>

