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

Close

How To Fix WSTP040 - Either delete the ruling price or create a new price


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WSTP - Messages for IAC Sales Prices in SAP Retail Store

  • Message number: 040

  • Message text: Either delete the ruling price or create a new price

  • 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 WSTP040 - Either delete the ruling price or create a new price ?

    SAP Error Message:
    WSTP040 – "Either delete the ruling price or create a new price"


    Cause of the Error

    This error typically occurs in SAP Pricing (especially in SD - Sales and Distribution module) when you try to maintain or create a condition record (price) that conflicts with an existing "ruling price" condition record for the same combination of key fields (e.g., customer, material, sales organization, etc.).

    • Ruling price is a condition record that has been marked as the primary or controlling price for a particular condition type and key combination.
    • SAP does not allow multiple ruling prices for the same condition type and key combination.
    • When you attempt to create a new price condition record that overlaps with an existing ruling price, or try to maintain a condition record without deleting or adjusting the ruling price, this error is triggered.

    Explanation

    • The system enforces that only one ruling price exists for a given condition type and key combination.
    • If you want to create a new price condition record that should become the ruling price, you must first delete or deactivate the existing ruling price.
    • Alternatively, if you want to keep the existing ruling price, you cannot create a new conflicting price condition record.

    Solution

    1. Identify the existing ruling price condition record:

      • Use transaction VK13 (Display Condition) or VK12 (Change Condition) to find the ruling price condition record for the relevant condition type and key combination.
      • Check if the condition record is marked as ruling price.
    2. Delete or deactivate the existing ruling price:

      • If the existing ruling price is no longer valid, delete it or set its validity period to end before the new price starts.
      • Alternatively, you can change the ruling price flag if applicable.
    3. Create the new price condition record:

      • After removing or adjusting the existing ruling price, create the new price condition record.
      • Ensure the new price is set as the ruling price if it should control pricing.
    4. Check condition records validity periods:

      • Sometimes overlapping validity periods cause this error.
      • Adjust the validity periods so that ruling prices do not overlap.
    5. Use transaction VK31 (Maintain Pricing Conditions) carefully:

      • When maintaining multiple condition records, ensure no conflicting ruling prices exist.

    Additional Related Information

    • Ruling Price Concept:
      The ruling price is the price that the system uses as the base price for pricing calculations. It is usually the condition record with the highest priority or the one explicitly marked as ruling.

    • Condition Types and Access Sequences:
      Understanding how condition types and access sequences work helps in managing condition records and avoiding conflicts.

    • Pricing Procedure:
      The pricing procedure determines which condition types are used and how they are processed. Conflicts in ruling prices can affect the pricing procedure execution.

    • SAP Notes and Documentation:
      Check SAP Notes related to pricing condition records and ruling price errors for specific patches or updates.


    Summary

    Aspect Description
    Cause Attempt to create or maintain a price condition record that conflicts with an existing ruling price.
    Solution Delete or adjust the existing ruling price condition record before creating a new one.
    Related Info Use VK12/VK13 to manage condition records; ensure no overlapping ruling prices; check validity periods.

    If you need help identifying the ruling price or adjusting condition records, please provide details such as condition type, sales area, and material/customer involved.

    • 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