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 |
What are the mandatory fields to be filled in Transaction VA21 for 'Creation of sales order Quotation'.
what is the transaction code to create LOGO in sap scripts?
what are the diff types of dispatcher in sap ?
8) What are the compulsary values in RESUSE_LIST_DISPLAY and RESUSE_LIST_GRID?
How BAPI is Different from call Transaction/Session
If i have locked a program using Locking and iam in bangalore.How can i give authorization to other user to use my program who is another place say Pune?is it possible?
What is logical database? : abap hr
What happens AT SELECTION SCREEN events?
How do we handle multiple line items in BDC's.
Fallback class
what is file handling?
Why bapi need then bdc ? : abap bdc