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

Close

How To Fix VH791 - Sales doc. type &1 can be assigned a maximum of &2 pricing elements


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VH - SD pricing

  • Message number: 791

  • Message text: Sales doc. type &1 can be assigned a maximum of &2 pricing elements

  • 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 VH791 - Sales doc. type &1 can be assigned a maximum of &2 pricing elements ?

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


    SAP Error Message: VH791

    Text: Sales doc. type &1 can be assigned a maximum of &2 pricing elements


    Cause:

    This error occurs when you try to assign more pricing elements (such as condition types, pricing procedures, or access sequences) to a sales document type than the system allows. Each sales document type in SAP has a predefined limit on the number of pricing elements that can be assigned to it. If you exceed this limit, the system throws the VH791 error.


    Explanation:

    • Sales Document Type: This is the type of sales order or document you are working with (e.g., OR for standard order, RE for returns).
    • Pricing Elements: These are components like condition types or pricing procedures that determine how pricing is calculated in the sales document.
    • The system restricts the number of pricing elements to ensure performance and data consistency.

    Solution:

    1. Check the number of pricing elements assigned:

      • Go to the configuration for the sales document type.
      • Review the pricing elements assigned to this sales document type.
    2. Reduce the number of pricing elements:

      • Remove unnecessary or redundant pricing elements from the sales document type.
      • Consolidate pricing conditions if possible.
    3. Adjust the configuration:

      • If business requirements demand more pricing elements, consider revising the sales document type or creating a new one with a different configuration.
      • Consult with your SAP functional consultant to see if the limit can be adjusted or if a different approach to pricing is needed.
    4. Check SAP Notes and documentation:

      • Sometimes, SAP provides notes or patches if this is a known limitation or bug.
      • Review SAP OSS notes related to pricing and sales document types.

    Related Information:

    • Transaction Codes:

      • VOV8 - Define Sales Document Types
      • V/08 - Sales Document Types (for pricing procedure assignment)
      • V/06 - Pricing Procedure determination
      • VK11 - Maintain Condition Records
    • Tables:

      • TVAK - Sales Document Types
      • TVKP - Pricing Procedures
      • T683 - Pricing Procedure determination
    • SAP Help:

      • SAP Help Portal on Sales and Distribution (SD) Pricing
      • SAP Notes related to pricing procedure limits

    Summary:

    The VH791 error indicates that the sales document type you are working with has reached the maximum allowed number of pricing elements. To resolve this, review and reduce the number of pricing elements assigned or adjust your configuration to meet business needs without exceeding system limits.


    If you need help with specific steps or transaction codes, feel free to ask!

    • 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