<?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: Calling Function Module in Update Task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767233#M37794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;Just a question to understand the scenario better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell why would you write update statements inside the second function module (Type: NORMAL), when the way to go is to write that piece of code in an update function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This situation, what u face will not arise if you stick on to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2004 22:23:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-02-18T22:23:21Z</dc:date>
    <item>
      <title>Calling Function Module in Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767232#M37793</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;I am calling a function module in update task.&lt;/P&gt;&lt;P&gt;This function module is a Z function module, and I have set the attributes as an UPDATE FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this Z function module, it calls another function module (lets say FUNCTION_A) and this function module runs in normal mode. In the Z function module, there are many updates to the database as well as there are some updates in the function module in FUNCTION_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is : If I call the the Z function module in update task mode , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Will all the updates in this function module as well as in function module FUNCTION_A happen concurrently &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If any update fails, will all the updates that should be carried out while calling the Z function module fail ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a matter of things being carried out as a single atomic transaction, hence the doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for reading through it patiently and a zillion for responding to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2004 19:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767232#M37793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-02-17T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module in Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767233#M37794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;Just a question to understand the scenario better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell why would you write update statements inside the second function module (Type: NORMAL), when the way to go is to write that piece of code in an update function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This situation, what u face will not arise if you stick on to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2004 22:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767233#M37794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-02-18T22:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function Module in Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767234#M37795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that all your updates will take place concurrently, or be backed out concurrently. I haven't tried this, though! However, what an Update FM does is to be loaded into an Update Work Process. Think of it as a regular Work Process. If this piece of ABAP calls another FM, the new FM (and it's entire Function Group) load into the same Work Process. It's all one happy LUW. &lt;/P&gt;&lt;P&gt;The danger: watch out for ABAP commands that will cause premature termination of the LUW. These include issuing an E or W type error, CALL TRANSACTION, CALL FUNCTION with any remote or asynchronous options, etc. See help on CALL FUNCTION...IN UPDATE TASK for a complete list. &lt;/P&gt;&lt;P&gt;I think that SAP syntax checks these in an Update FM, but probably not in the called FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2004 00:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-module-in-update-task/m-p/767234#M37795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-03-17T00:27:39Z</dc:date>
    </item>
  </channel>
</rss>

