<?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: Difference between Function module in Update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054647#M90043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;note that you can have more fm in update task&lt;/P&gt;&lt;P&gt;into your programs of differents types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if the fm type V1 will get an error all the fm type V2&lt;/P&gt;&lt;P&gt;will NOT be executed and all the modification into V1 update are rollbacked, if the fm type V1 will be okay but an error occurs into one fm type V2 the modification into that fm will be rollbacked, but the others V2 update process are processed and the modifications executed by V1 update process are NOT rollbacked.&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Oct 2005 14:46:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-22T14:46:08Z</dc:date>
    <item>
      <title>Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054643#M90039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between&lt;/P&gt;&lt;P&gt;1. A function module calling in 'update task'( if attributes not set for update mode).&lt;/P&gt;&lt;P&gt;2.A function module's attributes set to update mode, but while calling not specified 'Update task'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify this doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhavani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 08:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054643#M90039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054644#M90040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION func IN UPDATE TASK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... EXPORTING  p1 = f1     ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... TABLES     p1 = itab1  ... pn = itabn&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;Effect &lt;/P&gt;&lt;P&gt;Flags the function module func for execution in the update task. 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 &lt;/P&gt;&lt;P&gt;The return value is not set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... EXPORTING p1 = f1 ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Values of fields and field strings specified under EXPORTING are passed from the calling program to the function module. In the function module, the formal parameters are defined as import parameters. In the interface definition, default values must be assigned to all import parameters of the update function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... TABLES p1 = itab1 ... pn = itabn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;TABLES passes references to internal tables. All table parameters of the function module must have values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;With update function modules, both import parameters and exceptions are ignored when the call is made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Administration transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related &lt;/P&gt;&lt;P&gt;COMMIT WORK, SET UPDATE TASK LOCAL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kartikey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 08:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054644#M90040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054645#M90041</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;Flags the function module func for execution in the update task. 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 &lt;/P&gt;&lt;P&gt;The return value is not set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 08:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054645#M90041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T08:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054646#M90042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you cannot use a CALL FUNCTION in update task if &lt;/P&gt;&lt;P&gt;it not has the property attribute set.&lt;/P&gt;&lt;P&gt;if you do this when you'll try the generate the program &lt;/P&gt;&lt;P&gt;the system will return an error.&lt;/P&gt;&lt;P&gt;on the other side you can use a function module with the attibute in update task like a normal function module.&lt;/P&gt;&lt;P&gt;remember that all the parameters specified in the fm&lt;/P&gt;&lt;P&gt;that you want to use in update task must be flagged by reference and that a fm in update task cannot have parameters in exporting or trigger exceptions.&lt;/P&gt;&lt;P&gt;the function module in update task is triggered at the&lt;/P&gt;&lt;P&gt;first explicit commitwork by using the instruction COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: you can specified the fm in update task in two ways. "start immediately" or "start delayed". the first indicate that your FM will be processed like an update type V1, the second that the FM will be processed in an update type V2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: all the fm in update task of type V1 will be processed into the same LUW, all the fm in update task of type V2 are processed in separated LUW.&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;note that you can have&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054646#M90042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054647#M90043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;note that you can have more fm in update task&lt;/P&gt;&lt;P&gt;into your programs of differents types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if the fm type V1 will get an error all the fm type V2&lt;/P&gt;&lt;P&gt;will NOT be executed and all the modification into V1 update are rollbacked, if the fm type V1 will be okay but an error occurs into one fm type V2 the modification into that fm will be rollbacked, but the others V2 update process are processed and the modifications executed by V1 update process are NOT rollbacked.&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054647#M90043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Function module in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054648#M90044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhavani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Update with immediate start&lt;/P&gt;&lt;BR /&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Update with delayed start&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display the attributes screen in the Function Builder, choose Goto ® Administration.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;Difference Is:&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;In Update Mode:&lt;/P&gt;&lt;BR /&gt;During the update, errors only occur in exceptional cases, since the system checks for all logical errors, such as incorrect entries, in the dialog phase of the SAP LUW. If a logical error occurs, the program can terminate the update using the ROLLBACK WORK statement. Then, the function modules are not called, and the log entry is deleted from table VBLOG. Errors during the update itself are usually technical, for example, memory shortage. If a technical error occurs, the update work process triggers a database rollback, and places the log entry back into VBLOG. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;else&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules that you call using CALL FUNCTION...In that case, &lt;/P&gt;&lt;P&gt;After the COMMIT WORK, the dialog process does not wait for these function modules to be executed . All of the function modules that you register in this way are executed together in a single database LUW. These updates are useful, for example, when you need to maintain identical data in more than one database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&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;Cheers,&lt;/P&gt;&lt;P&gt;Vijay Raheja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 14:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-in-update-task/m-p/1054648#M90044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-22T14:55:19Z</dc:date>
    </item>
  </channel>
</rss>

