<?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: How did you solve 'lock' problem, when doing a job with parallel processing? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522442#M2004832</link>
    <description>&lt;P&gt;Indeed you will have to use a loop. First decide how long you want the process to wait to, then create a loop where you have four things:&lt;/P&gt;&lt;P&gt;1. The call to ENQUEUE_ESINDX&lt;/P&gt;&lt;P&gt;2. Check if the lock could be done successfully and if so, exit the loop and go on with processing&lt;/P&gt;&lt;P&gt;3. If locking could not be done, use instruction WAIT UP TO xx SECONDS in order to give the other process time to unlock once finished&lt;/P&gt;&lt;P&gt;4. Decrease a variable that you defined beforehand to decide how long you want to wait&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 07:34:33 GMT</pubDate>
    <dc:creator>AlbertoR</dc:creator>
    <dc:date>2021-11-24T07:34:33Z</dc:date>
    <item>
      <title>How did you solve 'lock' problem, when doing a job with parallel processing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522439#M2004829</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
  &lt;P&gt;Well, If there is a scenario, who want to do mass transfer of material, between storage location.&lt;/P&gt;
  &lt;P&gt;You have number of material which are maintain with different batch no, but same material number.&lt;/P&gt;
  &lt;P&gt;First of All, With using BAPI, It'll lock the material you're using - so it can't be processed with other parallel processing.&lt;/P&gt;
  &lt;P&gt;If you update your result in Z-tables, If 2 jobs are completed simultaneously, the Z-table is locked because a job is locking the table, making other job can't be updated - because table is locked by other job.&lt;/P&gt;
  &lt;P&gt;Any advice on this situation?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522439#M2004829</guid>
      <dc:creator>former_member282589</dc:creator>
      <dc:date>2021-11-24T07:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How did you solve 'lock' problem, when doing a job with parallel processing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522440#M2004830</link>
      <description>&lt;P&gt;I used the FM ENQUEUE_ESINDX, as suggested by  &lt;SPAN class="mention-scrubbed"&gt;rich.heilman&lt;/SPAN&gt; in his answer to this post &lt;A href="https://answers.sap.com/questions/972738/locking-a-report.html"&gt;Locking a Report | SAP Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522440#M2004830</guid>
      <dc:creator>AlbertoR</dc:creator>
      <dc:date>2021-11-24T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How did you solve 'lock' problem, when doing a job with parallel processing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522441#M2004831</link>
      <description>&lt;P&gt;Well, I know there is a 'enquene' concept of SAP.. but the problem is 'wait until the locked object is completed'.&lt;BR /&gt;Do I have to do use do-enddo clause?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522441#M2004831</guid>
      <dc:creator>former_member282589</dc:creator>
      <dc:date>2021-11-24T07:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How did you solve 'lock' problem, when doing a job with parallel processing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522442#M2004832</link>
      <description>&lt;P&gt;Indeed you will have to use a loop. First decide how long you want the process to wait to, then create a loop where you have four things:&lt;/P&gt;&lt;P&gt;1. The call to ENQUEUE_ESINDX&lt;/P&gt;&lt;P&gt;2. Check if the lock could be done successfully and if so, exit the loop and go on with processing&lt;/P&gt;&lt;P&gt;3. If locking could not be done, use instruction WAIT UP TO xx SECONDS in order to give the other process time to unlock once finished&lt;/P&gt;&lt;P&gt;4. Decrease a variable that you defined beforehand to decide how long you want to wait&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-did-you-solve-lock-problem-when-doing-a-job-with-parallel-processing/m-p/12522442#M2004832</guid>
      <dc:creator>AlbertoR</dc:creator>
      <dc:date>2021-11-24T07:34:33Z</dc:date>
    </item>
  </channel>
</rss>

