Differences between Commit work, Logical Unit of Work and Roll back work

Hi all,
Can any one explain me in details what is the difference between Commit Work, Logical Unit of Work and Roll back work. Pls explain by providing some example.
and also explain me where and when these are used and what are the importance of using these.
Thanks in advance.
Regards
Ramana Prasad.T

Hi Ramana Prasad,
A Logical Unit of Work (LUW or database transaction) is an inseparable sequence of database operations which must be executed either in its entirety or not at all. For the database system, it thus constitutes a unit.
LUWs help to guarantee database integrity. When an LUW has been successfully concluded, the database is once again in a correct state. If, however, an error occurs within an LUW, all database changes made since the beginning of the LUW are canceled and the database is then in the same state as before the LUW started.
An LUW begins
o each time you start a transaction
o when the database changes of the previous LUW have been confirmed (database
commit) or
o when the database changes of the previous LUW have been cancelled (database rollback)
An LUW ends
o when the database changes have been confirmed (database commit) or
o when the database changes have been canceled (database rollback)
COMMIT WORK.
Executes a database commit and thus closes a logical processing unit or Logical Unit of Work ( LUW ) (see also Transaction processing ). This means that
all database changes are made irrevocable and cannot be reversed with ROLLBACK WORK and
all database locks are released.
COMMIT WORK also
calls the subroutines specified by PERFORM ... ON COMMIT * executes asynchronously any update requests (see CALL FUNCTION ... IN UPDATE TASK ) specified in these subroutines or started just before,
processes the function modules specified in CALL FUNCTION ... IN BACKGROUND TASK ,
cancels all existing locks (see SAP locking concept ) if no update requests exist,
closes all open database cursors (see OPEN CURSOR ) and
resets the time slice counter to 0.
COMMIT WORK belongs to the Open SQL command set.
Return code value
The SY-SUBRC is set to 0.
ROLLBACK WORK.
Closes a logical processing unit by reversing all database changes made since the last COMMIT .
You use this statement if you cannot be certain that all the database changes have been executed correctly.
The update routines are not performed.
ROLLBACK WORK belongs to the Open SQL command set.
Note
If the ROLLBACK statement occurs within a SELECT loop, the processing cannot continue because the database cursor is invalid. After the ROLLBACK statement, you should therefore ensure that all SELECT processing has been explicitly terminated.
<b>Plz. Avoid Duplicate Threads.</b>
Hope this resolves your query.
Reward all the helpful answers.
Regards

Similar Messages

  • What is the difference between Commit, Commit_Form and Post ?

    What is the difference between Commit, Commit_Form and Post ?

    Commit() and commit_form() are exactly the same. The changes done into the databased blocks are made in the database select/insert/update and commited.
    post() does the same, but without the last commit in the database (so that you can rollback).
    Francois

  • Commit work and roll back with simple language and simple example

    hi guru
    commit work and roll back with simple language and simple example

    Hi,
    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:
    It executes all subroutines registered using PERFORM ON COMMIT.
    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:
    PERFORM ... ON COMMIT|ROLLBACK
    COMMIT WORK
    ROLLBACK WORK
    The statement CALL FUNCTION ... IN UPDATE TASK can be executed.
    ROLL BACK:
    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:
    1) Executes all subprograms registered with PERFORM ON ROLLBACK.
    2) Deletes all subprograms registered with PERFORM ON COMMIT.
    3) Raises an internal exception in the Object Services that makes sure that the attributes of persistent objects are initialised.
    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.
    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.
    6) Triggers a database rollback, which also ends the current database-LUW.

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • Differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform

    Hello,
    J would like to know if there are some differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform.
    I know that there are some differences on Oracle 8i Parallel Server and i know that some products are not include like precompiler (Mod*Ada, Pro*FORTRAN) on a Linux Platform.
    Thank you.

    We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
    By buyinng from a company that has a good background you could be sure that you will have support.
    Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
    Visit www.red-hat.com
    Rewards... Bye

  • Differences between Oracle 8i for a UNIX Platform and a Linux Platform

    I want to know the differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform. And which platform is better?
    Thanks

    We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
    By buyinng from a company that has a good background you could be sure that you will have support.
    Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
    Visit www.red-hat.com
    Rewards... Bye

  • Are there any differences between using Adobe Illustrator on a MAC and on a PC?

    Hello,
    I'm about go enroll in a class specialized for teaching Adobe Illustrator in order to be able to use the program at work.  The company that I work at uses Macintosh computers to deal with clerical work and everything, so I would like to know if there are any differences between using Adobe Ilustrator on a MAC and on a PC.  The school that offers training teaches two types of classes, where one uses Illustrator on a MAC, and the other one on a PC.  The PC class is able to have an earlier start date, which is why I'm sort of leaning towards choosing that class as I need to be able to use the software as soon as possible, but if there are main differences between the interface that will affect my knowledge of using Illustrator on a MAC after I take the class with Windows systems, then I will most likely be waiting for the class teaching in MAC systems.
    Thanks in advance for the help!
    Oh and another suggestion- should I take the Illustrator class in CS6 or CS5?

    Reading through the CS5 vs CS6 performance thread, the Mac version seems to have worse performance than Windows version.  From a starter's perspective the differences would most likely never be realized.  It will take some time to see differences between even CS5 and CS6 other than the visual aspect of course.
    Definitely take the CS6 versionso you can say you have it.  CS5 is my preferred version, CS6 is garbage with the bugs it has for the type of work I use it for.

  • Differences between Netweaver development Studio 2.0.14 and 2.0.15?

    Hello guys
    who can tell me what differences between Netweaver development Studio 2.0.14 and 2.0.15 or where I can find documents about them?
    p.s.sorry,I posted it in another thread as well.
    Thanks in advance
    Liying

    Liying
    Check these threads if it helps
    NWDS + CHECKSTYLE / CHECKLIPSE
    /people/umair.salam/blog/2006/01/26/installing-and-configuring-the-preview-edition-of-ep
    Error while creating my first  project on SP15 and why Help doesn't work?
    Thnaks
    Sat

  • Difference between Hyperion Financial Reporting version 7.0 and 9.3.1 ?

    Hi All,
    Can you please difine Difference between Hyperion Financial Reporting version 7.0 and 9.3.1 ?

    I migrated from 7.5 to 9.3.1 a couple years back so hopefully this is somewhat helpful.
    From a developer perspective, the report designer itself looks about the same. The most annoying changes for me were that they started migrating functionality AWAY from the client program and to the web. For instance, managing security is a pain as it is done through Workspace and it is a bit clunkly. I also ran into some issues where my old report's security information is not visible in Workspace. It is still 'working', but when you view report properties, it shows nothing for who has assigned security. Also, things like deleting/moving reports and creating folders are done through workspace and not the client program. "Copying" can be done through the client program by using "Save As" functionality.
    There is a migration tool to move your old stuff to 9.3.1. It seemed to work OK; however, the User Interface was a bit screwy. For instance, it said I was 138% complete when it finished. It copied more reports than it showed as existing.... :)
    On the back end, things changed quite a bit. In the older Financial Reports, the report objects existing in a single database table and if you wanted to, you could extract everything from that table. In 9.3.1, part of the information is in Workspace database (i.e. Report names/ID's, security access, hierarchy) and the actual report file itself is stored in a psedo-filesystem under the RM webapp. The names are not user friendly at all and you'll need to XREF from the database to make sense of it. When you finally find the actual report "file", they are compressed/encrypted.
    From an end user perspective, things pretty much work the same way as always.

  • Differences between BI Mobile 4.0 for iPad  and SAP BO Mobile 3.0

    Hi:
    What's the difference between BI Mobile 4.0 for iPad  and SAP BO Mobile 3.0
    I need something licence for BI Mobile 4?
    Mobile 4.0 is only for All in one?
    I have SAP BO 8.81.
    Thanks.
    Christian.

    Hello everybody,
    thanks to Deepu I managed to get the iPad app connecting with our BOXI server now, too.
    Once again, you need to have/install
    >> BOXI 3.1 SP4
    >> BOXI 3.1. Mobile Server SP4 ( First I was not aware of this product - be sure to install SP4 for this component as well!)
    Having that you find MobileBIService.war within the folder <installation folder>\Business Objects\BusinessObjects Enterprise 12.0\java\applications. Copying this war file to Tomcat's webapps folder should automatically result in the deployment of the corresponding Web application.
    One additional remark: I could not open the MobileBIService web application via my browser, i.e. calling the URL http://<server name>:<port number>/MobileBIService/ lead to an error. I ignored this because I guess the web application serves only as a kind of middleware between the app and the "classic" BOXI server.
    After deploying the WAR you have a folder <installation folder>\Business Objects\Tocat55\webapps\MobileBIService where you can find the mobi.properties file in subfolder WEB-INF. I let the properties file unchanged, i.e. the only category is "Mobile".
    The idea of the categories is, that all Web Intelligence files which are "tagged" with this category can be downloaded/displayed in the iPad app. All other WebI reports are not accessible via iPad.
    On iPad I specified <server name>:<port number> as "Server URL", i.e. I did enter nor "http://"neither the name of the web application (MobileBIService), just server name and port number! I specified the "CMS Name" together with the port number (normally 6400), i.e <CMS name>:<port number>.
    And then it works...
    ...finally!
    Michael

  • DIfference Between User Exits, Screen Exits, Menu Exits And BADI

    Could any one let me know the exact/practical dIfference Between User Exits, Screen Exits, Menu Exits And BADI. ? And why BADIs are more proned to use?

    Hi,
    User Exits:
    A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Menu Exits:
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits:
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    BADIs:
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. 
    And why BADIs are more proned to use?
    In contrast to above customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example).
    All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task.
    The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.
    Regards,
    Ferry Lianto

  • What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    Not entirely sure what you are asking, but a passcode to unlock an iOS device is normally 4 digits long (so is a 4 digit code), though you can make it alphanumeric and longer (so effectively becomes a password).
    If you don't know the passcode to unlock your phone or it's showing the disabled screen then there are instructions on this page for how to reset a device : http://support.apple.com/kb/HT1212 - you should then be able to restore/resync your content to it.

  • Differences between Oracle Forms 11.1.1.6  and 11.1.2

    Hello !
    Which version should I choose 11.1.2 or 11.1.1.6
    11.1.2 must me the latest one aka 11gR2
    11.1.1.6 must be 11gR1 PS5
    Am i right ?
    but in the forms home page it seems that the 11.1.1.6 is the latest version ??
    Oracle Forms 11.1.1.6 Released
    The latest version of Oracle Forms (11.1.1.6) has been released.
    This can be downloaded from My Oracle Support (MOS)
    23-Feb-2012
    Oracle Forms 11g Release 2 has been released. Read about the new features.
    Oct-2011
    I suppose that in a MiddleWare stack : SOA suite + BI publisher + Forms, the 11.1.1.6 (11gR1 PS5) is the best choice.
    Can somebody explain me the differences between Oracle Forms 11.1.1.6 and 11.1.2 ?
    Thanks
    Regards
    Jean-Yves

    Michael Ferrante (Oracle) wrote:
    There are many new features in 11.1.2.0 that do not exist in 11.1.1. Some of the most significant new features are listed in the 11gR2 New Features documentation found on this page:
    http://www.oracle.com/technetwork/developer-tools/forms
    Additional information about new features and changes can be found in the product documentation for 11gR2, which is here:
    http://docs.oracle.com/cd/E24269_01/index.htm
    One important thing to note is that FMw 11.1.2 (11gR2) does not include Portal or Discover. So if you need either or both of these you will need to stick with 11.1.1.Hi Michael,
    One of the features which is very very important in my point of view is
    Reduced Installation Footprint
    In order to reduce the resource requirements on development machines, you can perform an
    installation specifically tailored for development. This will limit the number of software products
    and servers installed on the machine whilst still allowing a developer to build, run and test their
    Forms application.
    If this feature is only available for the 11.1.2 release then the choice is made !
    Thanks !
    Jean-Yves
    ps : and we don't use any portal or discoverer :-)
    Edited by: JeanYves Bernier on 30 nov. 2012 23:54

  • What is the difference between jdk version 1.3.1-b24 and 1.3.1_02-b02?

    Hi,
    This is a weird question. But I really need to know the difference between jdk vesion 1.3.1-b24 and 1.3.1_02-b02.
    Anyone has a clue?
    Thanks
    Wayne

    This is a weird question. But I really need to know
    the difference between jdk vesion 1.3.1-b24 and
    1.3.1_02-b02.Bug fixes only.
    When reading the strings above, ignore the part saying "-b##" (that's the build number). So you're looking at 1.3.1 (the base release), and 1.3.1_02 (patch 02 on 1.3.1).

  • What is the differences between the older version of Oracle Financials and the 11 i

    What is the differences between the older version of Oracle Financials and 11i?

    Vijay,Thanks for your answer,but I am still not clear about it,I have a instance to describe my question at detail.
        If there is a final product A, and the planning strategy for A is 20(MTO), the procurement type of A is F(external procurement) at the view mrp2 in the material master datas.
    step1: I creat a sales order.
    step2: run MRP for A.
    step3: transfer the purchase requistion into a purchase order,and the field of acc.***.cat. in the purchase order will be filled out M automatically, because the acc.***.cat. in the planning strategy 20(MTO) is set with E.
        Well, the purchase order is created, what is the relationship between the sales order and the purchase order? What will be happened about costing between the SO and the PO?
        If I delete the E, I make the PO become a standard PO, what is difference between standard PO and the PO including E?
    Best Regards
    Bob

Maybe you are looking for

  • How to quickly delete all songs that are no longer on my computer

    I just deleted a huge music folder, and I am wondering how itunes could find out all these no longer available tracks and delete them from itunes.

  • Help with building a JTree using tree node and node renderers

    Hi, I am having a few problems with JTree's. basically I want to build JTree from a web spider. The webspide searches a website checking links and stores the current url that is being processed as a string in the variable msg. I wan to use this varia

  • URGENT: Please help me with my corrupted files!

    Hi all, I desperately need help. On my Mac Mini running Yosemite 'Disk Utility' is telling me that the Mac's internal HDD is faulty and needs to be replaced and that's fine because I'll buy a new HDD, BUT I need to copy off some important .PDF files

  • Is Precalculation server a prerequisite for Information broadcasting

    Hello Everybody, I wanted to know is installation and configuration of pecalculation server a prerequisite for enabling Information broadcasting feature in BW 3.5 i.e; inorder to send emails to users .I mean inorder to send mails to users is it neces

  • Select query for grouping

    I need to create email and send it with all channels together the users are subscribed to, This is my source table: CREATE TABLE [dbo].[test_email]([email] [varchar](50) NOT NULL,[channel_id] [int] NOT NULL,CONSTRAINT [PK_test_email] PRIMARY KEY CLUS