<?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: Call Function in Update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604800#M596856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you want to call your FM when a commit happens you should write a routine which is called upon commit and this routine will call your fm.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form call_my_fm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'COMMITROUTINE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;lt_dfkkbrlevyrec = lt_dfkkbrlevyrec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform call_my_fm on commit.&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;commit work. " now your routine will be called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 07:34:13 GMT</pubDate>
    <dc:creator>kostas_tsioubris</dc:creator>
    <dc:date>2007-08-08T07:34:13Z</dc:date>
    <item>
      <title>Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604799#M596855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written the FM Call function 'COMMITROUTINE' in update task.&lt;/P&gt;&lt;P&gt;but this FM is not getting triggered when some commit happens. In all, this FM is not commiting tha data in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'COMMITROUTINE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    lt_dfkkbrlevyrec       = lt_dfkkbrlevyrec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is missing in it?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seema Dadhwal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 07:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604799#M596855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604800#M596856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you want to call your FM when a commit happens you should write a routine which is called upon commit and this routine will call your fm.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form call_my_fm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'COMMITROUTINE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;lt_dfkkbrlevyrec = lt_dfkkbrlevyrec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform call_my_fm on commit.&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;commit work. " now your routine will be called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 07:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604800#M596856</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-08-08T07:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604801#M596857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what will be the attrite of that Function Module.&lt;/P&gt;&lt;P&gt;Is it normal Fm or update module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Seema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604801#M596857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604802#M596858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check the update module radiobutton in FM attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604802#M596858</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-08-08T09:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604803#M596859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Go to the attribute tab of the fn module. there check update module radio button.&lt;/P&gt;&lt;P&gt;also check the start immediate radio button or Immediate start , No restart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thn call the fn module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'COMMITROUTINE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;lt_dfkkbrlevyrec = lt_dfkkbrlevyrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&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;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604803#M596859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function in Update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604804#M596860</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;if you did the settings for Update module , also check for the following statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP help documentation for in update task says:&lt;/P&gt;&lt;P&gt;'While an update function module is processed in an update work process, you are not allowed to execute the statements SUBMIT, CALL DIALOG, CALL SCREEN, CALL TRANSACTION, COMMIT WORK, ROLLBACK WORK and all other statements that provoke a database commit'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check have you used any statements which provokes a database commit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shrinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 11:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task/m-p/2604804#M596860</guid>
      <dc:creator>former_member31961</dc:creator>
      <dc:date>2007-08-08T11:02:00Z</dc:date>
    </item>
  </channel>
</rss>

