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

Close

How To Fix VH795 - You cannot use sales document type &1


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VH - SD pricing

  • Message number: 795

  • Message text: You cannot use sales document type &1

  • Show details Hide details
  • What causes this issue?

    You can only use sales document types that use overview screen 4900.
    The assignment of predefined price elements has no effect on any other
    sales document types.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VH795 - You cannot use sales document type &1 ?

    SAP Error Message:
    VH795 – "You cannot use sales document type &1"


    Cause:

    This error occurs when you try to use a sales document type that is not allowed or not configured for the particular business process or organizational unit you are working with. Common reasons include:

    • The sales document type is not assigned or allowed for the sales area (Sales Organization, Distribution Channel, Division).
    • The sales document type is not maintained or activated in the system.
    • The sales document type is restricted for the particular transaction or scenario.
    • Customizing settings in SD (Sales and Distribution) do not permit the use of this sales document type in the current context.

    Solution:

    To resolve the VH795 error, follow these steps:

    1. Check Sales Document Type Configuration:

      • Go to SPRO ? Sales and Distribution ? Sales ? Sales Documents ? Sales Document Header ? Define Sales Document Types.
      • Verify that the sales document type you are trying to use is correctly defined and active.
    2. Check Sales Area Assignment:

      • Ensure that the sales document type is allowed for the sales area you are working with.
      • Go to SPRO ? Sales and Distribution ? Sales ? Sales Documents ? Sales Document Header ? Assign Sales Document Types to Sales Areas.
      • Assign the sales document type to the relevant sales organization, distribution channel, and division.
    3. Check Transaction or Scenario Restrictions:

      • Some sales document types are restricted to certain processes (e.g., quotations, orders, deliveries).
      • Verify if the document type is valid for the transaction you are trying to perform.
    4. Check User Input:

      • Confirm that the sales document type entered is correct and valid.
      • Sometimes a typo or incorrect document type code causes this error.
    5. Check Customizing for Document Flow or Partner Functions:

      • In some cases, the error may be related to partner functions or document flow settings that restrict the use of certain document types.

    Related Information:

    • Transaction Codes:

      • VA01 – Create Sales Order
      • VA02 – Change Sales Order
      • VA03 – Display Sales Order
      • SPRO – Customizing Implementation Guide
    • SAP Notes:

      • Check SAP Notes for any known issues related to sales document types and error VH795.
    • Tables:

      • TVAK – Sales Document Types
      • TVTWT – Sales Document Type Texts
      • TVAKT – Sales Document Type Assignment to Sales Areas

    Summary:

    The error VH795 indicates that the sales document type you are trying to use is not permitted in the current context. Verify the configuration and assignment of the sales document type to the sales area and ensure it is valid for the transaction you want to perform. Correcting the customizing settings or using a valid sales document type will resolve the issue.

    • 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