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

Close

How To Fix WS540 - Tax code determination from price determn without net value not possible


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 540

  • Message text: Tax code determination from price determn without net value not possible

  • Show details Hide details
  • What causes this issue?

    You have attempted to determine the tax code from price determination
    although no net value exists for the item.
    Subsequent determination of the net value is not normally possible if
    surcharges or markdowns or other conditions affect the gross value.

    System Response

    INCLUDE ISR_STOP

    How to fix this error?

    Enter the net value of the item. In some cases you can change the gross
    value manually after entering the net value.

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS540 - Tax code determination from price determn without net value not possible ?

    Certainly! Here's a detailed explanation of the SAP error message WS540 - "Tax code determination from price determination without net value not possible":


    Error Message:

    WS540 - Tax code determination from price determination without net value not possible


    Cause:

    This error occurs during pricing or tax code determination in sales documents (e.g., sales orders, billing documents) when the system tries to determine the tax code based on the pricing procedure, but the net value (net price or net amount) is missing or zero.

    More specifically:

    • The system attempts to determine the tax code from the price determination procedure.
    • However, the net value (net price or net amount) is not available or zero.
    • Since tax code determination depends on the net value (to calculate taxes correctly), the system cannot proceed.
    • This situation often arises if the pricing procedure or condition records are incomplete or if the pricing calculation results in zero or missing net values.

    When does it typically occur?

    • During sales order creation or billing document processing.
    • When the pricing procedure is set to determine tax codes based on net values.
    • If the pricing conditions or calculation steps do not produce a net value.
    • If the tax code determination procedure expects a net value but none is provided.

    Solution:

    1. Check Pricing Procedure:

      • Verify the pricing procedure assigned to the sales document type and customer/material.
      • Ensure that the pricing procedure includes the necessary condition types that calculate net values (e.g., PR00 for price).
      • Make sure the pricing procedure is correctly configured to calculate net values before tax code determination.
    2. Check Condition Records:

      • Verify that condition records for pricing (e.g., PR00) exist and are valid for the sales document.
      • Ensure that the pricing conditions do not result in zero or missing net values.
    3. Check Tax Code Determination Procedure:

      • Review the tax code determination procedure in transaction OBQ1 or OVK1.
      • Confirm that the tax code determination is set up correctly and that it can handle the pricing scenario.
      • If tax code determination depends on net values, ensure net values are available.
    4. Check Master Data:

      • Verify customer master data (sales area data) and material master data for correct tax classification.
      • Ensure that the tax classification fields are maintained properly.
    5. Check Pricing and Tax Configuration:

      • In some cases, the system might be configured to determine tax codes from pricing without net values, which is not supported.
      • Adjust the configuration to ensure net values are calculated before tax code determination.
    6. Debugging:

      • If the above checks do not resolve the issue, debugging the pricing and tax code determination logic may be necessary.
      • Use transaction VA02 or VF02 and check the pricing analysis (F8) to see how prices and taxes are determined.

    Additional Information:

    • This error is related to the integration between Pricing and Tax Code Determination in SAP SD (Sales and Distribution).
    • The tax code is essential for tax calculation and reporting; hence, it must be determined correctly.
    • The error message WS540 is a standard SAP message and can be found in message class WS.
    • Sometimes, custom enhancements or user exits in pricing or tax code determination can cause this issue if they do not handle net values properly.

    Summary:

    Aspect Details
    Error Message WS540 - Tax code determination from price determination without net value not possible
    Cause Tax code determination requires net value, but net value is missing or zero
    Solution Ensure pricing procedure calculates net value before tax code determination; check condition records, master data, and configuration
    Related Transactions VA01/VA02 (Sales Order), VF01/VF02 (Billing), OBQ1/OVK1 (Tax code determination)
    Related Configuration Pricing procedure, tax code determination procedure, condition records, master data

    If you need help with specific configuration steps or debugging, please provide more details about your scenario (e.g., document type, pricing procedure, tax code determination setup).

    • 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