<?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 retrieve parallel process task id (aRFC) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117658#M1363299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use following function module to get the id of transactional processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
* EXPORTING
*   DEST          = ' '
* IMPORTING
*   TID           =  --&amp;gt; collect ID from this varaible
*   FNUM          =
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for reteriving status you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'
  EXPORTING
    tid                 =
  tables
    errortab            =
* EXCEPTIONS
*   COMMUNICATION       = 1
*   RECORDED            = 2
*   ROLLBACK            = 3
*   OTHERS              = 4
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 18:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-27T18:45:17Z</dc:date>
    <item>
      <title>How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117657#M1363298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys , I have a program that calls 2 RFC-enabled function modules and runs them in parallel. To my knowledge, each function modules is assigned with a unique task id when performing parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, how do I retrieve the information on the individual process such as task name and its duration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'Z_XXX' starting new task 'A' performing 'Z_FUNC' on end of task.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'Z_XXX' starting new task 'B' performing 'Z_FUNC' on end of task .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then execute these functions and let it runs for a while, then how do i retrieve the task name of each process programmatically (A and B)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I'm still pretty new when it comes to ABAP &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somehow my previous question was removed along with replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 11:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117657#M1363298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117658#M1363299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use following function module to get the id of transactional processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
* EXPORTING
*   DEST          = ' '
* IMPORTING
*   TID           =  --&amp;gt; collect ID from this varaible
*   FNUM          =
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for reteriving status you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'
  EXPORTING
    tid                 =
  tables
    errortab            =
* EXCEPTIONS
*   COMMUNICATION       = 1
*   RECORDED            = 2
*   ROLLBACK            = 3
*   OTHERS              = 4
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 18:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117658#M1363299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117659#M1363300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx and sorry for late the reply &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;, I have tried the methods you provided and it  seems to only work when I use 'IN BACKGROUND TASK' in conjunction with 'CALL FUNCTION'  but not 'STARTING NEW TASK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after some googling, I found that 'TH_DISPLAY_WORKPROCESS_LIST''  list down each individual process by username and its unique PID. If i can only somehow retrieve the task id from it's PID....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 11:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117659#M1363300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-30T11:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117660#M1363301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's explained in the [abap help - call function in aRFC|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_STARTING.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the name of the task is sent to the callback form (it's the only parameter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 12:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117660#M1363301</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-30T12:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117661#M1363302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm just noticed that, I think i'm going to have 3 aRFC functions, which one of them will monitor the status of the remaining aRFCs at 1s interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the monitoring function will check the task id and states of the 2 aRFCs by retrieving the task id and sy-subrc from the callback subroutines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 13:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117661#M1363302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-30T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117662#M1363303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's very surprising to monitor RFCs by other RFCs, why do you use it like that, just to know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To measure runtime, don't you want to do it with SE30 (for example)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, in your first post, you indicate that the task name "must be probably unique" (or something like that). In fact, the task name may be the same, it is used run function modules in a SAP RFC server in the same internal session and you must also use RECEIVE ... KEEPING TASK so that to work (FMs are executed one after the other asynchronously). Of course, if the tasks run independently, or if you execute the FMS on a non-SAP system, it makes no sense trying to execute them in the same task (i.e. same internal session).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 16:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117662#M1363303</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-30T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117663#M1363304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh sorry forgot to tell you that, the monitoring RFC will monitor the 2 aRFCs (doin random calculations and loops)  by checking their stats(task id,runtime) from their callback routines and then update the report screen at 5s interval continuously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I 'm doing this because I want to get familiar with abap parallel processing, even though this is not the main purpose of parallel aRFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way to auto-refresh report or dialog without resorting to parallel processing &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 12:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117663#M1363304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve parallel process task id (aRFC)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117664#M1363305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; To auto-refresh, I only know aRFC + wait method. I think you don't need a 3rd "monitoring RFC", a dialog is sufficient, but maybe you've done it on purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 13:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-parallel-process-task-id-arfc/m-p/6117664#M1363305</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-02T13:39:59Z</dc:date>
    </item>
  </channel>
</rss>

