<?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: Parallelization is not happening using asychnronous RFC in a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364250#M1839248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jochen for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented the &lt;SPAN style="color: #0000ff;"&gt;RECEIVE &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;RESULTS &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; ZFHLS_EX_TNM_ACADEMY_RFC1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the function module in WRITE_E_T_DATA sub routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but main issue is the jobs are not running in parellel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. jobs running synchronously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 07:43:40 GMT</pubDate>
    <dc:creator>former_member423626</dc:creator>
    <dc:date>2014-06-03T07:43:40Z</dc:date>
    <item>
      <title>Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364248#M1839246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A BW data source &lt;STRONG&gt;ZTEST&lt;/STRONG&gt;&lt;BR /&gt;has been created based on a function module ZTEST_FM&lt;STRONG style="line-height: 115%; color: black; font-size: 10pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;to pull the&lt;BR /&gt;data into BW system from R/3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (Have checked the parellel jobs running in SM66 transaction).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Inside the function module, an RFC function&lt;BR /&gt;module &lt;/SPAN&gt;&lt;STRONG style="line-height: 115%; color: black; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;ZTEST_RFC1&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt; has been called asynchronously to implement the parallelization&lt;BR /&gt;to improve the data extraction time into BW system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 115%; color: black; font-size: 10pt; font-family: 'Tahoma','sans-serif';"&gt;Note:&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt; In this scenario asynchronous&lt;BR /&gt;RFC is used to implement the parallel processing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;The logic in the function module is as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 115%; color: black; font-size: 10pt; font-family: 'Tahoma','sans-serif';"&gt;Function module ZTEST_FM Logic: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Fetch data from HRP1000 table into an internal table IT_HRP1000 for&lt;BR /&gt;OTYPE = ‘TN’.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Loop at IT_HRP1000 into work area (WA).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Call the RFC asynchronously by passing OBJID,OTYPE and ENDDA,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Calculate SOBID which is the required output field from the RFC&lt;BR /&gt;function module.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;Populate the results into final internal table E_T_DATA.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;The output structure contains the following fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;OBJID&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;BEGDA&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;ENDDA&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;SOBID&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could you please give us some suggestions, to implement the parellel processing using asychronous RFC in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Would appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 06:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364248#M1839246</guid>
      <dc:creator>former_member423626</dc:creator>
      <dc:date>2014-06-03T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364249#M1839247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your RFC call looks correct. For collecting the result you will need to code the callback routine Write_E_T_data. Inside the callback you can use the statement&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;RECEIVE &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;RESULTS &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; ZFHLS_EX_TNM_ACADEMY_RFC1 &lt;SPAN style="color: #0000ff;"&gt;IMPORTING&lt;/SPAN&gt; &amp;lt;parameter list&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retrieve the calculated result. For the declaration of the callback routine I recommend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="color: #0000ff;"&gt;FORM&lt;/SPAN&gt; Write_E_T_data&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;&lt;SPAN style="color: #0000ff;"&gt;USING&lt;/SPAN&gt; &lt;/SPAN&gt;iv_name &lt;SPAN class="L0S52"&gt;&lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;The parameter iv_name containing the name of the RFC task turned out to be mandatory in my tests.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 07:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364249#M1839247</guid>
      <dc:creator>iotatau</dc:creator>
      <dc:date>2014-06-03T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364250#M1839248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jochen for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented the &lt;SPAN style="color: #0000ff;"&gt;RECEIVE &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;RESULTS &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; ZFHLS_EX_TNM_ACADEMY_RFC1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the function module in WRITE_E_T_DATA sub routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but main issue is the jobs are not running in parellel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. jobs running synchronously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 07:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364250#M1839248</guid>
      <dc:creator>former_member423626</dc:creator>
      <dc:date>2014-06-03T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364251#M1839249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked with transaction RZ12 if any parallel server group has been configured on your system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 07:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364251#M1839249</guid>
      <dc:creator>iotatau</dc:creator>
      <dc:date>2014-06-03T07:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364252#M1839250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, have checked the RFC server group maintained in RZ12 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RZ12 server group name&amp;nbsp; is 'pararellel_generators'.&lt;/P&gt;&lt;P&gt;system = 'pararellel_generators'.&lt;/P&gt;&lt;P&gt;we tried the below two options.&lt;/P&gt;&lt;P&gt;DESTINATION IN GROUP system&lt;/P&gt;&lt;P&gt;DESTINATION IN GROUP DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the issue remains same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 08:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364252#M1839250</guid>
      <dc:creator>former_member423626</dc:creator>
      <dc:date>2014-06-03T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364253#M1839251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually check my parallel jobs with SM50. Could it be that the calculation is so quick that the RFC call is finished before the next RFC request is issued? - Debugging parallel jobs is not easy. What I have done for my task is to create program logic to switch between synchronous or asynchronous/parallel execution. Whenever I have made major changes in the RFC code I first monitor a clean synchronous execution and only then switch to parallel execution. Note that you have to call the callback routine manually for synchronous execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 08:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364253#M1839251</guid>
      <dc:creator>iotatau</dc:creator>
      <dc:date>2014-06-03T08:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364254#M1839252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayashankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want know, why WAIT statement is written before RFC call ? Usually WAIT will be written after RFC call to collect consolidated result in parallel processing . It seems like before calling&amp;nbsp; RFC call system will wait till previously called RFC So it will be like synchronous behavior. Please correct me if my assumption is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp;&amp;nbsp; Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 08:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364254#M1839252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-03T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization is not happening using asychnronous RFC in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364255#M1839253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Aruna Kumara K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp; by removing the statement WAIT UNTIL before the RFC CALL, now the jobs are executing in parellel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 10:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallelization-is-not-happening-using-asychnronous-rfc-in-a-function/m-p/10364255#M1839253</guid>
      <dc:creator>former_member423626</dc:creator>
      <dc:date>2014-06-03T10:01:12Z</dc:date>
    </item>
  </channel>
</rss>

