<?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: Question on Parallel Processing in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707275#M1295959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the solution for this. If the task fails, it throws an exception called SYSTEM_FAILURE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jun 2009 12:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-13T12:14:20Z</dc:date>
    <item>
      <title>Question on Parallel Processing in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707271#M1295955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to process my records using &lt;STRONG&gt;Parallel Processing&lt;/STRONG&gt; concept making calls to Remote Function Module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in simple terms it would look as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop.

call function &amp;lt;rfc_module&amp;gt; creating new task with &amp;lt;taskname&amp;gt;

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the above scenario say it created 5 tasks. &lt;/P&gt;&lt;P&gt;2. If one of the tasks have been failed because of timeout error then what happens to that task. &lt;/P&gt;&lt;P&gt;In the below link it says that the dialog work proces can run only for 300 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. How do we track the task that has not been finished successfully?&lt;/P&gt;&lt;P&gt;4. Does that throw an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 09:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707271#M1295955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T09:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Parallel Processing in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707272#M1295956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any replies on this would be helpful for me. I tried a lot but in vain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 09:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707272#M1295956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Parallel Processing in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707273#M1295957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an exmple from HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF task_type, 
         name TYPE string, 
         dest TYPE string, 
       END OF task_type. 

DATA: snd_jobs  TYPE i, 
      rcv_jobs  TYPE i, 
      exc_flag  TYPE i, 
      info      TYPE rfcsi, 
      mess      TYPE c LENGTH 80, 
      indx      TYPE c LENGTH 4, 
      name      TYPE c LENGTH 8, 
      task_list TYPE STANDARD TABLE OF task_type, 
      task_wa   TYPE task_type. 

DO 10 TIMES. 
  indx = sy-index. 
  CONCATENATE 'Task' indx INTO name. 
  CALL FUNCTION 'RFC_SYSTEM_INFO' 
    STARTING NEW TASK name 
    DESTINATION IN GROUP DEFAULT 
    PERFORMING rfc_info ON END OF TASK 
    EXCEPTIONS 
      system_failure        = 1  MESSAGE mess 
      communication_failure = 2  MESSAGE mess 
      resource_failure      = 3. 
  CASE sy-subrc. 
    WHEN 0. 
      snd_jobs = snd_jobs + 1. 
    WHEN 1 OR 2. 
      MESSAGE mess TYPE 'I'. 
    WHEN 3. 
      IF snd_jobs &amp;gt;= 1 AND 
         exc_flag = 0. 
        exc_flag = 1. 
        WAIT UNTIL rcv_jobs &amp;gt;= snd_jobs 
             UP TO 5 SECONDS. 
      ENDIF. 
      IF sy-subrc = 0. 
        exc_flag = 0. 
      ELSE. 
        MESSAGE 'Resource failure' TYPE 'I'. 
      ENDIF. 
    WHEN OTHERS. 
      MESSAGE 'Other error' TYPE 'I'. 
  ENDCASE. 
ENDDO. 

WAIT UNTIL rcv_jobs &amp;gt;= snd_jobs. 
LOOP AT task_list INTO task_wa. 
  WRITE: / task_wa-name, task_wa-dest. 
ENDLOOP. 

FORM rfc_info USING name. 
  task_wa-name = name. 
  rcv_jobs = rcv_jobs + 1. 
  RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO' 
    IMPORTING 
      rfcsi_export = info 
    EXCEPTIONS 
      system_failure        = 1 MESSAGE mess 
      communication_failure = 2 MESSAGE mess. 
  IF sy-subrc = 0. 
    task_wa-dest = info-rfcdest. 
  ELSE. 
    task_wa-dest = mess. 
  ENDIF. 
  APPEND task_wa TO task_list. 
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 09:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707273#M1295957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Parallel Processing in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707274#M1295958</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 know that this example is given in F1 Help. I have checked it already.&lt;/P&gt;&lt;P&gt;Actually my question was what happens to the main program if the timeout occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 14:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707274#M1295958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T14:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Parallel Processing in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707275#M1295959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the solution for this. If the task fails, it throws an exception called SYSTEM_FAILURE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2009 12:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-parallel-processing-in-abap/m-p/5707275#M1295959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-13T12:14:20Z</dc:date>
    </item>
  </channel>
</rss>

