<?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: How two create UPDATE FUNCTION MODULE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962347#M395532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a update function module, in the attributes of the FM in Processing Type block, select the "Update Module" radiobutton and under it Start Immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would make the FM a update function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call it like a natural FM, but it will get executed ONLY when the program comes across a explicit COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2007 11:27:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-09T11:27:52Z</dc:date>
    <item>
      <title>How two create UPDATE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962346#M395531</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 have 2 tables to update one after the other...&lt;/P&gt;&lt;P&gt;I have geard it is advisable to use update function module for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any1 tell me how to create and work with update function modules...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers will be rewarded....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962346#M395531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T11:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How two create UPDATE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962347#M395532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a update function module, in the attributes of the FM in Processing Type block, select the "Update Module" radiobutton and under it Start Immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would make the FM a update function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call it like a natural FM, but it will get executed ONLY when the program comes across a explicit COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962347#M395532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T11:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How two create UPDATE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962348#M395533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But do I need to create two FM's for 2 database tables or only 1 FM and where should I write the COMMIT WORK...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962348#M395533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T11:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How two create UPDATE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962349#M395534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How an update function module works is, the execution of the FM is delayed to until when a COMMIT WORK statement is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence if you have the data available for updating the two DB tables at the time of calling the FM, you can pass the tables to the same FM and program the DB update for both in the same FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the COMMIT WORK should be outside the FM further down in the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link is very good and easy to follow&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya[url=http://help.sap.com/saphelp_erp2005vp/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-two-create-update-function-module/m-p/1962349#M395534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T11:45:39Z</dc:date>
    </item>
  </channel>
</rss>

