<?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 Parallel Processing RFC FM - Submit inside loop ignores commit. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-rfc-fm-submit-inside-loop-ignores-commit/m-p/731712#M34505</link>
    <description>&lt;P&gt;I am creating a RFC FM to be called in a program where Parallel processing is implemented.&lt;/P&gt;
  &lt;P&gt;Inside RFC FM, I need to SUBMIT program in a loop. ie. those many records in Tables parameter of rfc FM, i need to SUBMIT (Submit and return) the program that many times. The issue i am experiencing is, COMMIT is not happening properly for every submit inside loop. As of now, i am not explicitly writing COMMIT inside loop, as i have doubt that since this is a RFC FM of Parallel processing, i should not commit it exclusively inside loop, and process should take care of it. Below is the sample code that i have...&lt;/P&gt;
  &lt;P&gt;-&amp;gt; Exe z-program where RFC-FM is called.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'ZRFC-PP'&lt;/P&gt;
  &lt;P&gt;STARTING NEW TASK l_task&lt;/P&gt;
  &lt;P&gt;DESTINATION 'NONE'&lt;/P&gt;
  &lt;P&gt;PERFORMING collect_data ON END OF TASK&lt;/P&gt;
  &lt;P&gt;EXPORTING.....&lt;/P&gt;
  &lt;P&gt;-&amp;gt; RFC - FM ZRFC_PP&lt;/P&gt;
  &lt;P&gt;loop at xxxxx.&lt;/P&gt;
  &lt;P&gt;submit zyz&lt;/P&gt;
  &lt;P&gt;USING SELECTION-SCREEN xxx&lt;/P&gt;
  &lt;P&gt;WITH xxx&lt;/P&gt;
  &lt;P&gt;AND RETURN.&lt;/P&gt;
  &lt;P&gt;endloop.&lt;/P&gt;
  &lt;P&gt;Let me know, if i need to individually write COMMIT inside loop (after submit) or whats is the mistake i am doing.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 06:31:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-12-04T06:31:52Z</dc:date>
    <item>
      <title>Parallel Processing RFC FM - Submit inside loop ignores commit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-rfc-fm-submit-inside-loop-ignores-commit/m-p/731712#M34505</link>
      <description>&lt;P&gt;I am creating a RFC FM to be called in a program where Parallel processing is implemented.&lt;/P&gt;
  &lt;P&gt;Inside RFC FM, I need to SUBMIT program in a loop. ie. those many records in Tables parameter of rfc FM, i need to SUBMIT (Submit and return) the program that many times. The issue i am experiencing is, COMMIT is not happening properly for every submit inside loop. As of now, i am not explicitly writing COMMIT inside loop, as i have doubt that since this is a RFC FM of Parallel processing, i should not commit it exclusively inside loop, and process should take care of it. Below is the sample code that i have...&lt;/P&gt;
  &lt;P&gt;-&amp;gt; Exe z-program where RFC-FM is called.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'ZRFC-PP'&lt;/P&gt;
  &lt;P&gt;STARTING NEW TASK l_task&lt;/P&gt;
  &lt;P&gt;DESTINATION 'NONE'&lt;/P&gt;
  &lt;P&gt;PERFORMING collect_data ON END OF TASK&lt;/P&gt;
  &lt;P&gt;EXPORTING.....&lt;/P&gt;
  &lt;P&gt;-&amp;gt; RFC - FM ZRFC_PP&lt;/P&gt;
  &lt;P&gt;loop at xxxxx.&lt;/P&gt;
  &lt;P&gt;submit zyz&lt;/P&gt;
  &lt;P&gt;USING SELECTION-SCREEN xxx&lt;/P&gt;
  &lt;P&gt;WITH xxx&lt;/P&gt;
  &lt;P&gt;AND RETURN.&lt;/P&gt;
  &lt;P&gt;endloop.&lt;/P&gt;
  &lt;P&gt;Let me know, if i need to individually write COMMIT inside loop (after submit) or whats is the mistake i am doing.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 06:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-rfc-fm-submit-inside-loop-ignores-commit/m-p/731712#M34505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-12-04T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing RFC FM - Submit inside loop ignores commit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-rfc-fm-submit-inside-loop-ignores-commit/m-p/731713#M34506</link>
      <description>&lt;P&gt;Hi Amdap,&lt;/P&gt;&lt;P&gt;This is not a normal FM so pls use EXPLICITLY &lt;/P&gt;&lt;P&gt;Call commit outside RFC.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-rfc-fm-submit-inside-loop-ignores-commit/m-p/731713#M34506</guid>
      <dc:creator>TMSingh_SAP</dc:creator>
      <dc:date>2018-12-04T16:19:01Z</dc:date>
    </item>
  </channel>
</rss>

