<?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 Call function start new task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219907#M1717274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i control number of task running with Call function 'ZMY_FUNC' starting new task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program:&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'ZMY_FUNC' STARTING NEW TASK 'TEST'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function ZMY_FUNC:&lt;/P&gt;&lt;P&gt;WAIT UP TO 100 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i see this task running? I went to SM58 and SM37 and nothing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 19:50:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-07T19:50:00Z</dc:date>
    <item>
      <title>Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219907#M1717274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i control number of task running with Call function 'ZMY_FUNC' starting new task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program:&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'ZMY_FUNC' STARTING NEW TASK 'TEST'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function ZMY_FUNC:&lt;/P&gt;&lt;P&gt;WAIT UP TO 100 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i see this task running? I went to SM58 and SM37 and nothing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219907#M1717274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T19:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219908#M1717275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See transaction SM50. In ZMY_FUNC waiting is not enough, do for example a SELECT..ENDSELECT on a table with a million or so lines. You should see the tasks occupying upto 5 work processes of type dialog (DIA) in transaction SM50.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219908#M1717275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-07T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219909#M1717276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SM50 will show you the task running, you could also use the &lt;SPAN class="qtext"&gt;[{CALLING meth}|{PERFORMING subr} ON END OF TASK] here decrement a counter, increased when CALLING FUNCTION. then you could add a WAIT UNTIL counter = 0 in main program if required. That can be useful when managing huge volume of data, as the submitted task will be considered as interactive process so can reach the time out limit. So you may be required to start smaller task and also not use every process of the avaliable servers, for that check FMs of FG &lt;/SPAN&gt;SPBT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219909#M1717276</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-01-07T20:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219910#M1717277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see my task in SM50. But my function is running by 3000 seconds. Via program i want to kill this process. How can i do that? Has any way to insert a time for CALL FUNCTION STARTING NEW TASK? For exemplo: if ZMY_FUNC don´t finish in 60 seconds, this task is killed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219910#M1717277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-08T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219911#M1717278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think so. Limit the execution time by other means. If you are processing data, just limit the amount of data that is being processed by each invocation so that it takes shorter time. If there is a loop involved just store the value of SY-UZEIT when entering the loop and check on each loop iteration the current value of SY-UZEIT and exit the loop with the exit command if the time limit has been reached (the difference of the computation is time in seconds the loop has been executing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to implement complex parallel processing, you should be looking at an existing implementation. Transaction SGEN is one. You may have to do keep records in a table and involve enqueue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219911#M1717278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-08T14:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call function start new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219912#M1717279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m change my code for CALL FUNCTION IN BACKGROUND TASK and control number of process executing with select in table ARFCSSTATE. This way i can execute process and control number of process in execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-start-new-task/m-p/9219912#M1717279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T16:08:50Z</dc:date>
    </item>
  </channel>
</rss>

