Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix W_CB159 - Doc. &1: No settl doc type for cancell. is defined for settl doc type &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: W_CB -

  • Message number: 159

  • Message text: Doc. &1: No settl doc type for cancell. is defined for settl doc type &2

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message W_CB159 - Doc. &1: No settl doc type for cancell. is defined for settl doc type &2 ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    W_CB159 Doc. &1: No settl doc type for cancell. is defined for settl doc type &2


    Meaning / Cause:

    This warning message occurs during the clearing or settlement process in SAP FI (Financial Accounting) when the system tries to cancel a settlement document but cannot find a defined settlement document type for cancellation corresponding to the original settlement document type.

    • &1 = Document number of the original settlement document.
    • &2 = Settlement document type of the original document.

    In other words, the system is trying to reverse or cancel a settlement document, but the configuration does not specify which document type should be used for the cancellation of that particular settlement document type.


    Cause:

    • The settlement document type (e.g., 'AB' for clearing documents) used in the original settlement does not have a corresponding cancellation document type defined in the system.
    • This is a configuration issue in the IMG (Implementation Guide) under the settings for document types related to settlement/cancellation.

    Where to Check / Configuration Path:

    You need to check the document type settings for settlement and cancellation in the IMG:

    1. SPRO ? Financial Accounting ? Accounts Receivable and Accounts Payable ? Business Transactions ? Incoming and Outgoing Payments ? Automatic Clearing ? Define Document Types for Clearing Documents

    OR

    1. SPRO ? Financial Accounting ? General Ledger Accounting ? Document ? Document Types ? Define Document Types

    2. Also, check the settings for settlement document types and their cancellation counterparts in:

      • SPRO ? Financial Accounting ? Accounts Receivable and Accounts Payable ? Business Transactions ? Incoming and Outgoing Payments ? Automatic Clearing ? Define Document Types for Clearing Documents

    Solution:

    • Define the cancellation document type for the settlement document type &2.
    • This means you need to assign a cancellation document type to the original settlement document type in the configuration.
    • For example, if the original settlement document type is 'AB', you need to specify which document type will be used when this document is cancelled (e.g., 'AB' or a special cancellation document type like 'ABX').

    Steps to Resolve:

    1. Go to SPRO ? Financial Accounting ? Accounts Receivable and Accounts Payable ? Business Transactions ? Incoming and Outgoing Payments ? Automatic Clearing ? Define Document Types for Clearing Documents.
    2. Find the settlement document type &2.
    3. Assign or maintain the cancellation document type for this settlement document type.
    4. Save and transport the changes if necessary.
    5. Retry the cancellation process.

    Additional Information:

    • This message is a warning (W_), so the process might still continue, but it is recommended to fix the configuration to avoid inconsistencies.
    • Proper document type configuration ensures that reversal or cancellation documents are posted correctly with the right document type, which is important for audit and reporting.
    • If unsure about which document type to assign, consult your FI configuration team or SAP FI consultant.

    If you need the exact IMG path or transaction codes to maintain document types, here are some useful ones:

    • Transaction code: OBYR (Define Document Types for Clearing Documents)
    • Transaction code: OBA7 (Define Document Types)

    Let me know if you need help with the exact configuration steps or further troubleshooting!

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant