2007 May 09 5:59 AM
hi gurus,
what is commit &roll back.describe in simple words
2007 May 09 6:03 AM
Hi,
These keyworks are basically used for Database update terminology:
Commit: This saves data into database table.
rollback: This cancels saving into database table.
Jogdand M B
hi gurus,
what is commit &roll back.describe in simple words
2007 May 09 6:01 AM
Hi,
It the transaction is completed it is said commited.If it is started again due to some reasons then it is said as rolledback
2007 May 09 6:01 AM
hi,
commit : it will update the data base.
roll back : the data base will be moved back to the previous stable state.
Regards
Reshma
2007 May 09 6:03 AM
Hi,
These keyworks are basically used for Database update terminology:
Commit: This saves data into database table.
rollback: This cancels saving into database table.
Jogdand M B
2007 May 09 6:12 AM
Hi Babu,
Check this info.
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.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards
2007 May 09 6:17 AM
hi ,
Below are few informations about COMMIT and ROLLBACK work :
commit work and roll bak work are open SQL statements use for database updates .
COMMIT WORK always concludes a database LUW and starts a new one . ROLLBACK work always
uncodes all changes back to start of the database LUW .
The ABAP statements COMMIT WORK and ROLL BACK work only work like the corresponding standard
SQL statements if the entire apoplication program is represented by a single implicit database LUW.
Reward if helpful !
Regards,
Ranjita
2007 May 09 6:57 AM
If u change some DataBase table
the changes will be really happend only after the COMMIT statemnt.
If there is a ROLLBACK statement occured before COMMIT statement itself cannot identify the changes.
<b>Award if uesful</b>
Sudheer
2007 May 09 10:28 AM
Hi,
U have to <b>award points for useful answers</b> and u have to mention it as <b>Solved</b> if ur question is solved. Dont forget.
Regards,
Sudheer
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |