Can I write COMMIT and ROLLBACK in user-exit?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abap work bench?

728


What are the basic object types? : sap abap hr

623


What takes most time in SAP script programming?

680


What is value table?

577


What are pooled tables? : abap data dictionary

663






What is a table attribute?

583


What are the attributes of a field that can be activated or deactivated during runtime?

564


Type casting and error handling

927


Explain how do you get output from idoc?

615


Explain what is step-loop? Explain all the steps?

704


What are different ABAP editors? What are the differences?

590


How many default tab strips are there?

581


What is your approach for writing a bdc program? : abap bdc

587


What is an update type with reference to a match code id?

561


What is the definition of modification in an sap system and how do they impact an upgrade?

535