<?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 to set a time out for parallel tasks (started with CALL FUNCTION STARTING NEW TASK)? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563735#M21705</link>
    <description>&lt;P&gt;I have tried to find out if/how ABAP unit tests execution time is limited. I found Class CL_AUNIT_CLASSTEST_SESSIONFE, Method __CANCEL_RFC does what you are proposing.&lt;/P&gt;
  &lt;P&gt;I will try to replicate it.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 14:52:43 GMT</pubDate>
    <dc:creator>nomssi</dc:creator>
    <dc:date>2018-02-09T14:52:43Z</dc:date>
    <item>
      <title>How to set a time out for parallel tasks (started with CALL FUNCTION STARTING NEW TASK)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563732#M21702</link>
      <description>&lt;P&gt;Dear ABAP Fellows &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Is there a reliable way to enforce a time out for a parallel task started using: &lt;/P&gt;
  &lt;P&gt;CALL FUNCTION .... STARTING NEW TASK&lt;/P&gt;
  &lt;P&gt;Let say I want to start 3 parallel tasks with different time outs: &lt;/P&gt;
  &lt;P&gt;Task 1 - 10 seconds&lt;/P&gt;
  &lt;P&gt;Task 2 - 20 seconds&lt;/P&gt;
  &lt;P&gt;Task 3 - 30 seconds&lt;/P&gt;
  &lt;P&gt;Any suggestions how to achieve this?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Jacek&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 16:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563732#M21702</guid>
      <dc:creator>Jacek_Dev</dc:creator>
      <dc:date>2017-10-02T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a time out for parallel tasks (started with CALL FUNCTION STARTING NEW TASK)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563733#M21703</link>
      <description>&lt;P&gt;I think you can achieve this by using :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;...
WAIT UNTIL data_received_from_fm = abap_true UP TO nmbr_of_seconds SECONDS.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;SAP-Help "WAIT (UNTIL)" : &lt;A target="_blank" href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abapwait_until.htm"&gt;link&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;SAP-Wiki Parallel Processing : &lt;A target="_blank" href="https://wiki.scn.sap.com/wiki/display/ABAP/Parallel+Processing"&gt;link&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 20:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563733#M21703</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2017-10-02T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a time out for parallel tasks (started with CALL FUNCTION STARTING NEW TASK)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563734#M21704</link>
      <description>&lt;P&gt;Sorry for the long inactivity in the topic. I couldn't find a solution until just recently. &lt;/P&gt;
  &lt;P&gt;WAIT UNTIL command is just a part of the solution as the started tasks will continue to run in the background (even after the parent program finishes).&lt;/P&gt;
  &lt;P&gt;To terminate them (and free up resources) function module RFC_CONNECTION_CLOSE should be called passing task name as a parameter (task name as specified in CALL FUNCTION...STARTING NEW TASK taskname).&lt;/P&gt;
  &lt;P&gt;Thank you for the hint!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563734#M21704</guid>
      <dc:creator>Jacek_Dev</dc:creator>
      <dc:date>2018-02-09T14:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a time out for parallel tasks (started with CALL FUNCTION STARTING NEW TASK)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563735#M21705</link>
      <description>&lt;P&gt;I have tried to find out if/how ABAP unit tests execution time is limited. I found Class CL_AUNIT_CLASSTEST_SESSIONFE, Method __CANCEL_RFC does what you are proposing.&lt;/P&gt;
  &lt;P&gt;I will try to replicate it.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-a-time-out-for-parallel-tasks-started-with-call-function/m-p/563735#M21705</guid>
      <dc:creator>nomssi</dc:creator>
      <dc:date>2018-02-09T14:52:43Z</dc:date>
    </item>
  </channel>
</rss>

