<?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: function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842510#M923867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravalika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are talking about Update function Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike transactions and executable programs, dialog modules do not start a new SAP LUW. Calls to update-task function modules from a dialog module use the same update key as the ones in the calling program. The result is that calls to update function modules from a dialog module are executed only if a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you place a COMMIT WORK in a dialog module, it does commit changes to the database (for example, with UPDATE).However, it does not start the update task. The function modules are not actually executed until a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use dialog modules, try to avoid including calls to update function modules in subroutines called with PERFORM ON COMMIT. In general, any occurrence of PERFORM ON COMMIT(with or without update-task function calls) in a dialog module can be problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because dialog modules have their own roll area, which disappears when the module finishes. Consequently, all local data (including data used for parameter values when calling an update function module) disappears as soon as the commit in the main program is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must use this method in a dialog module (i.e. include the call to an update-task function in a subroutine), you must ensure that the values of the actual parameters still exist when the update-task function actually runs. To do this, you can store the required values with EXPORT TO MEMORY and then import them back into the main program (IMPORT FROM MEMORY) before the COMMIT WORK statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Update Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a function module, you first need to start the Function Builder. Choose Tools ® ABAP Workbench, Function Builder. For more information about creating function modules, refer to the ABAP Workbench Tools documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&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;Update with immediate start&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&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;Defining the Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules that run in the update task have a limited interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.&lt;/P&gt;&lt;P&gt;You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2008 14:31:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-25T14:31:40Z</dc:date>
    <item>
      <title>function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842509#M923866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;what is updatable fm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 14:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842509#M923866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-25T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842510#M923867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravalika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are talking about Update function Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike transactions and executable programs, dialog modules do not start a new SAP LUW. Calls to update-task function modules from a dialog module use the same update key as the ones in the calling program. The result is that calls to update function modules from a dialog module are executed only if a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you place a COMMIT WORK in a dialog module, it does commit changes to the database (for example, with UPDATE).However, it does not start the update task. The function modules are not actually executed until a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use dialog modules, try to avoid including calls to update function modules in subroutines called with PERFORM ON COMMIT. In general, any occurrence of PERFORM ON COMMIT(with or without update-task function calls) in a dialog module can be problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because dialog modules have their own roll area, which disappears when the module finishes. Consequently, all local data (including data used for parameter values when calling an update function module) disappears as soon as the commit in the main program is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must use this method in a dialog module (i.e. include the call to an update-task function in a subroutine), you must ensure that the values of the actual parameters still exist when the update-task function actually runs. To do this, you can store the required values with EXPORT TO MEMORY and then import them back into the main program (IMPORT FROM MEMORY) before the COMMIT WORK statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Update Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a function module, you first need to start the Function Builder. Choose Tools ® ABAP Workbench, Function Builder. For more information about creating function modules, refer to the ABAP Workbench Tools documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&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;Update with immediate start&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&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;Defining the Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules that run in the update task have a limited interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.&lt;/P&gt;&lt;P&gt;You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 14:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842510#M923867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-25T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842511#M923868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The main update technique for bundling database changes in a single database LUW is to use CALL FUNCTION ... IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the COMMITstatement you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· COMMIT WORK&lt;/P&gt;&lt;P&gt;This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· COMMIT WORK AND WAIT&lt;/P&gt;&lt;P&gt;This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&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;Update with immediate start&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&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;Have a look at below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;P&gt;Please mark all the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 06:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842511#M923868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T06:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842512#M923869</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;Unlike transactions and executable programs, dialog modules do not start a new SAP LUW. Calls to update-task function modules from a dialog module use the same update key as the ones in the calling program. The result is that calls to update function modules from a dialog module are executed only if a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you place a COMMIT WORK in a dialog module, it does commit changes to the database (for example, with UPDATE).However, it does not start the update task. The function modules are not actually executed until a COMMIT WORK statement occurs in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use dialog modules, try to avoid including calls to update function modules in subroutines called with PERFORM ON COMMIT. In general, any occurrence of PERFORM ON COMMIT(with or without update-task function calls) in a dialog module can be problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because dialog modules have their own roll area, which disappears when the module finishes. Consequently, all local data (including data used for parameter values when calling an update function module) disappears as soon as the commit in the main program is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must use this method in a dialog module (i.e. include the call to an update-task function in a subroutine), you must ensure that the values of the actual parameters still exist when the update-task function actually runs. To do this, you can store the required values with EXPORT TO MEMORY and then import them back into the main program (IMPORT FROM MEMORY) before the COMMIT WORK statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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;Update with immediate start&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&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;Defining the Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules that run in the update task have a limited interface: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.&lt;/P&gt;&lt;P&gt;You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 06:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/3842512#M923869</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-26T06:42:45Z</dc:date>
    </item>
  </channel>
</rss>

