I have created an authorization object to control the deletion of .documents. I use the IF_EX_DOCUMENT_MAIN01~BEFORE_DELETE BADI.
When i delete a document from EasyDms, it verifies the authorization object, and if you don't have the authorization, it shows up a message, but the document disappears from the directory (BOM Document), The document is not deleted because I use an exception to cancel the deletion, but the file is not listed in the directory any more.
How can I avoid deleting the file from the directory? Can I use an exception to Cancel the process and How can I use it?
Thank you and regards.