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

Close

How To Fix WRF_PRC_BAS100 - Purchase order &1 is already locked


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WRF_PRC_BAS - General Purchasing, Seasonal Procurement Messages

  • Message number: 100

  • Message text: Purchase order &1 is already locked

  • 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 WRF_PRC_BAS100 - Purchase order &1 is already locked ?

    The SAP error message:

    WRF_PRC_BAS100 Purchase order &1 is already locked

    Cause:

    This error occurs when a user or process tries to access or modify a Purchase Order (PO) that is currently locked by another user or process. SAP uses locking mechanisms to prevent data inconsistencies when multiple users or processes attempt to change the same document simultaneously. The lock ensures that only one user/process can edit the PO at a time.

    Common scenarios causing this error:

    • Another user is currently editing the same Purchase Order.
    • A background job or workflow is processing the PO.
    • A previous session did not release the lock properly (e.g., due to a session timeout or crash).
    • A program or custom code is holding the lock longer than expected.

    Solution:

    1. Check who holds the lock:

      • Use transaction SM12 (Lock Entries) to check if the PO is locked.
      • Enter the object type (e.g., EKKO for Purchase Order header) and the PO number.
      • Identify the user/session holding the lock.
    2. Contact the user holding the lock:

      • If another user is editing the PO, ask them to save and exit to release the lock.
    3. If the lock is stale or orphaned:

      • If the lock is held by a session that is no longer active (e.g., user logged off improperly), you can delete the lock entry in SM12.
      • Be cautious when deleting locks to avoid data inconsistencies.
    4. Check background jobs or workflows:

      • Verify if any background job or workflow is processing the PO.
      • Wait for the job to complete or investigate if it is stuck.
    5. Review custom code or enhancements:

      • If the error occurs during a custom program or enhancement, check if the lock is being handled properly.
      • Ensure locks are released timely.
    6. General advice:

      • Avoid long editing sessions on POs.
      • Educate users to save and exit promptly.
      • Monitor locks regularly if this issue is frequent.

    Related Information:

    • Transaction SM12: Display and manage lock entries.
    • Lock object for Purchase Order: EKKO (header), EKPO (item).
    • SAP Note: Check for any SAP Notes related to locking issues in your SAP version.
    • Lock Mechanism: SAP uses enqueue/dequeue function modules to manage locks.
    • Debugging: If needed, debug the enqueue/dequeue calls in custom code.

    Summary:

    Aspect Details
    Cause PO is locked by another user/process
    Solution Check and release lock via SM12; coordinate with users; check jobs/workflows; fix custom code
    Transaction SM12 (Lock Entries)
    Lock Object EKKO (PO header)

    If you need further help, please provide details such as the transaction or program where the error occurs, and the SAP system version.

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant