Blocking opportunity documnet save
I need to check some custom fields and block the opportunity document save if that are wrong.
I tried some BADIs (ex.ORDER_SAVE) but I don't know how to block the effective save.
Message 'E' does not work on Web UI(CRM70) properly. Is that right?
Could you help me?
ArunKumar Balakrishnan replied
In ORDER_SAVE badi, if you use method CHANGE_BEFORE_UPDATE you can raise exception ERROR_OCCURED in case the validation fails. Else if you use method CHECK_BEFORE_SAVE you can raise exception DO_NOT_SAVE. It is better to use check_before_save method.