<?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: Regarding commit and set update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635623#M2013761</link>
    <description>&lt;P&gt;Is "IN UPDATE TASK" a must? What if I CALL FUNCTION 'ABC' without "IN UPDATE TASK" but also COMMIT WORK AND WAIT"? &lt;/P&gt;&lt;P&gt;BTW, function ABC is a regular function module other than an update module.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 01:51:29 GMT</pubDate>
    <dc:creator>EricYu0912</dc:creator>
    <dc:date>2022-09-22T01:51:29Z</dc:date>
    <item>
      <title>Regarding commit and set update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635621#M2013759</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;In a given solution, I need to commit an API and then read db to get committed data right after the commit.&lt;/P&gt;
  &lt;P&gt;It's something like: CALL API FUNCTION (will update DB) -&amp;gt; COMMIT -&amp;gt; SELECT DB TABLE&lt;/P&gt;
  &lt;P&gt;I think I will code like:&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'ABC'.&lt;/P&gt;
  &lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;
  &lt;P&gt;My question is if it is required to use "set update task local" after the function calling.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 09:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635621#M2013759</guid>
      <dc:creator>EricYu0912</dc:creator>
      <dc:date>2022-09-21T09:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding commit and set update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635622#M2013760</link>
      <description>&lt;P&gt;If you just do CALL FUNCTION 'ABC', it's called immediately.&lt;/P&gt;&lt;P&gt;I guess you mean CALL FUNCTION 'ABC' IN UPDATE TASK. In that case, using AND WAIT after COMMIT WORK guarantees that it waits for the end of the update task.&lt;/P&gt;&lt;P&gt;SET UPDATE TASK LOCAL is just in case you want to execute faster. It MUST be called before the first CALL FUNCTION ... IN UPDATE TASK otherwise it will fail.&lt;/P&gt;&lt;P&gt;After COMMIT WORK AND WAIT, it's guaranteed that the data is committed (unless concerning V2/V3 updates which are done later).&lt;/P&gt;&lt;P&gt;More information: &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapset_update_task_local.htm"&gt;SET UPDATE TASK LOCAL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;NB: If you just do CALL FUNCTION 'ABC', without IN UPDATE TASK, it's called immediately, meaning NO update task.&lt;/P&gt;&lt;P&gt;If you don't use an update task, SET UPDATE TASK LOCAL doesn't apply.&lt;/P&gt;&lt;P&gt;Without an update task, COMMIT WORK works as usual, it commits the database.&lt;/P&gt;&lt;P&gt;AND WAIT is useless without an update task.&lt;/P&gt;&lt;P&gt;More information: &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapcommit.htm"&gt;COMMIT WORK&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 11:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635622#M2013760</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-21T11:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding commit and set update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635623#M2013761</link>
      <description>&lt;P&gt;Is "IN UPDATE TASK" a must? What if I CALL FUNCTION 'ABC' without "IN UPDATE TASK" but also COMMIT WORK AND WAIT"? &lt;/P&gt;&lt;P&gt;BTW, function ABC is a regular function module other than an update module.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 01:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635623#M2013761</guid>
      <dc:creator>EricYu0912</dc:creator>
      <dc:date>2022-09-22T01:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding commit and set update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635624#M2013762</link>
      <description>&lt;P&gt;As I said: "If you just do CALL FUNCTION 'ABC', it's called immediately."&lt;/P&gt;&lt;P&gt;i.e. no update task.&lt;/P&gt;&lt;P&gt;If you don't use an update task, SET UPDATE TASK LOCAL doesn't apply.&lt;/P&gt;&lt;P&gt;Without an update task, COMMIT WORK works as usual, it commits the database.&lt;/P&gt;&lt;P&gt;AND WAIT is useless without an update task.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 06:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-commit-and-set-update-task/m-p/12635624#M2013762</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-22T06:51:32Z</dc:date>
    </item>
  </channel>
</rss>

