<?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 Recommended retry for ENQUEUE process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481154#M1850259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm planning to put a retry when failing to get a lock object in my ABAP program.&lt;/P&gt;&lt;P&gt;I know that we can use the _wait parameter in FM. But I prefer to use a custom wait-time and max-retry, so I plan to call the ENQUEUE FM inside a DO.x TIMES. ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm afraid that calling ENQUEUE too many times could eat too much resource or impact in bad performance. (According to the basis team, the enque/table_size is configured as recommended by SAP, an so far it is still enough) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a 2 seconds interval, up to 30 times (results in max 1 minute wait before giving up getting the lock) is a worrying number?&lt;/P&gt;&lt;P&gt;Is it true that calling ENQUEUE too many times could result in SAP lock table overflow even if the lock is not acquired?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Suwandi C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 11:41:35 GMT</pubDate>
    <dc:creator>suwandi_cahyadi</dc:creator>
    <dc:date>2014-08-05T11:41:35Z</dc:date>
    <item>
      <title>Recommended retry for ENQUEUE process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481154#M1850259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm planning to put a retry when failing to get a lock object in my ABAP program.&lt;/P&gt;&lt;P&gt;I know that we can use the _wait parameter in FM. But I prefer to use a custom wait-time and max-retry, so I plan to call the ENQUEUE FM inside a DO.x TIMES. ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm afraid that calling ENQUEUE too many times could eat too much resource or impact in bad performance. (According to the basis team, the enque/table_size is configured as recommended by SAP, an so far it is still enough) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a 2 seconds interval, up to 30 times (results in max 1 minute wait before giving up getting the lock) is a worrying number?&lt;/P&gt;&lt;P&gt;Is it true that calling ENQUEUE too many times could result in SAP lock table overflow even if the lock is not acquired?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Suwandi C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 11:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481154#M1850259</guid>
      <dc:creator>suwandi_cahyadi</dc:creator>
      <dc:date>2014-08-05T11:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended retry for ENQUEUE process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481155#M1850260</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 think 30 table reads a min is no performance problem...&lt;/P&gt;&lt;P&gt;during migration we set alot enqueues. and we did without wait statement &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/978/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; still the rest of the system worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Stefan Seeburger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481155#M1850260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-05T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended retry for ENQUEUE process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481156#M1850261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Lock table overflow can only occur if the locks are not getting released. Like if you have program where you are updating 1M records. If your program is like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Lock all 1M records&lt;/LI&gt;&lt;LI&gt;Process the records and update the table&lt;/LI&gt;&lt;LI&gt;Unlock all 1M records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In this instance, the lock table overflow can occur if the lock table can't hold 1M records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you implement the DO.. ENQUEUE.. ENDDO, the lock table overflow can't occur, if you implement it properly. It should be implemented like:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;DO n times&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; call ENQUEUE FM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; if sy-subrc eq 0. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; locked = 'x'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WAIT UP TO 1 SECOND&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;Enddo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;if locked = 'x'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; call DEQUEUE FM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; call BAPI to update&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; error handling, lock not applied&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;endif.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you should put the loop time and wait second, in configurable table say TVARVC so it can be controlled easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this instance, you would always have only 1 entry in your lock table, When you try to lock it again using the ENQUEUE FM and if it fails, there is an existing lock entry. if it succeed, you would have a new lock entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recommended-retry-for-enqueue-process/m-p/10481156#M1850261</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2014-08-05T15:29:40Z</dc:date>
    </item>
  </channel>
</rss>

