‎2006 Sep 05 8:04 PM
Hi!
I waana know that is it possible to out commit after coding user exit.. and if it is can anybody tell me how to do that..
‎2006 Sep 05 8:13 PM
It is not advisable to use the COMMIT WORK statement inside a User exit as it can lead to errors and/or inconsistencies.
~Suresh
‎2006 Sep 05 8:14 PM
We had a case where one of the developer put a Commit in the user exit and it created big problems. We created a OSS note only to realize that it was our mistake, lesson learned was never to put a commit in the user exit.
hith
Sunil Achyut
‎2006 Sep 05 8:21 PM
You should not do that.
After the user exits code is triggered, the transaction's own commits statements will commit the database anyway.
Regards,
Ravi
‎2006 Sep 05 8:50 PM
instead of using commit...
create a Z function module and put your logic into that
and call that function module with 'in update task' addition.
then your function module will be called when the transaction is commited or rollbacked if your transaction is cancelled without saving... it is the best way in your case.