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

Close

How To Fix WOD1021 - Purchase order &2 is currently locked by user &1


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WOD1 - Messages for Function Group WOD1

  • Message number: 021

  • Message text: Purchase order &2 is currently locked by user &1

  • 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 WOD1021 - Purchase order &2 is currently locked by user &1 ?

    Certainly! Here's a detailed explanation for the SAP error message WOD1021: "Purchase order &2 is currently locked by user &1":


    Error Message

    WOD1021: Purchase order &2 is currently locked by user &1

    • &2 = Purchase order number
    • &1 = User ID who currently holds the lock

    Cause

    This error occurs because the purchase order you are trying to access or modify is currently locked by another user. SAP uses a lock mechanism to prevent multiple users from editing the same document simultaneously, which could lead to data inconsistencies.

    • The lock is set when a user opens the purchase order for editing.
    • Until the user saves or exits the transaction, the lock remains active.
    • If the user has the document open in edit mode or the session is still active, other users cannot make changes.

    Solution

    1. Check who holds the lock:

      • The message shows the user ID (&1) who currently has the lock.
      • Contact that user to check if they are still working on the purchase order.
    2. Wait or ask the user to release the lock:

      • The user holding the lock should save and exit the transaction to release the lock.
      • If the user is inactive or has left the session open, ask them to log off or close the transaction.
    3. Manually remove the lock (if necessary and authorized):

      • If the user is not available or the lock is orphaned (e.g., due to a system crash or session timeout), a system administrator can remove the lock.
      • Use transaction SM12 (Lock Entries) to find and delete the lock entry for the purchase order.
        • Enter the purchase order number or user ID to filter.
        • Select the lock entry and delete it.
      • Warning: Deleting locks manually should be done carefully to avoid data inconsistencies.
    4. Check for system issues:

      • Sometimes locks remain due to system errors or network issues.
      • Ensure that the SAP system is running properly and users are logging off correctly.

    Related Information

    • Transaction SM12: Used to display and delete lock entries.
    • Lock Mechanism in SAP: SAP uses enqueue locks to ensure data consistency during updates.
    • Common scenarios causing locks:
      • User opened PO in change mode but did not save or exit.
      • User session disconnected unexpectedly.
      • Background jobs or batch processes holding locks.
    • Best practices:
      • Always save and exit transactions properly.
      • Avoid multiple users working on the same document simultaneously.
      • Regularly monitor and clear stale locks if necessary.

    If you need further assistance, please provide details such as the transaction code used, user environment, or system logs.

    • 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