<?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: Update function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545092#M1936210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because those statements are &lt;SPAN style="text-decoration: underline;"&gt;not allowed&lt;/SPAN&gt; in an update FM, they could mess database consistency, search and read some online documentation as &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_update.htm"&gt;CALL FUNCTION - IN UPDATE TASK&lt;/A&gt; (Look for ‘statements that create a database commit, must not be executed.’) Only solution to break an update is raising an Abort message to trigger DB rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: Such statements could be executed in a RFC FM executed thru &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_unit.htm"&gt;CALL FUNCTION - IN BACKGROUND UNIT &lt;/A&gt; or &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_task.htm"&gt;CALL FUNCTION - IN BACKGROUND TASK&lt;/A&gt;&lt;SPAN class="lh150"&gt;. But they shouldn’t rollback the previous LUW.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 09:19:07 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2016-03-23T09:19:07Z</dc:date>
    <item>
      <title>Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545090#M1936208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the &lt;SPAN style="color: #222222; font-size: 10pt; font-family: Arial;"&gt;statements &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;SUBMIT&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPCALL_DIALOG.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;CALL DIALOG&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPCALL_SCREEN.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;CALL SCREEN&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;CALL TRANSACTION&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;COMMIT WORK&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPROLLBACK.htm" style="color: #888888; font-family: Arial;"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;ROLLBACK WORK&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-size: 10pt; font-family: Arial;"&gt; in my update function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 10pt; font-family: Arial;"&gt;But those statements are not getting triggered. what could be the reason for this.??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul Khadeer Shaik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545090#M1936208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-23T08:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545091#M1936209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you are trying to check these statements at runtime. You need to switch on update debugging and then you need to debug and confirm whether these statements are getting triggered or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Siva.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545091#M1936209</guid>
      <dc:creator>siva_subramanian2</dc:creator>
      <dc:date>2016-03-23T08:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545092#M1936210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because those statements are &lt;SPAN style="text-decoration: underline;"&gt;not allowed&lt;/SPAN&gt; in an update FM, they could mess database consistency, search and read some online documentation as &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_update.htm"&gt;CALL FUNCTION - IN UPDATE TASK&lt;/A&gt; (Look for ‘statements that create a database commit, must not be executed.’) Only solution to break an update is raising an Abort message to trigger DB rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: Such statements could be executed in a RFC FM executed thru &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_unit.htm"&gt;CALL FUNCTION - IN BACKGROUND UNIT &lt;/A&gt; or &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_task.htm"&gt;CALL FUNCTION - IN BACKGROUND TASK&lt;/A&gt;&lt;SPAN class="lh150"&gt;. But they shouldn’t rollback the previous LUW.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545092#M1936210</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-23T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545093#M1936211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Actually, here I am trying to use these statements in my update function module.&lt;/P&gt;&lt;P&gt;i.e., I called a screen and also a transaction, and those were successfully called(triggered).&lt;/P&gt;&lt;P&gt;But, what if I use these in my report program. will they get triggered??&lt;/P&gt;&lt;P&gt;Please do justify my statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdul Khadeer Shaik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545093#M1936211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-23T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545094#M1936212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check Raymonds reply. So these statements can be used in RFC FMs and not allowed in Update FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Siva.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545094#M1936212</guid>
      <dc:creator>siva_subramanian2</dc:creator>
      <dc:date>2016-03-23T09:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545095#M1936213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the valuable information.&lt;/P&gt;&lt;P&gt;yes, I agree with your statement, because just now I created an Update FM and used those statements in my FM and they got triggered.&lt;/P&gt;&lt;P&gt;But, when I have used those statements in my custom program making use of IN UPDATE TASK. These statements were not triggered.&lt;/P&gt;&lt;P&gt;But what exactly is happening in the background across this scenario.&lt;/P&gt;&lt;P&gt;And why is it not showing any syntax or run time error, instead it is getting executed but exclusively those statements were not triggering i.e., there is no effect of using those statements(call transaction or call screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul Khadeer shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545095#M1936213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-23T09:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545096#M1936214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those FM are not executed when you are actually running in an update task (called IN UPDATE TASK followed by a COMMIT WORK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: the FM TH_IN_UPDATE_TASK is useful to code different behavior between update task and direct execution.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 10:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-function-module/m-p/11545096#M1936214</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-23T10:56:08Z</dc:date>
    </item>
  </channel>
</rss>

