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

Close

How To Fix W5099 - The BAPI_REQUIREMENT_CREATE can only create the PReq in local currency &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: W5 - Messages for MM-WEB Applications and BAPIs

  • Message number: 099

  • Message text: The BAPI_REQUIREMENT_CREATE can only create the PReq in local currency &

  • Show details Hide details
  • What causes this issue?

    The BAPI_REQUIREMENT_CREATE can only create a purchase requisition in
    the local 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?

    Use the method <LS>CreateFromData</> of the business object
    <LS>PurchaseRequisition</> (BAPI_REQUISITION_CREATE) if you wish to
    invoke this functionality.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message W5099 - The BAPI_REQUIREMENT_CREATE can only create the PReq in local currency & ?

    SAP Error Message:
    W5099The BAPI_REQUIREMENT_CREATE can only create the PReq in local currency &


    Cause:

    The warning message W5099 occurs when you attempt to create a Purchase Requisition (PReq) using the BAPI BAPI_REQUIREMENT_CREATE with a currency other than the local currency of the plant or company code. The standard BAPI BAPI_REQUIREMENT_CREATE is designed to create purchase requisitions only in the local currency of the plant/company code. If you pass a different currency, the system raises this warning.


    Explanation:

    • The BAPI BAPI_REQUIREMENT_CREATE does not support creating purchase requisitions in foreign currencies.
    • The purchase requisition must be created in the local currency defined in the material master or plant/company code settings.
    • This is a standard limitation in many SAP BAPIs related to purchasing documents.

    Solution:

    1. Use Local Currency:
      Ensure that the currency you pass to the BAPI is the local currency of the plant or company code. You can check the local currency in:

      • Company Code (transaction OB22 or OB08 for currency settings)
      • Plant settings or material master data
    2. Currency Conversion:
      If you have a requirement to create purchase requisitions in foreign currency, you need to:

      • Convert the foreign currency amount to the local currency before calling the BAPI.
      • Pass the converted amount and the local currency code to the BAPI.
    3. Alternative Approaches:

      • If your business process requires purchase requisitions in foreign currency, consider using other methods or custom developments.
      • Some customers implement custom BAPIs or enhancements to handle foreign currency scenarios.
      • Alternatively, create the PReq in local currency and handle currency differences in subsequent purchasing documents (e.g., Purchase Orders).

    Related Information:

    • BAPI Documentation:
      Review the SAP standard documentation for BAPI_REQUIREMENT_CREATE to understand its parameters and limitations.

    • Currency Settings:
      Check currency settings in:

      • Company Code (transaction OB22)
      • Exchange rates (transaction OB08)
    • SAP Notes:
      Search for SAP Notes related to BAPI_REQUIREMENT_CREATE and currency handling for any updates or patches.

    • SAP Forums and OSS:
      SAP Community forums and OSS notes may have discussions or solutions if you need to handle foreign currency purchase requisitions.


    Summary:

    Aspect Details
    Cause BAPI_REQUIREMENT_CREATE only supports local currency for PReq creation.
    Effect Warning W5099 is raised if a non-local currency is passed.
    Solution Pass the local currency and convert amounts before calling the BAPI.
    Alternative Use custom developments or handle currency differences in later purchasing documents.

    If you need help with currency conversion logic or sample code to convert and pass local currency amounts to the BAPI, 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