<?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: Parallel processing with STARTING NEW TASK on multiple application servers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457873#M2000032</link>
    <description>&lt;P&gt;Without DESTINATION ..., I think it runs on any application server.&lt;/P&gt;&lt;P&gt;Instead of running RFC on the same system via a server group, you may use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(current_app_server) = cl_abap_syst=&amp;gt;get_instance_name( ).
CALL FUNCTION '...'
  DESTINATION current_app_server
  ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;EDIT: even more simple, the special destination "&lt;STRONG&gt;NONE&lt;/STRONG&gt;" starts in the same application server (&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenrfc_destination.htm"&gt;Source&lt;/A&gt;: "&lt;I&gt;The destination "NONE" specifies that the function module starts on the same AS instance&lt;/I&gt;&lt;I&gt; as the calling program&lt;/I&gt;"):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '...'
  DESTINATION 'NONE'
  ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 May 2021 18:15:48 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-05-04T18:15:48Z</dc:date>
    <item>
      <title>Parallel processing with STARTING NEW TASK on multiple application servers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457872#M2000031</link>
      <description>&lt;P&gt;I have a question on the STARTING NEW TASK keywords when calling a Function Module and I can't find the specific answer in the documentation.&lt;/P&gt;
  &lt;P&gt;We have a system with multiple (10) application servers. I have a program that calls an FM with STARTING NEW TASK to do parallel processing (20 threads in parallel). I want to make sure that all the threads run on the same application server (the one I'm currently logged on). I'm a bit confused about the following 2 options:&lt;/P&gt;
  &lt;P&gt;1. Specify "DESTINATION IN GROUP 'grp_appserver5'"&lt;/P&gt;
  &lt;P&gt; Where group "grp_appserver5" has been maintained to include only app server 5.&lt;/P&gt;
  &lt;P&gt;2. Not specify DESTINATION IN GROUP at all&lt;/P&gt;
  &lt;P&gt;Will the second option launch WPs on other app servers or will it only launch them on the current app server?&lt;/P&gt;
  &lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457872#M2000031</guid>
      <dc:creator>vincent8</dc:creator>
      <dc:date>2021-05-04T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing with STARTING NEW TASK on multiple application servers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457873#M2000032</link>
      <description>&lt;P&gt;Without DESTINATION ..., I think it runs on any application server.&lt;/P&gt;&lt;P&gt;Instead of running RFC on the same system via a server group, you may use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(current_app_server) = cl_abap_syst=&amp;gt;get_instance_name( ).
CALL FUNCTION '...'
  DESTINATION current_app_server
  ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;EDIT: even more simple, the special destination "&lt;STRONG&gt;NONE&lt;/STRONG&gt;" starts in the same application server (&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenrfc_destination.htm"&gt;Source&lt;/A&gt;: "&lt;I&gt;The destination "NONE" specifies that the function module starts on the same AS instance&lt;/I&gt;&lt;I&gt; as the calling program&lt;/I&gt;"):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '...'
  DESTINATION 'NONE'
  ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 May 2021 18:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457873#M2000032</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-05-04T18:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing with STARTING NEW TASK on multiple application servers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457874#M2000033</link>
      <description>&lt;P&gt;I think that's exactly what I needed! I thought DESTINATION could only be an RFC destination, I didn't know it could be a specific instance.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457874#M2000033</guid>
      <dc:creator>vincent8</dc:creator>
      <dc:date>2021-05-04T18:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing with STARTING NEW TASK on multiple application servers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457875#M2000034</link>
      <description>&lt;P&gt;An RFC entry can refer to a specific application server or an instance. (As well as all the other destination types).&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 08:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-starting-new-task-on-multiple-application-servers/m-p/12457875#M2000034</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-05-08T08:24:22Z</dc:date>
    </item>
  </channel>
</rss>

