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 | 13 No |
What is the difference between ECC versions and older versions?
What is Web dynpro?
BDC program to migrate data to SAP R/3 database. The data will be uploaded using transaction ME11. (Session Method) plz mention the detail coding Tahnks, Rahul
What are the two levels in defining a match code? : abap data dictionary
control break statements in ABAP?
Hiall We can implement n no of implementations for a badi. which badi will be active...
What is the use of the statement leave to list-processing?
Define the various contents of technical specifications ?
How to debug a smartform otherthan putting break-point in initializatin section?
5 Answers BirlaSoft, IBM, KPIT,
how to navigate to report from report? note: no transaction code created to report.
How to create the ur own barcodes?
Pls tell me, we r using at line-selection,at user-command and at pf-status for generating the secondary list in report then what we will use in ALV for generating alv list. pls tell me what r the important thing to read in alv for interview purpose.