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

1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?

1501


What is bdc programming in sap?

616


What kind of BDC programs are written ?

603


What is sapnet?

889


What is the difference between open_form and close_form?

621






What is the difference between a dialog program and a report?

561


What does the insert statement in extract datasets do? : abap modularization

586


How many types of data classes are there in sap?

587


What is the difference between table and template?

582


Can there be more than 1 main window in sap script?

621


What are the parameters in bdc_open_group? : abap bdc

609


The commands through which an abap/4 module can “branch to “ or “call” the next screen are?

636


Which function module reads the data for particular infotype ? : abap hr

559


How many types of data classes are there in sap abap? : abap data dictionary

556


What is the sap abap?

633