SES reversal after settlement

I have a scenario of Project system where system allowing SES to be reversed after capitalization. Which led to the negative balances in AUC. Need a solution where system wont allow reversal after settlement for that activity. Your help would be much appreciated.