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

Close

How To Fix VF_PRC_API008 - Error in pricing due to missing document currency.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VF_PRC_API - Messages for Pricing API

  • Message number: 008

  • Message text: Error in pricing due to missing document currency.

  • Show details Hide details
  • What causes this issue?

    An error in pricing occurred due to missing document currency.

    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?

    Make sure that a document currency is available and repeat the
    transaction.

    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 VF_PRC_API008 - Error in pricing due to missing document currency. ?

    The SAP error message:

    VF_PRC_API008: Error in pricing due to missing document currency


    Cause:

    This error occurs during the billing document pricing process when the system cannot determine the currency of the billing document. The pricing procedure requires the document currency to calculate prices, taxes, and totals correctly. If the document currency is missing or not maintained properly in the billing document header or related sales document, the pricing routine fails and triggers this error.

    Common reasons include:

    • The billing document header does not have a currency assigned.
    • The sales document (e.g., sales order or delivery) linked to the billing document is missing currency data.
    • Customizing or user-exits that manipulate currency fields incorrectly.
    • Data inconsistencies or incomplete data transfer between SD and FI modules.

    Solution:

    1. Check Document Currency:

      • Verify that the billing document has a valid currency assigned.
      • Use transaction VF03 to display the billing document and check the currency field.
      • Also, check the sales order or delivery document currency (VA03 for sales order, VL03N for delivery).
    2. Maintain Currency in Sales Document:

      • If the sales document currency is missing, update it correctly.
      • Usually, the currency is derived from the customer master or sales area data.
    3. Review Pricing Procedure and Copying Control:

      • Ensure that the currency is correctly copied from the sales document to the billing document.
      • Check the copying control settings (transaction VTFL for delivery to billing, VTFA for order to billing).
      • Make sure the currency field is included in the copying control.
    4. Check User-Exits or BAdIs:

      • If there are custom enhancements in pricing or billing, verify that they do not clear or fail to set the currency field.
      • Debug the pricing routine to see where the currency is lost.
    5. Recreate or Correct the Billing Document:

      • If the billing document is incomplete or corrupted, consider canceling and recreating it after fixing the currency issue in the source documents.
    6. Currency Exchange Rate:

      • Ensure that exchange rates are maintained if the document currency differs from the company code currency (transaction OB08).

    Related Information:

    • Transaction Codes:

      • VF01: Create Billing Document
      • VF03: Display Billing Document
      • VA03: Display Sales Order
      • VL03N: Display Delivery Document
      • VTFL: Copying Control for Delivery to Billing
      • VTFA: Copying Control for Order to Billing
      • OB08: Maintain Exchange Rates
    • Tables:

      • VBAK: Sales Document Header (currency field: WAERK)
      • VBRK: Billing Document Header (currency field: WAERK)
      • VBFA: Document Flow
    • Notes and SAP Help:

      • Check SAP Notes related to VF_PRC_API008 for any patches or known issues.
      • SAP SD Pricing documentation for understanding currency handling in pricing.

    Summary:

    The error VF_PRC_API008 is caused by missing or incorrect document currency in the billing or related sales documents, which prevents pricing from executing properly. The solution involves verifying and maintaining the currency in the sales and billing documents, checking copying controls, and ensuring no custom code interferes with currency assignment.

    If you need further assistance, please provide the billing document number and the sales document number to analyze the issue in detail.

    • 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