<?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 updating database - begin transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759551#M1461442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm saving to several tables with insert/update and i have know if the data saved consistently .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that not in abap it is possible to update with sections like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT / UPDATE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the data didnt saved consistently i roleback .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there something similar in abap beside catching the Return code every time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Mar 2010 14:50:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-29T14:50:28Z</dc:date>
    <item>
      <title>updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759551#M1461442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm saving to several tables with insert/update and i have know if the data saved consistently .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that not in abap it is possible to update with sections like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT / UPDATE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the data didnt saved consistently i roleback .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there something similar in abap beside catching the Return code every time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 14:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759551#M1461442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T14:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759552#M1461443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can. Explore below function modules&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
TRANSACTION_BEGIN
TRANSACTION_END
TRANSACTION_ABORT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 14:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759552#M1461443</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2010-03-29T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759553#M1461444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did some searching but couldn't understand somethings : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it a saved word or a function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i'm updating few tables it will roleback all of them ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN_TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT 1&lt;/P&gt;&lt;P&gt;INSERT2&lt;/P&gt;&lt;P&gt;INSERT 3 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the indicator for bad updating ?  sy-subrc after every insert or is there any other options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 15:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759553#M1461444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T15:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759554#M1461445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAP, this is called Logical Unit of Work (LUW). You either commit or rollback at the end: COMMIT WORK and ROLLBACK WORK. There are lots of concepts there, so please read the documentation (or attend a SAP training on database updates) and post another question if you don't understand something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 19:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759554#M1461445</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-29T19:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759555#M1461446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;used set update task local at the pbo of the first screen and in when i'm saving i rather commit or rollback .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 08:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759555#M1461446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T08:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759556#M1461447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As your question was not precise, your feedback is useless (in fact it's no sense compared to the question, set update task local is not used for commit/rollback, though there is a relationship).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But anyway, thx for the effort of posting a feedback&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 09:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759556#M1461447</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-16T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759557#M1461448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sandra , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either advice or dont post at all , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your comments not helping anyone . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 16:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759557#M1461448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759558#M1461449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Sandra's advice was good and although it might not help you, it may help those who come accross this thread with the same sort of question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 18:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759558#M1461449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T18:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759559#M1461450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ASA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for my answer which was a little bit rude maybe. In fact, I didn't think that you could be interested in the details as you found a solution, so I didn't argument. It's why I wanted to warn other people who might look for answers, as Rob said. I could explain exactly what is set update task local, what is commit work, rollback work, etc., if you want more information, don't hesitate to ask me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sandra&lt;/P&gt;&lt;P&gt;PS: thx Rob &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 19:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759559#M1461450</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-16T19:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759560#M1461451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey sandra , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a matter of fact im interested to know how did you suggest to solve the problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i ensure data consistnecy in my program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 08:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759560#M1461451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-17T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759561#M1461452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;waiting for sandras ideas...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 08:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759561#M1461452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-17T08:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: updating database - begin transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759562#M1461453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already answered to you in my first answer. If you don't ask a more precise question, we can't help because forum goal is not to answer basic questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am a nice person, I give you an overview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a simple and complex topic, and you have to be trained (read the documentation as I said, forum is not here to repeat the documentation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you have to do the updates at the latest moment (when user saves, after the checks have been done), and you end them with COMMIT WORK (that calls update function modules, see below, then issues a database commit). If a dump occurs at any time, SAP automatically issues a ROLLBACK WORK that undo all updates done since the previous COMMIT. You may issue it programmatically if you need to handle errors between updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have lots of updates or can't do it at the latest moment, you update database using the update task: you create function modules by setting the "update" flag in the properties tab, and you call them using CALL FUNCTION ... IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some abap statements issue implicitly a database commit, so you must not use them between updates. Here are these statements: [Database Commit|http://sandraros.free.fr/abap_docu.htm?url=ABENDB_COMMIT.htm]&lt;/P&gt;&lt;P&gt;And here is [COMMIT WORK documentation|http://sandraros.free.fr/abap_docu.htm?url=ABAPCOMMIT.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are lots of other concepts, you understand that I can't explain here, so refer to the doc, or attend a training.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 10:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-database-begin-transaction/m-p/6759562#M1461453</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-17T10:45:05Z</dc:date>
    </item>
  </channel>
</rss>

