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

Close

How To Fix W_CB386 - Copy function doesn't support that new condition deletes source condition


SAP Error Message - Details

  • Message type: E = Error

  • Message class: W_CB -

  • Message number: 386

  • Message text: Copy function doesn't support that new condition deletes source condition

  • 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_CB386 - Copy function doesn't support that new condition deletes source condition ?

    SAP Error Message:
    W_CB386 Copy function doesn't support that new condition deletes source condition


    Cause

    This warning message occurs in SAP Pricing (Condition Technique) when you try to copy condition records using a copy function (e.g., in transaction VK11/VK12 or through programmatic means), and the new condition record you are attempting to create or update would effectively delete the source condition record.

    In other words, the system detects that the copy operation would result in the source condition being removed or invalidated, which is not supported by the copy function. This typically happens if:

    • The new condition record has no valid data (e.g., all condition values are zero or blank), which is interpreted as a deletion.
    • The copy function is used in a way that tries to overwrite the source condition with an empty or invalid condition.
    • The copy logic or program incorrectly attempts to delete the source condition instead of creating a new one.

    Explanation

    • Condition Records in SAP pricing are stored with keys and validity periods.
    • Copy functions are designed to create new condition records based on existing ones.
    • Deleting a condition record is a separate operation and cannot be done via the copy function.
    • If the new condition record is empty or invalid, SAP interprets this as a deletion attempt, which is not allowed in the copy process.

    Solution

    1. Check the Data Being Copied:

      • Ensure that the new condition record you want to create has valid data (e.g., non-zero condition values).
      • Avoid copying condition records that would result in empty or zero-value conditions unless you intend to delete them explicitly.
    2. Use Correct Transaction/Method for Deletion:

      • If your intention is to delete a condition record, use the appropriate transaction (e.g., VK12 to delete condition records) or programmatic deletion methods.
      • Do not use the copy function to delete condition records.
    3. Review Copy Logic:

      • If you are using a custom program or user exit/BAdI to copy condition records, review the logic to ensure it does not attempt to create empty or invalid condition records.
      • Add validation to prevent copying when the target condition would be empty or invalid.
    4. Check Validity Periods:

      • Make sure the validity periods of the new condition record do not overlap or conflict with the source condition in a way that would cause deletion.

    Related Information

    • Transactions:

      • VK11: Create Condition Records
      • VK12: Change Condition Records (also used for deletion)
      • VK13: Display Condition Records
    • SAP Notes and Documentation:

      • Check SAP Notes related to condition record copying and deletion.
      • Review SAP Help on Condition Technique and condition record maintenance.
    • User Exits/BAdIs:

      • If custom logic is involved, check user exits like USEREXIT_PRICING_PREPARE_TKOMK or BAdIs related to condition record processing.

    Summary

    Aspect Details
    Cause Copy function tries to create a new condition that effectively deletes the source record.
    Effect System issues warning W_CB386 and prevents the copy operation.
    Solution Ensure new condition has valid data; use proper deletion methods if needed; review logic.
    Related Info Use VK12 for deletion; check validity periods; review custom code if applicable.

    If you provide more context (e.g., transaction used, custom code), I can help tailor the solution further.

    • 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