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)
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.
The system does not allow you to cancel the source document.
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.
Error message extract from SAP system. Copyright SAP SE.
EDOCUMENT166
- Unable to cancel document; Check method RESTRICT_CANCEL (BAdI ES_ADAPTOR) ?The SAP error message EDOCUMENT166 indicates that there is an issue with canceling a document due to restrictions defined in the BAdI (Business Add-In) ES_ADAPTOR. This error typically arises when the system checks for conditions that prevent the cancellation of a document, and those conditions are not met.
Cause: Business Logic Restrictions: The BAdI ES_ADAPTOR may have implemented custom logic that restricts the cancellation of certain documents based on specific criteria (e.g., document status, related documents, etc.). Document Status: The document you are trying to cancel may be in a status that does not allow for cancellation (e.g., already processed, posted, etc.).
Configuration Issues: There may be configuration settings in the system that enforce restrictions on document cancellation.
Solution: Check BAdI Implementation: Review the implementation of the BAdI ES_ADAPTOR to understand the specific conditions that are preventing the cancellation. You may need to consult with your ABAP developer or SAP consultant to analyze the logic. Document Status
Get instant SAP help. Sign up for our Free Essentials Plan.
EDOCUMENT165
Error in calling user dialog &1; Update the front-end UI application
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
EDOCUMENT164
Not possible to create eDocuments for the selected documents
creation by implementing the method IS_RELEVANT of BAdI EDOC_ADAPTOR. You can determine whether a source document is relevant for eDocumentProcedure ...
EDOCUMENT167
No logic defined for Interface ID &1 in method &3 of BAdI &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
EDOCUMENT168
Error in handling xml file: &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.