How To Fix /PRA/OM021 - Document &1 is locked by user &2.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /PRA/OM -

  • Message number: 021

  • Message text: Document &1 is locked by user &2.

  • 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 /PRA/OM021 - Document &1 is locked by user &2. ?

    The SAP error message /PRA/OM021 Document &1 is locked by user &2 indicates that a specific document (identified by &1) is currently locked by another user (identified by &2). This typically occurs when a user is editing or processing a document, preventing other users from making changes to it simultaneously to avoid data inconsistencies.

    Causes:

    1. Concurrent Access: Another user is currently editing or processing the document.
    2. Session Timeout: A previous session may not have released the lock due to a timeout or an unexpected termination.
    3. System Errors: Sometimes, system errors or crashes can leave a document in a locked state.
    4. Long-running Transactions: If a transaction takes too long to complete, it may hold the lock longer than expected.

    Solutions:

    1. Wait and Retry: The simplest solution is to wait for the other user to finish their work and then try again.
    2. Identify the User: If you have the necessary permissions, you can check who is locking the document using transaction SM12 (Lock Entries). You can search for the document lock and see the user holding it.
    3. Contact the User: If possible, contact the user who is locking the document to see if they can release it.
    4. Release the Lock: If the user is no longer active or if the lock is stale (e.g., due to a session crash), an administrator can manually release the lock using transaction SM12. However, this should be done with caution to avoid data loss or corruption.
    5. Check for Background Jobs: Sometimes, background jobs may hold locks. Check if any background processes are running that might be locking the document.
    6. Review System Logs: If the issue persists, review system logs for any errors or warnings that might indicate underlying issues.

    Related Information:

    • Transaction Codes:
      • SM12: To view and manage lock entries.
      • SM21: To check system logs for errors.
      • SM37: To monitor background jobs.
    • User Training: Ensure that users are trained on how to properly release documents and avoid leaving them locked unnecessarily.
    • System Configuration: Review system settings related to locking mechanisms to ensure they are configured appropriately for your business processes.

    If the problem continues to occur frequently, it may be worth investigating the business processes in place to see if they can be optimized to reduce locking conflicts.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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