<?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 Subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/2697166#M624390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can we add update task calls to subroutine. If yes then kindly tell me the process in brief.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 12:16:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T12:16:19Z</dc:date>
    <item>
      <title>Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/2697166#M624390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can we add update task calls to subroutine. If yes then kindly tell me the process in brief.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/2697166#M624390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T12:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/2697167#M624391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Answer:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Yes, we can do this.&lt;/P&gt;&lt;P&gt;For this we have to use &amp;lt;b&amp;gt;perform on commit&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement registers the subroutine directly specified using subroutine in the same program. The subroutine is not executed immediately, but a flag is set for execution when one of the statements COMMIT WORK or ROLLBACK WORK (since Release 6.10) is reached. &lt;/P&gt;&lt;P&gt;The registered subroutines are executed if the statement COMMIT WORK or ROLLBACK WORK is executed in their work process and before update function modules registered using CALL FUNCTION ... IN UPDATE TASK. Subroutines that are registered during execution of an update function module for COMMIT are executed at the end of the update in the update work process i.e.&lt;/P&gt;&lt;P&gt;a = 1. &lt;/P&gt;&lt;P&gt;PERFORM F ON COMMIT. &lt;/P&gt;&lt;P&gt;a = 2. &lt;/P&gt;&lt;P&gt;PERFORM F ON COMMIT. &lt;/P&gt;&lt;P&gt;a = 3. &lt;/P&gt;&lt;P&gt;COMMIT WORK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPD_FM' IN UPDATE TASK EXPORTING PAR = A. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 12:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine/m-p/2697167#M624391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T12:20:23Z</dc:date>
    </item>
  </channel>
</rss>

