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

Close

How To Fix VH158 - Subtotal indicator & is not allowed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VH - SD pricing

  • Message number: 158

  • Message text: Subtotal indicator & is not allowed

  • 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 VH158 - Subtotal indicator & is not allowed ?

    SAP Error Message:
    VH158 - Subtotal indicator & is not allowed


    Cause:

    The error message VH158 occurs when an invalid subtotal indicator is used in a pricing condition record or pricing procedure. In SAP pricing, subtotal indicators are used to define how condition values are subtotaled or grouped in the pricing procedure. If a subtotal indicator that is not allowed or not defined in the system is entered, SAP throws this error.

    Common causes include:

    • Entering a subtotal indicator that is not maintained in the system.
    • Using a subtotal indicator in a pricing condition type or pricing procedure where it is not permitted.
    • Incorrect configuration or missing entries in the subtotal indicator customizing.

    Explanation:

    • Subtotal indicators are used in pricing procedures to control the subtotaling of condition values.
    • They are defined in customizing under SPRO ? Sales and Distribution ? Basic Functions ? Pricing ? Pricing Control ? Define Subtotal Indicators.
    • Only subtotal indicators defined here and allowed for the specific pricing procedure or condition type can be used.

    Solution:

    1. Check the Subtotal Indicator Used:
      Identify the subtotal indicator causing the error (the message will show the invalid indicator).

    2. Verify Subtotal Indicator Configuration:
      Go to SPRO and check the configuration path:
      SPRO ? Sales and Distribution ? Basic Functions ? Pricing ? Pricing Control ? Define Subtotal Indicators

      • Ensure the subtotal indicator exists and is correctly defined.
    3. Check Pricing Procedure and Condition Type Settings:

      • Verify that the subtotal indicator is allowed for the pricing procedure and condition type in use.
      • Adjust the pricing procedure or condition type if necessary to allow the subtotal indicator.
    4. Correct the Condition Record or Pricing Procedure:

      • If the subtotal indicator was manually entered in a condition record, correct it to a valid one.
      • If the pricing procedure is incorrectly configured, adjust it accordingly.
    5. Transport Changes:
      If changes are made in customizing, ensure they are transported to the relevant systems.


    Additional Information:

    • Subtotal indicators are typically single characters (e.g., A, B, C) used to group condition values.
    • They help in subtotaling and displaying pricing details in sales documents.
    • Incorrect subtotal indicators can cause pricing errors or incorrect pricing calculations.

    Summary:

    Aspect Details
    Error Message VH158 - Subtotal indicator & is not allowed
    Cause Invalid or undefined subtotal indicator used in pricing condition or procedure
    Solution Verify and correct subtotal indicator in customizing and pricing procedure/condition
    Config Path SPRO ? Sales and Distribution ? Basic Functions ? Pricing ? Pricing Control ? Define Subtotal Indicators

    If you need help with the exact steps in your SAP system or further troubleshooting, please provide details such as the subtotal indicator used, pricing procedure, or condition type 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
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