<?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: Dequeue for lock entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191913#M128759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 but the entry still appears in SM12 for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the administrator could use SM12 to delete the entry but they the colleagues want a special button to do this from the GUI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2006 17:08:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-04T17:08:24Z</dc:date>
    <item>
      <title>Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191906#M128752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don´t quite understand the concept of locking customer tables. I created a lock object for table 'Ztable' and in my program use the enqueue function module to lock the table. Then i make some checks. If checks are wrong, I want to unlock the table using dequeue function module but this doesn´t work. The lock entry can still be seen via transaction SM12 for table Ztable. &lt;/P&gt;&lt;P&gt;Anybody know what I´m missing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191906#M128752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191907#M128753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if you locked the table multiple times (cumulative lock). Unlocking the table once will only decrease the cumulation counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a common error on dequeue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191907#M128753</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2006-01-04T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191908#M128754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could we see your code please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191908#M128754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191909#M128755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you are not sending the same locked data to DEQUEUE FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'ENQUEUE_EZ_ZMARA'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              MATNR       = I_MATNR&lt;/P&gt;&lt;P&gt;              WERKS          = I_WERKS&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_EZ_ZMARA'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              MATNR = i_MATNR&lt;/P&gt;&lt;P&gt;              WERKS      = I_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191909#M128755</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-01-04T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191910#M128756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of further points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally an object is only locked while it (and other objects in the LUW) are being updated. IE.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Lock
Update
Unlock&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Additionally, you don't always have to lock the entire table. You can lock just those rows that are affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191910#M128756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191911#M128757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock object is exclusive, not cumulative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here´s the simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locking...&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_EZZGRBW_OHUBLOCK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        infospoke      = g_infospoke&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;unlocking ...&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_EZZGRBW_OHUBLOCK'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      infospoke = g_infospoke.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where g_infospoke is a variable for infospoke name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to ensure that the infospoke is being&lt;/P&gt;&lt;P&gt;read only once at a time. Once its finished transferring data, i wanted to unlock the entry in the lock table. &lt;/P&gt;&lt;P&gt;I also wanted to allow an administrator (ie. another user) to use the 'Dequeue...' function module to unlock the lock object if it were to hang for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191911#M128757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191912#M128758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of sy-subrc after the dequeue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want the administrators to use the FM? Can't they use SM12?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 16:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191912#M128758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T16:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191913#M128759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 but the entry still appears in SM12 for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the administrator could use SM12 to delete the entry but they the colleagues want a special button to do this from the GUI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 17:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191913#M128759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191914#M128760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try deleting the locks using SM12 and then rerun the code. If sy-subrc = 0, it should be unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 17:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191914#M128760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T17:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191915#M128761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;its running fine now, (though I´m not quite sure why since nothing was changed).&lt;/P&gt;&lt;P&gt;Thanks for the tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 18:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191915#M128761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dequeue for lock entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191916#M128762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's possible that the lock entry you saw was old and deleting it just put everything back where it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 18:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dequeue-for-lock-entry/m-p/1191916#M128762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T18:15:06Z</dc:date>
    </item>
  </channel>
</rss>

