Can I write COMMIT and ROLLBACK in user-exit?
Answers were Sorted based on User's Feedback
Answer / bikas
Hi,
ofcourse we can write but it is not recommended.
In an user exit control is in the mid of a transaction data
will be updated or not is decided at the end of the
execution of the transaction.
If we write Commit it will commit the database update
whereas case may be like transaction went into error and
database update is not required in that case there will be
data inconsistancy.
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / krishna davuluri
Hi,
Coomit and Roll back in the User exit should not be used.
Because while executing userexit its not allways sure that
all needed values for database updations are present or
not.hence we should not use COMMIT or ROLLBACK, of work.
Also userexit is expected to add new functionality to
existing functionality, its not supposed to make any
changes in the existing functionality.
Suppose if you take Userexit SAVE_DOCUMENT_PREPARE.Systems
goes through the user exit more than once and COMMIT or
ROLLBACK may cause inconsistencies.
Is This Answer Correct ? | 11 Yes | 2 No |
Answer / buddula15
Hi
I think that we should not write COMMIT in user exit but we can
write ROLLBACK. Correct me if i am wrong.
Is This Answer Correct ? | 3 Yes | 10 No |
Answer / malli.gontla
generally user exits are used for add the additional
functionality to the sap standard code. it will not effect
to future software upgradation.
but how commit and rollback is used in user exits.
Is This Answer Correct ? | 0 Yes | 12 No |
What are the data types of the abap/4 layer? : abap data dictionary
What is an rdbms?
What are two methods of modifying sap standard tables? : abap data dictionary
use of chain and endchain?
what are the stpes in ALE?
What is the relationship existing between the various data elements in data dictionary? : abap data dictionary
please any one can tell me modifytable keyword used in DDIC? what is a basic diffrence between modify table and update key word?
1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?
What is the main point while using control break in internal table ?
where can u use secondary index in program please tell me? is there any tool to test in development client?is there any performance tool is thre pleaseeee tell me?
list some middlewares used in EDI ?
How to change standard data base table ?