<?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 commit work and roll back with simple language and simple example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920638#M687729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru&lt;/P&gt;&lt;P&gt;commit work and roll back with simple language and simple example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 03:36:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T03:36:16Z</dc:date>
    <item>
      <title>commit work and roll back with simple language and simple example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920638#M687729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru&lt;/P&gt;&lt;P&gt;commit work and roll back with simple language and simple example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 03:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920638#M687729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T03:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: commit work and roll back with simple language and simple example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920639#M687730</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;The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the current SAP LUW in the process. In this case, COMMIT WORK performs the following actions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It executes all subroutines registered using PERFORM ON COMMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence is based on the order of registration or according to the priority specified using the LEVEL addition. Execution of the following statements is not permitted in a subroutine of this type: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM ... ON COMMIT|ROLLBACK &lt;/P&gt;&lt;P&gt;COMMIT WORK &lt;/P&gt;&lt;P&gt;ROLLBACK WORK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement CALL FUNCTION ... IN UPDATE TASK can be executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROLL BACK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement ROLLBACK WORK closes the current SAP-LUW and opens a new one. In doing so, all change requests of the current SAP-LUW are canceled. To do this, ROLLBACK WORK carries out the following actions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Executes all subprograms registered with PERFORM ON ROLLBACK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Deletes all subprograms registered with PERFORM ON COMMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Raises an internal exception in the Object Services that makes sure that the attributes of persistent objects are initialised. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Deletes all update function modules registered with CALL FUNCTION ...IN UPDATE TASK from the VBLOG database table and deletes all transactional remote Function Calls registered with CALL FUNCTION ... IN BACKGROUND TASK from database tables ARFCSSTATE and ARFCSDATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Removal of all SAP locks set in the current program in which the formal parameter _SCOPE of the lock function module was set to the value 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) Triggers a database rollback, which also ends the current database-LUW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 03:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920639#M687730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T03:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: commit work and roll back with simple language and simple example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920640#M687731</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;here is one example i found somewhere, it will help you understand commit and rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZYDTABLE01. &lt;/P&gt;&lt;P&gt;DATA: IT_TAB01 LIKE ZYDTABLE01 &lt;/P&gt;&lt;P&gt;OCCURS 0 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_TAB01-ZTEXT01 = 'DAVID'. &lt;/P&gt;&lt;P&gt;IT_TAB01-ZTEXT02 = 'VVVVV'. &lt;/P&gt;&lt;P&gt;APPEND IT_TAB01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*MODIFY ZYDTABLE01 FROM IT_TAB01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ZYDTABLE01 &lt;/P&gt;&lt;P&gt;SET: ZTEXT02 = 'UPDATEDONE' &lt;/P&gt;&lt;P&gt;WHERE ZTEXT01 LIKE 'BG1'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO ZYDTABLE01 VALUES IT_TAB01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;COMMIT WORK. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;ROLLBACK WORK. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 03:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-roll-back-with-simple-language-and-simple-example/m-p/2920640#M687731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T03:59:43Z</dc:date>
    </item>
  </channel>
</rss>

