Stop Googling SAP errors. Use our Free Essentials plan instead - instant AI help, no credit card needed. Start Now

Close

How To Fix VF158 - Document &1: cancellation of items not possible.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VF - Billing

  • Message number: 158

  • Message text: Document &1: cancellation of items not possible.

  • Show details Hide details
  • What causes this issue?

    Cancellation of items is not possible for the speicifed document due to
    one of the following reasons:
    Document has not yet been transferred to accounting.
    Document contains payment cards.
    Document represents a rebate document.

    System Response

    Creation of a cancellation billing document is refused.

    How to fix this error?

    Check to see which of the above scenarios is the case. If the document
    has merely not been transferred to accounting, then perform the
    cancellation again once you have transferred the document to accounting.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VF158 - Document &1: cancellation of items not possible. ?

    The SAP error message VF158 ("Document &1: cancellation of items not possible") typically occurs in the context of billing documents, particularly when trying to cancel or reverse a billing document in SAP. This error indicates that there are certain conditions preventing the cancellation of specific items within the billing document.

    Causes of VF158

    1. Status of the Document: The billing document may be in a status that does not allow for cancellation. For example, if the document has already been fully paid or if it has been referenced in subsequent documents (like invoices or credit memos), cancellation may not be possible.

    2. Item Conditions: Certain items within the billing document may have conditions or statuses that prevent their cancellation. For instance, if an item has been delivered or invoiced, it may not be eligible for cancellation.

    3. Document Type Restrictions: Some document types in SAP have specific rules regarding cancellations. If the document type does not allow for item cancellations, this error will occur.

    4. Custom Logic or Enhancements: Custom developments or enhancements in the SAP system may impose additional restrictions on the cancellation process.

    5. Open Items: If there are open items related to the billing document, such as pending payments or adjustments, this may also prevent cancellation.

    Solutions

    1. Check Document Status: Review the status of the billing document to ensure it is eligible for cancellation. If it has been fully processed or paid, you may need to consider other options, such as creating a credit memo instead.

    2. Review Item Conditions: Examine the individual items in the billing document to identify any that may be causing the issue. Look for items that have been delivered or have other restrictions.

    3. Consult Documentation: Refer to SAP documentation or your organization's internal guidelines regarding the specific document type and its cancellation rules.

    4. Use Alternative Transactions: If cancellation is not possible, consider using alternative transactions such as creating a credit memo or adjusting the billing document through other means.

    5. Check for Custom Logic: If your organization has implemented custom logic or enhancements, consult with your SAP technical team to understand any additional restrictions that may be in place.

    6. Contact SAP Support: If the issue persists and you cannot identify the cause, consider reaching out to SAP support for assistance. They can provide insights based on the specific configuration and customizations of your SAP environment.

    Related Information

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as VF02 (Change Billing Document) and VF03 (Display Billing Document) to review the document details.
    • SAP Notes: Check for any SAP Notes related to the error message VF158, as they may provide additional insights or patches that address known issues.
    • User Authorization: Ensure that you have the necessary authorizations to perform cancellation actions in the system.

    By following these steps, you should be able to diagnose and address the VF158 error effectively.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker