Can I write COMMIT and ROLLBACK in user-exit?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are standard layouts sets in the sap script?

935


What is an rdbms?

580


What is the difference between a substructure and an append structure?

624


any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.

1955


What is the difference between scrolling a table horizontally and vertically?

573






2)In production what is the user exit?

1571


What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary

569


Table events aNd table maintains generation

985


what is the difference between hashed & sorted internal tables?

1629


how can we use the text randomly or circularly in smartforms.... means... suppose i have 'abap' horizantally... but i want it in vertically... how can... plz any body tell me this....

1574


What is a match code? : abap data dictionary

637


What is the difference between the function module and a normal abap/4 subroutine? : abap modularization

694


What are the function modules used in a sap script driver program?

570


What are the different types of luws?

655


Explain data dictionary in abap?

598