<?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: Locking and unlocking in 2 programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629904#M1281909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siddarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, we have to unlock at the called program. That is how the program is design initially, therefore it will be difficult to change it. We want to make the change as simple as possible as it is a complex program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 00:33:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T00:33:57Z</dc:date>
    <item>
      <title>Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629897#M1281902</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;&lt;/P&gt;&lt;P&gt;I am trying to lock a table using the following in program A. This program A will call program B. I want to unlock in program B. But I noticed that it is not possible. Why is that so? Any way to let it release in program B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ENQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     MODE_RSTABLE         = 'E'&lt;/P&gt;&lt;P&gt;     TABNAME              = 'ZMM_DEPRP'&lt;/P&gt;&lt;P&gt;     VARKEY               = GV_KEY&lt;/P&gt;&lt;P&gt;      _SCOPE               = '1'&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;  call function 'DEQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     mode_rstable       = 'E'&lt;/P&gt;&lt;P&gt;     tabname            = 'ZMM_DEPRP'&lt;/P&gt;&lt;P&gt;     varkey             = gv_key&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629897#M1281902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629898#M1281903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think once the execution of program A is completed the table is automatically Unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629898#M1281903</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-05-14T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629899#M1281904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think even if u dont unlock the table..once the particluar session is completed it will get unlocked..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 10:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629899#M1281904</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-05-14T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629900#M1281905</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;use the function module ENQUE_DELETE. To delete lock entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But exercise caution, Delete only those entries which you have created. Deleting others may lead to data inconsistency in system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mathivanan.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 10:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629900#M1281905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T10:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629901#M1281906</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;To clarify further, program A will lock a table T and then call program B. In program B, after it satisfy some conditions, it will unlock the table T at that point and pass back the control to program A. The program will not end yet, but we need the table to be unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is the logic of our program. It is correct that the table remains lock even when it reach program B. However when it satisfy the conditions, it is supposed to unlock it (using DEQUEUE function). Why is it not able to unlock? Is it because of different programs? Any solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mathivanan G., I will try it out to see if it works. However I still prefer if can be done by the DEQUEUE function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629901#M1281906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629902#M1281907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it depends how you are calling the program.... are you using submit report or you are calling it with the transaction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629902#M1281907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629903#M1281908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't program A unlock the table just before calling program B, which would lock it again right away if necessary? This would be "cleaner" programming, and I don't think another process would slip in with a lock during these few microseconds.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629903#M1281908</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-14T12:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629904#M1281909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siddarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, we have to unlock at the called program. That is how the program is design initially, therefore it will be difficult to change it. We want to make the change as simple as possible as it is a complex program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 00:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629904#M1281909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T00:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Locking and unlocking in 2 programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629905#M1281910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathivanan G., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to delete the lock using the function you have suggested. I used FM ENQUE_READ to read the lock first and pass the same parameter to ENQUE_DELETE. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However out of curiosity, does anyone know why is it not able to use the DEQUEUE FM to unlock in another program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 01:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-and-unlocking-in-2-programs/m-p/5629905#M1281910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T01:09:34Z</dc:date>
    </item>
  </channel>
</rss>

