<?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 Prerequisite - should not start a new internal session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252107#M1829453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 03:50:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-22T03:50:49Z</dc:date>
    <item>
      <title>Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252106#M1829452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all documentation about parallel processing in ABAP, one of the prerequisites is the following. However I cannot find further explanation what that is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;–&lt;SPAN style="font-size: 7pt; font-family: 'Times New Roman'; background-color: inherit !important; color: inherit !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;The calling program should not change to a new internal session after making an asynchronous RFC call. That is, you should not use SUBMIT or CALL TRANSACTION in such a report after using CALL FUNCTION STARTING NEW TASK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;Link to the help page&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;A href="http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm?frameset=/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm" title="http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm?frameset=/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm"&gt;Implementing Parallel Processing - Background Processing - SAP Library&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;I'm just wondering whether it's related to maximum number of sessions a user can have in SAP (&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, sans-serif; text-indent: -24px;"&gt;I think the default is 6)&lt;/SPAN&gt;. If a new session is started, this will reduce the number of session available for parallel processing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;If anyone can clarify, it'd be great.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: -24px; color: inherit !important; font-style: inherit !important; background-color: inherit !important; font-family: Arial, Helvetica, sans-serif;"&gt;Stevanic&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 23:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252106#M1829452</guid>
      <dc:creator>ec1</dc:creator>
      <dc:date>2014-04-21T23:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252107#M1829453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 03:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252107#M1829453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-22T03:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252108#M1829454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better to check with&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="3984" data-objecttype="3" href="https://answers.sap.com/people/horst.keller"&gt;Horst Keller&lt;/A&gt;&amp;nbsp; on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252108#M1829454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-22T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252109#M1829455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I havn't written the documentation cited above. In my documentation I don't have such a general restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The special restriction I have in &lt;STRONG&gt;my&lt;/STRONG&gt; &lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abapcall_function_starting.htm"&gt;documentation&lt;/A&gt; is written beneath the definition of the call back routine with CALLING|PERFORMING:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;A prerequisite for the execution of the callback routine is that the calling program still exists in its internal session when the remote function is terminated. It is then executed at the next change of the work process. If the program was terminated or is located on the stack as part of a call sequence, the callback routine is not executed.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that the SAP Library documentation cited above got that mixed up and generalized a bit too much..Feel free to open a ticket ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 16:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252109#M1829455</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2014-04-22T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252110#M1829456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to me, that you mix up internal and external sessions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see &lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abenmemory_organization.htm"&gt;Memory Organization&lt;/A&gt; ... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 16:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252110#M1829456</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2014-04-22T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252111#M1829457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested the parallel processing with CALL TRANSACTION and it seems that SAP allows to switch to internal session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_ASYNC_TEST.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z_STEV_ASYNC_TEST'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;STARTING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK &lt;/SPAN&gt;l_task_name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESTINATION &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;GROUP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERFORMING end_task &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;FUNCTION Z_STEV_ASYNC_TEST.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;TRANSACTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SE38' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;it_bdcdata&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'N'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;UPDATE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'s'&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;ENDFUNCTION.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I found a problem if the current user is a dialog user. There cannot be more than 6 RFC running at the same time because that's the maximum number of dialog sessions a user can get. I got an error saying that "Maximum number of sessions reached".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem does not occur if the current user is a system user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 02:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252111#M1829457</guid>
      <dc:creator>ec1</dc:creator>
      <dc:date>2014-05-16T02:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing Prerequisite - should not start a new internal session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252112#M1829458</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;I think things are mixed up a bit here. Therefore again the facts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you must distinguish between internal and external sessions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;An internal session is a memory area for program execution &lt;STRONG&gt;inside an external session&lt;/STRONG&gt;. It is opened in a &lt;STRONG&gt;call sequence&lt;/STRONG&gt; when one program calls another with &lt;STRONG&gt;CALL TRANSACTION&lt;/STRONG&gt; or &lt;STRONG&gt;SUBMIT AND RETRUN&lt;/STRONG&gt;. The maximum number of internal sessions in a &lt;STRONG&gt;call sequence&lt;/STRONG&gt; is 9 (see &lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abenabap_program_call.htm"&gt;Calling ABAP Programs&lt;/A&gt;).&lt;/LI&gt;&lt;LI&gt;An external session or main session is connected to an &lt;STRONG&gt;user session&lt;/STRONG&gt;. The maximum number of external sessions for one user session is 16 but it is normally restricted to &lt;STRONG&gt;6&lt;/STRONG&gt; by profile parameter &lt;STRONG&gt;rdisp/max_alt_modes&lt;/STRONG&gt; (see &lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abenmain_session_glosry.htm"&gt;Main Session&lt;/A&gt;).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These facts also hold for parallel processing with &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION STARTING NEW TASK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Here you must distinguish between called program and calling program:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the &lt;STRONG&gt;called program&lt;/STRONG&gt; you can open new internal and external sessions as long as the above limits are not exceeded (this is why in your above example the called function module cannot open more than 6 sessions for the RFC user).&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;calling program&lt;/STRONG&gt; you can also open new internal and external sessions as long as the above limits are not exceeded. Only if you are working with callback routines you&lt;STRONG&gt; should not&lt;/STRONG&gt; open new internal sessions in the &lt;STRONG&gt;calling program&lt;/STRONG&gt;, because the callback routines will not be found any more when the called function module has finished (that was what the original question was about).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These facts should be enough to explain the observed behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 06:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-prerequisite-should-not-start-a-new-internal-session/m-p/10252112#M1829458</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2014-05-16T06:33:16Z</dc:date>
    </item>
  </channel>
</rss>

