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

Close

How To Fix WER_UI122 - Operation can only be performed on the main condition


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WER_UI - UI related messages

  • Message number: 122

  • Message text: Operation can only be performed on the main 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 WER_UI122 - Operation can only be performed on the main condition ?

    SAP Error Message:
    WER_UI122: Operation can only be performed on the main condition


    Cause:

    This error occurs when an operation intended only for the main condition in a pricing procedure is attempted on a subcondition or a condition that is not the main condition. In SAP pricing, certain operations (like changing or deleting) are restricted to the main condition because subconditions depend on or are derived from the main condition.

    For example, if you try to manually change or delete a condition record that is a subcondition (such as a discount or surcharge condition linked to a main price condition), the system will throw this error.


    Explanation:

    • Main condition: The primary condition in a pricing procedure, usually the base price or main price element.
    • Subcondition: Conditions that depend on or modify the main condition, such as discounts, surcharges, taxes, or freight.

    Operations like changing the value, deleting, or certain updates are only allowed on the main condition to maintain pricing integrity.


    Solution:

    1. Identify the condition type:
      Check which condition you are trying to operate on. Ensure it is the main condition in the pricing procedure.

    2. Perform operation on the main condition:
      If you need to change or delete a condition, do it on the main condition record, not on subconditions.

    3. Review pricing procedure:
      Verify the pricing procedure configuration to understand which condition types are main and which are subconditions.

    4. Adjust your process:
      If your business process requires changes on subconditions, consider if the process or customization needs adjustment, or if the operation should be done differently (e.g., changing the main condition or adjusting condition records in a different way).

    5. Check user exits or custom code:
      If this error appears during custom developments or user exits, ensure that the code respects the restriction and only performs operations on main conditions.


    Related Information:

    • Transaction codes:

      • VK11 / VK12 / VK13 — Condition maintenance
      • V/08 — Pricing procedure configuration
      • VA01 / VA02 — Sales order processing (where pricing is applied)
    • SAP Notes:
      Search for SAP Notes related to WER_UI122 for any specific patches or updates.

    • Pricing procedure documentation:
      Understanding the structure of pricing procedures and condition types is crucial.


    Summary:

    • Error WER_UI122 means you tried to perform an operation on a subcondition that is only allowed on the main condition.
    • Fix: Perform the operation on the main condition only.
    • Check: Pricing procedure setup and your process to ensure correct handling of conditions.

    If you provide the exact scenario or transaction where this error occurs, I can help with more specific guidance.

    • 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