Unable to cancel document; Check method RESTRICT_CANCEL (BAdI ES_ADAPTOR)
Message type: E = Error
Message class: EDOCUMENT - eDocument: Messages
Message number: 166
Message text: Unable to cancel document; Check method RESTRICT_CANCEL (BAdI ES_ADAPTOR)
What causes this issue?
You are trying to cancel a document for which a corresponding eDocument
exists. However, this action is not allowed if you are using the
eDocument Basic Enablement.
System Response
The system does not allow you to cancel the source document.
How to fix this error?
Check if an implementation of the
<DS:IO.IF_EDOC_ADAPTOR RESTRICT_CANCEL>Restrict
cancellation of source document</>(RESTRICT_CANCEL) method of the
eDocument Adaptor BAdI (EDOC_ADAPTOR) exists and if it allows the
cancellation of the source document.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Procedure for System Administrators
Error message extract from SAP system. Copyright SAP SE.