If you set the deletion indicator for a document, BAdI method DELETE_CHECK (checks when setting deletion flag for document) is called.
In the SAP system, the deletion indicator ensures that a document is deleted in the following processing situations:
using the report
MCDOKDEL
after the archiving session
If you do not want to delete an existing object-document link for your object, you can initiate an exception message with this method. Create a message using the following template:
message e000(26) with 'TEXT' raising no_delete.