<?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: Calling function in NEW TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877177#M1594385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the no of tasks is restricted to 6. Refer sap help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 06:49:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-26T06:49:16Z</dc:date>
    <item>
      <title>Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877176#M1594384</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 am creating a program which calls a function, becuse the function gets list of 2000 employess and run for long time over the amount of employees i wrote "call function zxxxxx starting new task p_task_number...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is - how many tasks can i create ? can i run the function in 10 tasks (20 employees in each task)????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Elad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 06:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877176#M1594384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T06:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877177#M1594385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the no of tasks is restricted to 6. Refer sap help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 06:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877177#M1594385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T06:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877178#M1594386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are calling the FM in starting new task, you are using up a Dialog work process on the app server, so the no of calls you make is dependent on the no of dialog work processes available in your landscape.&lt;/P&gt;&lt;P&gt;You can use SM51 to see the no of app servers(double click on each one of them to see the no of WPs) and SM50 to see the no of WP details on the server you are logged in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be care careful on how many calls you spawn from your program, refer the below link on which a similar question was answered, look for the last response on this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1948501"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 07:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877178#M1594386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T07:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877179#M1594387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The limit is the number of available dialog work processes, minus a few that should remain available for all other users.&lt;/P&gt;&lt;P&gt;You can determine the number of available processes by calling SPBT_INITIALIZE.&lt;/P&gt;&lt;P&gt;Also read the detailed SAP online documentation about asynchronous RFC (aRFC).&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 07:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877179#M1594387</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-26T07:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877180#M1594388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using it wrongly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION func STARTING NEW TASK task1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here "task1" is just a name and defining it with a number will not make any impact on performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try CALL FUNCTION func STARTING NEW TASK task1 DESTINATION dest IN GROUP DEFAULT, this will enable to run FM in groups (parallel processing) and might help in performance as will itself take care of available Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't help, try improving your program logic, STARTING NEW TASK may not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877180#M1594388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877181#M1594389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;try CALL FUNCTION func STARTING NEW TASK task1 DESTINATION dest IN GROUP DEFAULT, this will enable to run FM in groups (parallel processing) and might help in performance as will itself take care of available Application server.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not true, you can call an FM(which needs to be RFC of course) just like below, and you would still achieve parallel processing, read IN GROUP for more details on when and where to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_task TYPE char10.

DO 5 TIMES.
  l_task = sy-index.
  CONDENSE l_task.
  CONCATENATE 'TASK' l_task INTO l_task.
  CALL FUNCTION 'ZTEST_CHEN' STARTING NEW TASK l_task.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chen K V on May 26, 2011 2:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 09:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877181#M1594389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877182#M1594390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can run tasks many but see that you may not get any performance issue at runtime if your programme is module pool and than create an t.code for you won't get any issues&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 13:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877182#M1594390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-03T13:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function in NEW TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877183#M1594391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please enlighten me (us?), what does this have to do with module pool or t.code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 13:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-in-new-task/m-p/7877183#M1594391</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-06-03T13:42:21Z</dc:date>
    </item>
  </channel>
</rss>

