<?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 question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641770#M285813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you check, that there is no resource_Failure? In the debugger? That's of course not the way you can check that. Write an entry to the application log, if there is a resource failure and check then the application log. I made the experience, that you will find entries. The behaviour of 'starting new task' strongly depends on the RFC-parameters. Maybe you could also check them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 09:44:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T09:44:17Z</dc:date>
    <item>
      <title>Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641765#M285808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a module to read data from an external source, convert input to IDOCS, and process these IDOCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to performance of IDOC processing, I decided to use parallel processing to spread the IDOC creation load among several processes using server groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main program sets up the parallel processing environment with a call to function module SPBT_INITIALIZE, then make repeated calls to a function module that processes the IDOCS, using the STARTING NEW TASK and DESTINATION IN GROUP xxx keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm seeing is the main process running as a background task and one dialog process running the parallel function module, even though there are still 8 or 9 other dialog processes available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I expected to see was several dialog process running my child function modules, not just the one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why the other dialog processes are not being used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dorian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 14:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641765#M285808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641766#M285809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have Multiple app servers in the group? then the parallel taskes might be executing on other app servers. &lt;/P&gt;&lt;P&gt;Go to SM51 and double click on each appserver, check the work process.&lt;/P&gt;&lt;P&gt;Did you use only one group name after DESTINATION IN GROUP in the main program. Runtime environment does not support multiple group names in the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following exceptions to the fm call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS &lt;/P&gt;&lt;P&gt;      system_failure        = 1  MESSAGE lv_msg&lt;/P&gt;&lt;P&gt;      communication_failure = 2  MESSAGE lv_msg.&lt;/P&gt;&lt;P&gt;      resource_failure      = 3. &lt;/P&gt;&lt;P&gt;where lv_msg is of type char100.&lt;/P&gt;&lt;P&gt;Check sy-subrc and lv_msg to check if the fm call is raising any resource failure  error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 16:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641766#M285809</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-10-25T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641767#M285810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the logic in RBDAPP01 which is used by SAP to post IDOCs. It has options for parallel processing, including limitation to server group, so you can use a similar logic in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 17:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641767#M285810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641768#M285811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sridhar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no errors - I have coded these exceptions and they never get called. The child task is running, but only one. I expected to see as many child tasks as there are open dialog processes (less the number of tasks defined in RZ12 as "spare").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 18:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641768#M285811</guid>
      <dc:creator>Dorian</dc:creator>
      <dc:date>2006-10-25T18:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641769#M285812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you make repeated calls to a function module that processes the IDOCS ( using the STARTING NEW TASK and DESTINATION IN GROUP xxx keywords ) check whether your passing new task id everytime ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 16:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641769#M285812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641770#M285813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you check, that there is no resource_Failure? In the debugger? That's of course not the way you can check that. Write an entry to the application log, if there is a resource failure and check then the application log. I made the experience, that you will find entries. The behaviour of 'starting new task' strongly depends on the RFC-parameters. Maybe you could also check them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641770#M285813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641771#M285814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm logging any errors that occur; I'm not seeing any resource failures - in fact no errors at all, other than expected application data errors. It seems that the RFC calls are all being made in a single child process that queues up the parallel jobs and uses just one dialog process to run them all. I expected to see as many dialog tasks being used as were available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the RFC parameters go - are you referring to the RZ10 values? I looked at all of the parameters containing "rfc" as part of their name, and nothing looked as though it was restricting the parallel task behaviour. Do you have any advice as to suitable settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also wondering if what I am seeing is just the way SAP is supposed to work? Although I expected to see lots of child processes running in multiple dialogs if processes are available, maybe by design only one remote process per server is allowed? I checked the documentation I could find on the "starting new task" keyword, and nowhere does it say that multiple processes will be started on each server in the server group; only that a child process will NOT be started if the number of unused processes fall below a defined threshold.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 15:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641771#M285814</guid>
      <dc:creator>Dorian</dc:creator>
      <dc:date>2006-11-02T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641772#M285815</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'm also wondering if what I am seeing is just the way SAP is supposed to work? Although I expected to see lots of child processes running in multiple dialogs if processes are available, maybe by design only one remote process per server is allowed?" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not from my experience, although it's been a while.  We were seeing a lot of child processes.  In fact, to avoid those processes from 'flooding' the servers, we restricted parallel processing to only a number of app servers (by the RFC group definition).  Sorry this is not much help, but wanted to confirm back to you that what you're seeing is not typical.  Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 17:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641772#M285815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641773#M285816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your processes are to fast: Try the following: In the RFC function module, which is to be started in new task, insert the line of code 'WAIT UP TO 20 SECONDS.'. Then you have enough time to check in sm50 if there are more parallel processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 20:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641773#M285816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641774#M285817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you just save IDOCs and then start SAP program to post them in parallel - do you have the same issue or it's limited to the case when FM is called from your code only ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 20:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641774#M285817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T20:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641775#M285818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out my problem was waiting too long; I set the wait period to 0.25, thinking that I needed to space the processes out a bit (afriad of the call-back getting tied up in knots).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting the wait to 20 seconds, I saw the wait on the RFC response really dragging, and wondered if my wait time was too big to fire off more than one child at a time. I went back and set the wait to 0.001 - now I'm seeing 3 or four running at a time &amp;lt;g&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issues I thought I would have with so many call-backs returning data together don't seem to have come up yet. I think I'll leave the wait setting as-is, and increase it only if I get problems.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting me looking in the right direction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 20:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-question/m-p/1641775#M285818</guid>
      <dc:creator>Dorian</dc:creator>
      <dc:date>2006-11-02T20:53:54Z</dc:date>
    </item>
  </channel>
</rss>

