<?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: CALL FUNCTION update_function IN UPDATE TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420337#M540280</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;&lt;/P&gt;&lt;P&gt;   When u want to call function which has to be executed in the Update work process.&lt;/P&gt;&lt;P&gt;1. You have to set the "Processing Type"  to  "Update Module" and select "Immediate Start" which makes the function to be processed using V1 update process(for critical updates)&lt;/P&gt;&lt;P&gt;function module parameters must be passed by using Pass by Value only.&lt;/P&gt;&lt;P&gt;Export parameters are not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source code of the function&lt;/P&gt;&lt;P&gt;to perform a ROLLBACK in case of any error &lt;/P&gt;&lt;P&gt;Generate a message using type A(Abend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call the function from the program using&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'Z_FM' in update task&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;        -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;       -&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  COMMIT WORK .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;Reward if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 11:41:18 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-06-21T11:41:18Z</dc:date>
    <item>
      <title>CALL FUNCTION update_function IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420334#M540277</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;please give me an &amp;lt;b&amp;gt;example  for implementation&amp;lt;/b&amp;gt; of  CALL FUNCTION update_function IN UPDATE TASK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help.. its urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;useful solutions will be rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;note&amp;lt;/b&amp;gt;: dont give me link. i need simple straight forward example&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 10:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420334#M540277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION update_function IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420335#M540278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;if you set a function to be update task, you write some DB access statemen like delete or update, and return the function. Those DB access won't be submitted to DB, until you run COMMIT WORK. When run commit, all of update task FMs before this commit will be runned, as they are in the same LUW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TH_IN_UPDATE_TASK'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;in_update_task = lv_update_process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarsd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 11:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420335#M540278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION update_function IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420336#M540279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL FUNCTION zfunc_name IN UPDATE TASK. &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN UPDATE TASK flags the function module func for execution in the update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and a subsequent COMMIT WORK then causes the function module to be executed by the update task. Update function modules must be flagged as such in the Function Builder -&amp;gt; Attributres.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 11:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420336#M540279</guid>
      <dc:creator>former_member150733</dc:creator>
      <dc:date>2007-06-21T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION update_function IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420337#M540280</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;&lt;/P&gt;&lt;P&gt;   When u want to call function which has to be executed in the Update work process.&lt;/P&gt;&lt;P&gt;1. You have to set the "Processing Type"  to  "Update Module" and select "Immediate Start" which makes the function to be processed using V1 update process(for critical updates)&lt;/P&gt;&lt;P&gt;function module parameters must be passed by using Pass by Value only.&lt;/P&gt;&lt;P&gt;Export parameters are not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source code of the function&lt;/P&gt;&lt;P&gt;to perform a ROLLBACK in case of any error &lt;/P&gt;&lt;P&gt;Generate a message using type A(Abend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call the function from the program using&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'Z_FM' in update task&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;        -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;       -&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  COMMIT WORK .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;Reward if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 11:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-update-function-in-update-task/m-p/2420337#M540280</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-06-21T11:41:18Z</dc:date>
    </item>
  </channel>
</rss>

