Application log not getting cleared
we have a requirement where in we have to prevent service ticket save if the status of ticket is open and save button is clicked from ICWC .We are on CRM2007.
we are using ORDER_SAVE badi's check_before_order_save and raising the exception DO_NOT_SAVE from the BADI .
making cv_own_message as true .
error message is shown .but if we change the status to other then open and save .then service ticket gets saved but with the same error.
how to clear the prev log as if we use the FM crm_message_delete from the BADI , it is causing exception CS_SY_ERROR and terminating there itself.the same thing is happening if we use BAL_LOG_DELTE_MESSAGE.