How To Fix WS159 - You cannot cancel - accounting document contains settled items


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 159

  • Message text: You cannot cancel - accounting document contains settled items

  • Show details Hide details
  • What causes this issue?

    The accounting document for document &V1& contains cleared amounts.

    System Response

    The system does not allow document &V1& to be cancelled, as this would
    result in errors during the creation of the accounting document of the
    reversal document.

    How to fix this error?

    For document &V1&, enter a document with a contrasting settlement
    document category or change the
    <DS:DE.WFARTS>settlement document type for the reversal document</> of
    settlement document type &V2& so that an invoice/credit memo/valued
    credit memo is created for document &V1& (tmfk-lftyp = '01' or
    tmfk-lftyp = '03').

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS159 - You cannot cancel - accounting document contains settled items ?
    Certainly! Here's a detailed explanation for the SAP error message WS159: "You cannot cancel - accounting document contains settled items":
    
    Error Message: WS159
    Text:
    You cannot cancel - accounting document contains settled items.
    
    
    Cause: This error occurs when you try to cancel (reverse) an accounting document that includes line items which have already been settled. In SAP, "settled items" means that the line items have been cleared or offset against other documents (e.g., payments, clearing documents, or settlement documents). Once an item is settled, it is linked to another document, and direct cancellation of the original document is not allowed because it would break the integrity of the clearing or settlement process. Explanation: The document you want to cancel has line items that are cleared/settled. Clearing means the item has been matched and offset with another item (e.g., invoice cleared by payment). SAP prevents cancellation to avoid inconsistencies in financial data. You must first reverse the clearing/settlement before you can

    Already have an account? Login here!


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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author