avoid cancellation of billing document not released to acc
I have the following issue : my scenario is that billing documents are automatically released to accounting.
Sometimes there are errors so the billing document is not automatically released.
If this happens, I need to AVOID and BLOCK the deletion of the document. So what I need is AVOID THE DELETION OF A BILLING DOCUMENT IF IT IS NOT RELEASED TO ACCOUNTING YET.
How can I obtain it?