Hi Experts,
I am facing a strange issue in one of my implementations of CHECK_BEFORE_SAVE method of ORDER_SAVE BADI.
While saving an opportunity,based on some conditions, I am raising a DO_NOT_SAVE and displaying few error messages on the Web UI. But I noticed that the method CHECK_BEFORE_SAVE is triggered for the 2nd time in spite of DO_NOT_SAVE being raised.
I am sure that this should not be the case as after DO_NOT_SAVE is raised, the control should go into error handling mode.
There is also another issue i.e. after the DO_NOT_SAVE is raised 2 times, the Web UI screen is not in editable mode. Due to this, the user is under the impression that the transaction is saved but actually at the back end, the data in the database is not saved.
I am not sure whether these 2 issues are connected in some way and fixing one can fix the other.
Request you to please provide your inputs.
Also, request your help in solving this issue.
Thanks and regards,
Preeti Viswanath