<?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: Parallel processing issue RESOURCE_FAILURE (Even work processes available) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712811#M32929</link>
    <description>&lt;P&gt;1. Called FM "STUM_WP_TOTAL_ACTIVITY" to count total number of dialogue work processes. &lt;/P&gt;&lt;P&gt;2. Divided it by 2 to get 50% and store it in variable ex: lv_max_proc. &lt;/P&gt;&lt;P&gt;4. Initialize variables lv_process_open = 0, and lv_process_close = 0.&lt;/P&gt;&lt;P&gt;5. Increment the variable lv_process_open by 1 after successfully calling the FM in new task.&lt;/P&gt;&lt;P&gt;6. Increment the variable lv_process_close in subroutine that is calling on end of task.&lt;/P&gt;&lt;P&gt;7. Insert below code in the Do loop where we are calling the FM with addition starting new task.&lt;BR /&gt;WAIT UNTIL lv_max_proc &amp;gt;= (lv_process_open - lv_porcess_close).&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 12:25:15 GMT</pubDate>
    <dc:creator>former_member594765</dc:creator>
    <dc:date>2018-10-24T12:25:15Z</dc:date>
    <item>
      <title>Parallel processing issue RESOURCE_FAILURE (Even work processes available)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712809#M32927</link>
      <description>&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am facing an issue in parallel processing. I implemented parallel processing as explained below. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Inside DO loop, I am calling a custom function module (RFC enabled) with the addition STARTING NEW TASK DESTINATION DEFAULT. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If any exception comes while calling the FM, waiting for 1 second and continuing. So that in next iteration FM will be called for same set of data. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If no exception comes then increment some variables so that, in next loop iteration the FM will be called for next set of data.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;and I implemented the code in such a way to restrict the utilization of Dialogue work processes to 50% of all application servers.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;U&gt;The issue I am facing is:&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;after opening ~1000 new tasks (all opened processes are finished), I am getting exception "RESOURCE_FAILURE" continuously (Always) even though Dialogue work processes are available. So that the program is stuck in the DO loop. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Could anybody please tell me the reason, why we are getting exception RESOURCE_FAILURE even though dialogue work processes are freely available in the system. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Suresh&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712809#M32927</guid>
      <dc:creator>former_member594765</dc:creator>
      <dc:date>2018-10-24T09:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing issue RESOURCE_FAILURE (Even work processes available)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712810#M32928</link>
      <description>&lt;P&gt;&lt;EM&gt;and I implemented the code in such a way to restrict the utilization of Dialogue work processes to 50% of all application servers.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How did you do that, exactly?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712810#M32928</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-10-24T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing issue RESOURCE_FAILURE (Even work processes available)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712811#M32929</link>
      <description>&lt;P&gt;1. Called FM "STUM_WP_TOTAL_ACTIVITY" to count total number of dialogue work processes. &lt;/P&gt;&lt;P&gt;2. Divided it by 2 to get 50% and store it in variable ex: lv_max_proc. &lt;/P&gt;&lt;P&gt;4. Initialize variables lv_process_open = 0, and lv_process_close = 0.&lt;/P&gt;&lt;P&gt;5. Increment the variable lv_process_open by 1 after successfully calling the FM in new task.&lt;/P&gt;&lt;P&gt;6. Increment the variable lv_process_close in subroutine that is calling on end of task.&lt;/P&gt;&lt;P&gt;7. Insert below code in the Do loop where we are calling the FM with addition starting new task.&lt;BR /&gt;WAIT UNTIL lv_max_proc &amp;gt;= (lv_process_open - lv_porcess_close).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-issue-resource-failure-even-work-processes-available/m-p/712811#M32929</guid>
      <dc:creator>former_member594765</dc:creator>
      <dc:date>2018-10-24T12:25:15Z</dc:date>
    </item>
  </channel>
</rss>

