<?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: perform on commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836801#M664222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the below link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/commit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/commit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u find useful..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 10:53:14 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-09-20T10:53:14Z</dc:date>
    <item>
      <title>perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836799#M664220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you show me an example of "perform on commit" with variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836799#M664220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836800#M664221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is used to commit the changes to the database &lt;/P&gt;&lt;P&gt;when you write some code in the PERFORM ..ON COMMIT&lt;/P&gt;&lt;P&gt;subroutine, all the statements reagrding database update are committed only when you write explicit COMMIT WORK and for Roll back ROLLBACK has to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836800#M664221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836801#M664222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the below link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/commit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/commit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u find useful..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836801#M664222</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-20T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836802#M664223</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;LUW is a logical unit of work and is the span of time &lt;/P&gt;&lt;P&gt;during which any transaction is updated in all or nothing &lt;/P&gt;&lt;P&gt;manner i.e they've been updated completely ro commited or &lt;/P&gt;&lt;P&gt;thrown away(Roll Back). An Luw is nothing but a database &lt;/P&gt;&lt;P&gt;LUW in database is updated from one screen to another &lt;/P&gt;&lt;P&gt;screen within a transaction which does not last longer and &lt;/P&gt;&lt;P&gt;in SAP LUW, the system perfoms database from one &lt;/P&gt;&lt;P&gt;transaction to another and this last longer and is usually &lt;/P&gt;&lt;P&gt;terminated by the programmer by issuing Commit work &lt;/P&gt;&lt;P&gt;statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD I FUSEFULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836802#M664223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836803#M664224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi helios,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change this code according to your req and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform update_zproc_files .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form update_zproc_files .&lt;/P&gt;&lt;P&gt;  wa_zproc_files-mandt       = sy-mandt.&lt;/P&gt;&lt;P&gt;  wa_zproc_files-batch       = v_batch.           &lt;/P&gt;&lt;P&gt;  wa_zproc_files-rcvdt       = v_rcvdt.           &lt;/P&gt;&lt;P&gt;  wa_zproc_files-totdoc      = v_totdoc.          &lt;/P&gt;&lt;P&gt;  wa_zproc_files-totamt      = v_totamt.           &lt;/P&gt;&lt;P&gt;   wa_zproc_files-processdate = sy-datum.          &lt;/P&gt;&lt;P&gt;  wa_zproc_files-processtime = sy-uzeit.           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_zproc_files to i_zproc_files.&lt;/P&gt;&lt;P&gt;  clear wa_zproc_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zproc_files from table i_zproc_files.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      commit work.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    refresh i_zproc_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " update_zproc_files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Reward points if useful   &amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836803#M664224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836804#M664225</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;PERFORM ON COMMIT routines are not executed in the dialog module.&lt;/P&gt;&lt;P&gt;You must ensure that any subroutines called using ON COMMIT can be delayed until the next COMMIT WORK in the calling program. Remember that the global data of the dialog module is destroyed along with the internal session when control returns to the calling program. Consequently, subroutines called using PERFORM ON COMMIT must not use this global data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement PERFORM ON COMMIT calls a subroutine in the dialog work process. However, it is not executed until the system reaches the next COMMIT WORK statement. Here, as well, the ABAP statement COMMIT WORK defines the end of the SAP LUW, since all statements in a subroutine called with PERFORM ON COMMIT that make database changes are executed in the&lt;/P&gt;&lt;P&gt;database LUW of the corresponding dialog step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of this bundling technique against CALL FUNCTION... IN UPDATE TASK is better performance, since the update data does not have to be written into an extra table. The disadvantage, however, is that you cannot pass parameters in a PERFORM... ON COMMIT statement. Data is passed using global variables and ABAP memory. There is a considerable danger of data inconsistency when you use this method to pass data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also put the CALL FUNCTION IN UPDATE TASK into a subroutine and call the subroutine with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PERFORM SUBROUT ON COMMIT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you choose this method, the subroutine is executed at the commit. Thus the request to run the function in the update task is also logged during commit processing. As a result, the parameter values logged with the request are those current at the time of the commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;a = 1.&lt;/P&gt;&lt;P&gt;PERFORM F ON COMMIT.&lt;/P&gt;&lt;P&gt;a = 2.&lt;/P&gt;&lt;P&gt;PERFORM F ON COMMIT.&lt;/P&gt;&lt;P&gt;a = 3.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;FORM f.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPD_FM' IN UPDATE TASK EXPORTING PAR = A.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the function module UPD_FM is carried out with the value 3 in PAR. The update task executes the function module only once, despite the two PERFORM ON COMMIT statements. This is because a given function module, logged with the same parameter values, can never be executed more than once in the update task. The subroutine itself, containing the function module call, may not have parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836804#M664225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836805#M664226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i put this?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform update_db on commit using var1 var2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836805#M664226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836806#M664227</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;Have a look to this thread &lt;A __default_attr="89692" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="ON COMMIT ABAP CLASS METHOD" href="https://community.sap.com/" modifiedtitle="true" title="ON COMMIT ABAP CLASS METHOD"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That's provide way to trigger class event on commit and do not have the disadvantage you clearly explained.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836806#M664227</guid>
      <dc:creator>taryckbensaili</dc:creator>
      <dc:date>2016-06-17T11:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836807#M664228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. When using on commit sufix you can no longer set parameters. You must store them in an other way (as decribed before) to be able to access them when the perform is called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836807#M664228</guid>
      <dc:creator>taryckbensaili</dc:creator>
      <dc:date>2016-06-17T11:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836808#M664229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this is not allowed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836808#M664229</guid>
      <dc:creator>taryckbensaili</dc:creator>
      <dc:date>2016-06-17T11:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: perform on commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836809#M664230</link>
      <description>&lt;P&gt;Error : E-mail Status is Still no Entry in Queue&lt;/P&gt;&lt;P&gt;I solved the issue using the send mail perform routine before the update perform routine.&lt;/P&gt;&lt;P&gt;I was getting the same issue when i was sending the mail "PERFORM send_email" after DB update "PERFORM update_data.".&lt;/P&gt;&lt;P&gt;Two things i did.&lt;/P&gt;&lt;P&gt;a. Use of commit after send_mail &lt;/P&gt;&lt;P&gt;b. send mail before data base update .&lt;/P&gt;&lt;P&gt;This solved my issue.I am attaching the screenshot. Hope it helps.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1752512-before-db-update.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1752513-commit-work.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 04:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-commit/m-p/2836809#M664230</guid>
      <dc:creator>jagannath_parija</dc:creator>
      <dc:date>2019-12-02T04:23:45Z</dc:date>
    </item>
  </channel>
</rss>

