<?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 Configuring profile parameter for a table lock object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861243#M48077</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 want to set the 'wait time' (_WAIT) parameter as a profile parameter for a table lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have created a lock object on a ZTable. I lock and unlock this object in exclusive non-cumulative mode through the enqueue and dequeue lock object function modules. These generated FMs are invoked via my custom function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My function module will run in the background as a scheduled task in R/3. I execute the Enqueue FM at the start of the FM and keep the table locked until the last step finishes in my FM and then I Dequeue it. I want to have the processing wait and retry the Enqueuring FM at set intervals in case the one run doesn't finish entirely and a new run of this same job kicks off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;- Vik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2005 21:58:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-20T21:58:55Z</dc:date>
    <item>
      <title>Configuring profile parameter for a table lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861243#M48077</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 want to set the 'wait time' (_WAIT) parameter as a profile parameter for a table lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have created a lock object on a ZTable. I lock and unlock this object in exclusive non-cumulative mode through the enqueue and dequeue lock object function modules. These generated FMs are invoked via my custom function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My function module will run in the background as a scheduled task in R/3. I execute the Enqueue FM at the start of the FM and keep the table locked until the last step finishes in my FM and then I Dequeue it. I want to have the processing wait and retry the Enqueuring FM at set intervals in case the one run doesn't finish entirely and a new run of this same job kicks off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;- Vik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2005 21:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861243#M48077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-20T21:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring profile parameter for a table lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861244#M48078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the wait parameter = 'X'.  These means that if it encounters a lock, then it will wait a certain time for the lock to be released.  This certain time is a system value set by your basis team.  I don't imagine it being a very long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  CALL FUNCTION 'ENQUEUE_EZPIPHYINVREF'
       EXPORTING
            MODE_ZPIPHYINVREF = 'E'
            MANDT             = SY-MANDT
            _WAIT             = 'X'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2005 23:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861244#M48078</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-04-20T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring profile parameter for a table lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861245#M48079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How much time the system has to wait before re-trying to obtain the lock is something that you cannot control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can specify how many times the re-trial should be made. The profile parameter for that is &amp;lt;b&amp;gt;enque/delay_max&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inderstand the maximum number of re-trials is set to 5 by default. You can change it to a more tolerable value for your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 09:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/configuring-profile-parameter-for-a-table-lock-object/m-p/861245#M48079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T09:01:17Z</dc:date>
    </item>
  </channel>
</rss>

