<?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 ROLLBACK database tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754987#M1303840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I need some help on Rollback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I have a  header table and an Item table&lt;/P&gt;&lt;P&gt;     First data is inserted in Header table  and then the related item records are updated in Item table&lt;/P&gt;&lt;P&gt;     Assume a scenario where the Header records gets updated successfully and the item records   &lt;/P&gt;&lt;P&gt;         insertion fails for some reason&lt;/P&gt;&lt;P&gt;     So in this case the header records should be rolledback , please give some inputs on this&lt;/P&gt;&lt;P&gt;  &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;Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chandrasekhar Jagarlamudi on May 29, 2009 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2009 12:05:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-29T12:05:38Z</dc:date>
    <item>
      <title>ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754987#M1303840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I need some help on Rollback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I have a  header table and an Item table&lt;/P&gt;&lt;P&gt;     First data is inserted in Header table  and then the related item records are updated in Item table&lt;/P&gt;&lt;P&gt;     Assume a scenario where the Header records gets updated successfully and the item records   &lt;/P&gt;&lt;P&gt;         insertion fails for some reason&lt;/P&gt;&lt;P&gt;     So in this case the header records should be rolledback , please give some inputs on this&lt;/P&gt;&lt;P&gt;  &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;Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chandrasekhar Jagarlamudi on May 29, 2009 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 12:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754987#M1303840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-29T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754988#M1303841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your header and item updates would be one LUW (logical unit of work). Once everything is done without errors, you send a COMMIT WORK. Before that, you can use ROLLBACK WORK to undo the changes to the header table, should there be a problem with the items update.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 12:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754988#M1303841</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-29T12:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754989#M1303842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know how can we make the 2 tables as one LUW as i am new to this&lt;/P&gt;&lt;P&gt;Do we have to maintain it at database level or program level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 12:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754989#M1303842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-29T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754990#M1303843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The keywords I mentioned are ABAP statements, the LUW logic is inside your program code. Check the online help for these keywords in the ABAP editor, it's all being explained there.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 12:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754990#M1303843</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-29T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754991#M1303844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 12:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754991#M1303844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-29T12:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: ROLLBACK database tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754992#M1303845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You may write your code in the following fashion:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
INSERT zhead FROM TABLE i_zhead.
IF sy-subrc EQ 0.
   INSERT zitem FROM TABLE i_zitem.
   IF sy-subrc NE 0.
      ROLLBACK WORK.
   ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Firoz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2009 12:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-database-tables/m-p/5754992#M1303845</guid>
      <dc:creator>Firoz_Ashraf</dc:creator>
      <dc:date>2009-05-31T12:40:14Z</dc:date>
    </item>
  </channel>
</rss>

