<?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: DELETE FROM TABLE with rollback work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445342#M1649012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using commit inside loop then take it out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use ROLLBACK WORK before the commit(based on your condition). here is the SAP help link. read to know more..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abaprollback.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_702/en/abaprollback.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2012 18:40:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-16T18:40:36Z</dc:date>
    <item>
      <title>DELETE FROM TABLE with rollback work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445340#M1649010</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 try to do the command DELETE FROM TABLE for delete all regist that exist on database table from my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command delete all the regist but i need to do a rollback work doesn't work. All the that are removed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me to go back with delete data if i wan't to recovery data ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Miguel Silva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 18:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445340#M1649010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T18:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM TABLE with rollback work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445341#M1649011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to do the rollback before the COMMIT or before the program ends. Did you do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 18:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445341#M1649011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T18:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM TABLE with rollback work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445342#M1649012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using commit inside loop then take it out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use ROLLBACK WORK before the commit(based on your condition). here is the SAP help link. read to know more..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abaprollback.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_702/en/abaprollback.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 18:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445342#M1649012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T18:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM TABLE with rollback work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445343#M1649013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code..&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF  itab IS NOT INITIAL.
    DELETE &amp;lt;db&amp;gt; FROM TABLE itab.
    IF sy-subrc NE 0 .
      ROLLBACK WORK.
      MESSAGE e0398(00)."Error while Saving data
      RETURN.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 03:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445343#M1649013</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2012-01-17T03:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM TABLE with rollback work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445344#M1649014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must execute the ROLLBACK WORK before any DATABASE COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Commit is triggered by COMMIT WORK, a call to DB_COMMIT or a native sql commit statement.&lt;/P&gt;&lt;P&gt;But it is also triggered Implicitly by end of dialog step, Call of  a function module in a synchronous or asynchronous Remote Function Call or end of such a call, receive. Remember that sending a message, warning, error or information will trigger the end of a dialog step, so also trigger a db commit. (Read some documentation on [Database Commit|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm])&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>Tue, 17 Jan 2012 07:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-with-rollback-work/m-p/8445344#M1649014</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-01-17T07:32:28Z</dc:date>
    </item>
  </channel>
</rss>

