<?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: COMMIT WORK. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562157#M857183</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;A database LUW (DB Logical Unit of Work) is an inseparable sequence of database operations that&lt;/P&gt;&lt;P&gt;takes the database from one consistent state to another.&lt;/P&gt;&lt;P&gt;Database LUWs are either completely executed by the database system, or not at all.&lt;/P&gt;&lt;P&gt;Database LUWs close with a database commit. It is only in the commit that the changes are firmly&lt;/P&gt;&lt;P&gt;written in the database. Until the commit occurs, you can undo your changes using a database rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implicit database commits are triggered when:&lt;/P&gt;&lt;P&gt;A dialog step is completed&lt;/P&gt;&lt;P&gt;An error dialog occurs&lt;/P&gt;&lt;P&gt;You call a function module in another work process (RFC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP LUW can span several dialog steps and contains consistency checks, which are processed as closely as possible to the user action, so that the user can be informed of the error status. Since the user processing time of a screen is generally much longer than a dialog step of the application server, an SAP LUW requires a much larger time frame than a database LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an SAP LUW to represent a business process in the R/3 System involves both user dialogs and a database dialog. The purpose of a transaction is to make sure that the data exchanged between program and user in the user dialogs is processed on an all-or-nothing basis in the database. This means that all of the changes from the SAP LUW must be processed in a single database LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually an SAP LUW is processed in more than one DB LUW.&lt;/P&gt;&lt;P&gt;The aim when programming a transaction is to bundle the segments of the database dialog in a DB&lt;/P&gt;&lt;P&gt;LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should aim to process the database dialogs as late as possible within the database LUW, and to&lt;/P&gt;&lt;P&gt;keep the database locks set for as short a time as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the database update, trigger an explicit database commit using the COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 07:10:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T07:10:30Z</dc:date>
    <item>
      <title>COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562155#M857181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does "commit work" works? When do we use commit work? Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562155#M857181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562156#M857182</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;COMMIT WORK&lt;/P&gt;&lt;P&gt;This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT&lt;/P&gt;&lt;P&gt;This form specifies synchronous processing. The commit statement waits for the requested functions to finish processing. Control returns to your program after all high priority (V1) function modules have run successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562156#M857182</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-27T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562157#M857183</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;A database LUW (DB Logical Unit of Work) is an inseparable sequence of database operations that&lt;/P&gt;&lt;P&gt;takes the database from one consistent state to another.&lt;/P&gt;&lt;P&gt;Database LUWs are either completely executed by the database system, or not at all.&lt;/P&gt;&lt;P&gt;Database LUWs close with a database commit. It is only in the commit that the changes are firmly&lt;/P&gt;&lt;P&gt;written in the database. Until the commit occurs, you can undo your changes using a database rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implicit database commits are triggered when:&lt;/P&gt;&lt;P&gt;A dialog step is completed&lt;/P&gt;&lt;P&gt;An error dialog occurs&lt;/P&gt;&lt;P&gt;You call a function module in another work process (RFC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP LUW can span several dialog steps and contains consistency checks, which are processed as closely as possible to the user action, so that the user can be informed of the error status. Since the user processing time of a screen is generally much longer than a dialog step of the application server, an SAP LUW requires a much larger time frame than a database LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an SAP LUW to represent a business process in the R/3 System involves both user dialogs and a database dialog. The purpose of a transaction is to make sure that the data exchanged between program and user in the user dialogs is processed on an all-or-nothing basis in the database. This means that all of the changes from the SAP LUW must be processed in a single database LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually an SAP LUW is processed in more than one DB LUW.&lt;/P&gt;&lt;P&gt;The aim when programming a transaction is to bundle the segments of the database dialog in a DB&lt;/P&gt;&lt;P&gt;LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should aim to process the database dialogs as late as possible within the database LUW, and to&lt;/P&gt;&lt;P&gt;keep the database locks set for as short a time as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the database update, trigger an explicit database commit using the COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562157#M857183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562158#M857184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;condition 1:&lt;/P&gt;&lt;P&gt;   when u are using the insert statement for updating table then we need to use the insert statement inside the loop and endloop for not to dump the code and after endloop write the COMMIT WORK statement to explicitly commit the data to hit the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562158#M857184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562159#M857185</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 uses the BAPI_PROCORDCONF_CREATE_HDR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the debug mode, the processing are correct but when I run it without the debug mode, there is one process that it cant execute. WHen will I use the commit work statement? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562159#M857185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562160#M857186</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;Commit work is used when you code directly in ABAP and make changes in the database and &lt;/P&gt;&lt;P&gt;want to commit the database. &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is used when you make changes to the SAP database by calling &lt;/P&gt;&lt;P&gt;a BAPI from outside SAP and want to commit the database. When you use a BAPI, you can not &lt;/P&gt;&lt;P&gt;directly use commit work, instead you are allowed to use only  &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562160#M857186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562161#M857187</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;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem now is that during the debug mode, it does update in the COGI transaction however during the normal processing it does not update in COGI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to introduce a WAIT statement before I commit work? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562161#M857187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562162#M857188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Click on the following link,you can get full details.&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/search?q=bapi+commit" target="test_blank"&gt;http://abapprogramming.blogspot.com/search?q=bapi+commit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/3562162#M857188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:36:00Z</dc:date>
    </item>
  </channel>
</rss>

