what is difference between commit and rollback.?
Answers were Sorted based on User's Feedback
Answer / malli.gontla
suppose u have one table which is in database. The table
contains some records. U want to modify one record of table.
after modification, u don't want that new values for
the record. just u use rollback command. previous values are
placed in database.
Example:
Case 1: Roll Back
sno name palce
1 abc hyderabad
2 xyz bangalore.
This is the table and it contains some records.
Suppose if u want change the 2nd record, means palce
is changed to chennai.
After modification:
sno name palce
1 abc hyderabad
2 xyz Chennai.
Suppose if u want old values, means u don't want new
values. At that time u use roll back command
After useing rollback:
sno name palce
1 abc hyderabad
2 xyz bangalore.
after using roll back, the records are comes like
above(original records)
Case 2: Commit
sno name palce
1 abc hyderabad
2 xyz bangalore.
This is the table and it contains some records.
Suppose if u want change the 2nd record, means palce
is changed to chennai.
After modification:
sno name palce
1 abc hyderabad
2 xyz Chennai.
After useing commit:
sno name palce
1 abc hyderabad
2 xyz Chennai.
after using commit, the table is finilased.u can't get
old values by uisng roll back.
Once if u use commit,u can't get old values for using of
rollback. Before commit, u can get old values for rollback.
Is This Answer Correct ? | 112 Yes | 4 No |
Answer / prasad
Commit mean if change the values after commit u cont replace
old values.
Rollback mean if u r not given commit u will get previous
values.
Is This Answer Correct ? | 46 Yes | 8 No |
Answer / kaushal
Using commit, It saves any modification made within objects of database. We can not undo our transaction which done within commit.
Rollback is similar to undo button of any s/w browser. That is, when we make any changes in recodes of table, we can came back to previous form of that table by using rollback.
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / priyanka
COMMIT:Save Record Permanently in database
Syntax :COMMIT;
ROLLBACK: This is like undo
Syntax: ROLLBACK
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashish kumar
If transaction manager not found any unchecked exception then record is committed.If transaction manager found any unchecked exception then rollback.
Is This Answer Correct ? | 0 Yes | 0 No |
12) How to add Text Modules in SMARTFORMS?
In sap script how to print bar code in vertical manner
What is the use of event AT SELECTION-SCREEN ON FIELD?
User ‘A’ put the Exclusive Lock for one table and User ‘B’ want to put the Shared Lock for the same table. Is it Possible?
what will happen if will write the code of PAI module in PBO module.will it execute successfully or it will show error?if so what will be the error.
Does every abap/4 have a modular structure?
how to see the table output?
Is there Any Module in SAP for Internal Audit?
what is the significance of main window in a page, what are the types of windows? briefly explain the types of windows
how to identify all the BDC Programs running in Client SAP Environment
What are the events in ABAP/4 language?
How to declare select-option as a parameter?