<?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: Call Function starting new Task - Close used and useless task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031089#M1807919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Raymond but It's not what I need anyway I think these information will be very usefull for me; I need to close a task when its program end the execution getting available its channel for another task&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2014 16:51:19 GMT</pubDate>
    <dc:creator>former_member528154</dc:creator>
    <dc:date>2014-01-14T16:51:19Z</dc:date>
    <item>
      <title>Call Function starting new Task - Close used and useless task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031085#M1807915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi all, I have to elaborate more than 2 millions of record, I have divided these record making a small packages and running my function "in update task" with all my different packages of data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Now I'm having a problem with the available channels because for example I must launch 10 parallel procedures but I have only 9 available channels, if I start with these 9 channels it seems it will be busy until the end of the 10th package.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Why the 9 channels wait for the end of 10th? If the execution of their program finish I expect that the 9 channel return to be available. I should close the channel and set it as available after the end of any single function execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;How can I solve my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;do n times&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;call &lt;SPAN class="L0S52"&gt;function &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'FUNCTION' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN class="L0S33"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN class="L0S52"&gt;starting &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;new &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;task &lt;/SPAN&gt;lv_name &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;destination &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;group &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'parallel_generators'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; performing f_return_info &lt;SPAN class="L0S52"&gt;on &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;task&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;enddo&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 14:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031085#M1807915</guid>
      <dc:creator>former_member528154</dc:creator>
      <dc:date>2014-01-14T14:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function starting new Task - Close used and useless task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031086#M1807916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you first call &lt;A href="http://search.sap.com/ui/scn#query=SPBT_INITIALIZE"&gt;SPBT_INITIALIZE&lt;/A&gt; to get number of free processes. Then every time you successfully create a task increment a counter of current running tasks. Decrement the counter in the end of task method/form. Check&amp;nbsp; maximum number of running tasks reached before creating a new task, if reached use a WAIT UNTIL one process ends and decrements current number of running tasks to less than maximum number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information at help.sap.com : &lt;A href="http://help.sap.com/saphelp_nw73/helpdata/en/4d/909309eba36e73e10000000a15822b/content.htm"&gt;&lt;SPAN class="SAPXDPTitle"&gt;Implementing Parallel Processing&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 14:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031086#M1807916</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-01-14T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function starting new Task - Close used and useless task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031087#M1807917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;There is a procedure with SPBT_INITIALIZE to calculate how many processes I can run but I want to keep&amp;nbsp; some available channels; so for example I have 10 free channel but I want divide my session in 8 + 2 to keep 2 channels free for other different processes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 15:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031087#M1807917</guid>
      <dc:creator>former_member528154</dc:creator>
      <dc:date>2014-01-14T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function starting new Task - Close used and useless task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031088#M1807918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In RZ12 when you define server groups, there is an option to keep a "Minimum Number of Free WPs" (SPBT_INITIALIZE respects this limit ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 15:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031088#M1807918</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-01-14T15:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function starting new Task - Close used and useless task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031089#M1807919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Raymond but It's not what I need anyway I think these information will be very usefull for me; I need to close a task when its program end the execution getting available its channel for another task&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task-close-used-and-useless-task/m-p/10031089#M1807919</guid>
      <dc:creator>former_member528154</dc:creator>
      <dc:date>2014-01-14T16:51:19Z</dc:date>
    </item>
  </channel>
</rss>

