Do you have any question about this error?
Message type: E = Error
Message class: WS - Supplier Billing Document
Message number: 158
Message text: You cannot cancel - accounting document does not exist for document &1
The accounting document for document &V1& does not exist in the system.
The system does not allow cancellation of document &V1&, as further
errors would then arise when the accounting document is created for the
cancellation document.
Create a credit memo for document &V1& or change the
<DS:DE.WFARTS>settlement document type for the reversal document</> of
settlement document document type &V2& so that a credit memo can be
created for document &V1&.
Error message extract from SAP system. Copyright SAP SE.
WS158
- You cannot cancel - accounting document does not exist for document &1 ?Certainly! Here's a detailed explanation for the SAP error message WS158:
SAP Error Message WS158
Message Text:
You cannot cancel - accounting document does not exist for document &1
Cause
This error occurs when you attempt to cancel or reverse a document in SAP, but the system cannot find the corresponding accounting document linked to the original document number you provided.
In SAP, many business documents (like invoices, goods movements, etc.) generate accounting documents that record the financial impact. When you try to cancel or reverse a document, SAP checks for the related accounting document to reverse the financial postings. If the accounting document is missing or was never created, the system throws this error.
Common reasons include:
To resolve the WS158 error, follow these steps:
Verify Document Number and Company Code:
Check if Accounting Document Exists:
Check Document Type and Status:
Use Correct Cancellation Procedure:
Check for Archiving or Deletion:
Consult SAP Notes and Documentation:
Transaction Codes:
Modules Involved:
SAP Notes:
Aspect | Details |
---|---|
Error | WS158 - You cannot cancel - accounting document does not exist for document &1 |
Cause | No accounting document linked to the document you want to cancel |
Solution | Verify document/accounting document existence, use correct cancellation transaction |
Check | Document number, company code, document type, document status, archiving/deletion status |
If you provide the document number and module context, I can help you with more specific guidance!
Get instant SAP help. Sign up for our Free Essentials Plan.
WS157
Clearing account found for item &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS156
Net posting active for document type &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS159
You cannot cancel - accounting document contains settled items
What causes this issue? The accounting document for document &V1& contains cleared amounts.System Response The system does not allow documen...
WS160
Different net values at supplier and customer level
What causes this issue? The current Customizing settings for settlement process type &V1& lead to a balance when the accounting document is c...
Click on this link to search all SAP messages.