How To Fix /PLMI/PPEENG158 - &1 &2 not unlocked; dependent locks still exist


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /PLMI/PPEENG -

  • Message number: 158

  • Message text: &1 &2 not unlocked; dependent locks still exist

  • 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 /PLMI/PPEENG158 - &1 &2 not unlocked; dependent locks still exist ?

    The SAP error message /PLMI/PPEENG158 &1 &2 not unlocked; dependent locks still exist typically occurs in the context of the SAP Production Planning and Control (PP) module, particularly when dealing with planning objects such as production orders, purchase orders, or other related entities. This error indicates that an attempt was made to unlock a specific object (e.g., a production order) but the unlock operation could not be completed because there are still dependent locks on related objects.

    Cause:

    1. Dependent Locks: The primary cause of this error is that there are other objects that are still locked and are dependent on the object you are trying to unlock. For example, if you are trying to unlock a production order, there may be dependent locks on related components, such as operations, materials, or other linked orders.

    2. Transaction Interruption: If a transaction that was modifying or processing the object was interrupted (e.g., due to a system crash or user cancellation), it may leave locks in place.

    3. Concurrency Issues: Multiple users or processes trying to access or modify the same object can lead to locks being held longer than necessary.

    Solution:

    1. Identify Dependent Locks: Use transaction codes like SM12 (to view and manage locks) to identify which objects are still locked. Look for locks that are related to the object you are trying to unlock.

    2. Release Locks: If you have the necessary authorizations, you can manually release the locks on the dependent objects. Be cautious when doing this, as it may affect other users or processes.

    3. Check for Active Sessions: Ensure that there are no active sessions or transactions that are still using the object. If necessary, communicate with users who may be holding locks.

    4. Wait for Automatic Release: In some cases, locks may be released automatically after a certain period. If the dependent locks are held by a background job or a long-running transaction, you may need to wait for it to complete.

    5. Review Custom Code: If the issue persists, review any custom code or enhancements that may be affecting the locking mechanism. There may be logic that is not properly releasing locks.

    6. Consult SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that may address this specific error message or provide additional troubleshooting steps.

    Related Information:

    • Transaction Codes: Familiarize yourself with transaction codes like SM12 (lock entries), SM21 (system log), and ST22 (dump analysis) for troubleshooting.
    • SAP Documentation: Review SAP documentation related to locking mechanisms in the PP module for a deeper understanding of how locks are managed.
    • User Authorizations: Ensure that users have the appropriate authorizations to unlock objects and manage locks.

    If the problem persists after trying the above solutions, it may be necessary to involve your SAP Basis team or SAP support for further investigation.

    • 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