Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Commit and rollback?

Former Member
0 Likes
455

Can I write COMMIT and ROLLBACK in user-exit?

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
438

You can, but you shouldn't.

Always let the 'system' do the necessary COMMITS, otherwise you can COMMIT data to database, before some additional checking of the data is done, for example.

Edited by: Micky Oestreich on May 10, 2008 1:16 PM

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
439

You can, but you shouldn't.

Always let the 'system' do the necessary COMMITS, otherwise you can COMMIT data to database, before some additional checking of the data is done, for example.

Edited by: Micky Oestreich on May 10, 2008 1:16 PM

Read only

Former Member
0 Likes
438

No you cannot do that.

It will result in abnormal termination of the program

Read only

Former Member
0 Likes
438

Hi,

commit statement in userexit:

You should not do that.

After the user exits code is triggered, the transaction's own commits statements will commit the database anyway

Regards

Kiran Sure