• +91 9723535972
  • info@interviewmaterial.com

SAP Interview Questions and Answers

Question - Define LUW(Logical Unit of Work).

Answer -

  • An LUW(Logical Unit of Work) is a series of database operations that should be either completely executed(followed by commit) or not at all(followed by rollback).
  • It helps to guarantee the integrity of the database. The database is said to be in a correct state when an LUW has been successfully concluded. However, if any error occurs within an LUW, all the modifications made to the database from the beginning of the LUW will be canceled and the database will be returned to the previous state as before the LUW started. For example, in financial accounting, while transferring some amount of money, you must deduct that amount from account A and it must be added to account B. Before and after the transfer process, the data must be consistent, but in between these two steps, data can be inconsistent. If the amount transfer by LUW becomes successful, then the amount will be deducted from account A and added into account B. If any error occurs in between database must be returned to its previous state before LUW started.
  • An LUW will begin:
  1. Each time when you start a transaction.
  2. When the changes made to the database using the previous LUW has been confirmed(database commit).
  3. When the changes made to the database using the previous LUW has been canceled(database rollback).
  • An LUW will end:
  1. When the changes made to the database has been confirmed(database commit).
  2. When the changes made to the database has been canceled(database rollback).

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners