How To Fix HH059 - Change the 'lock mode' of the specified table in 'row'


SAP Error Message - Details

  • Message type: E = Error

  • Message class: HH - (Long) text for check tool 'infcfgcheck'

  • Message number: 059

  • Message text: Change the 'lock mode' of the specified table in 'row'

  • Show details Hide details
  • What causes this issue?

    The specified table (belonging to 'sapr3') has no 'row-level-locking'.
    This is detrimental to the performance and can provoke update
    terminations for this table. An Informix bug was also found
    for 'page-level-locking'. All the tables belonging to 'sapr3' should
    be used in locking mode 'row'.

    System Response

    How to fix this error?

    Change the locking mode of the specified table, for example with the
    following SQL statement (with 'dbaccess'):
    'alter table <tabname> lock mode (row);'.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message HH059 - Change the 'lock mode' of the specified table in 'row' ?

    The SAP error message HH059, which states "Change the 'lock mode' of the specified table in 'row'," typically occurs in the context of database operations where there is a conflict in the locking mechanism for a specific table. This error is often related to issues with table locking in the SAP system, particularly when multiple processes are trying to access or modify the same data concurrently.

    Cause:

    1. Lock Conflicts: The error usually arises when there is a conflict in the lock modes being used for a table. For example, if one transaction is trying to acquire an exclusive lock while another transaction holds a shared lock, this can lead to a deadlock or a lock conflict.
    2. Database Configuration: The configuration of the database or the specific table's locking settings may not be optimal for the operations being performed.
    3. Long-Running Transactions: If a transaction takes too long to complete, it can hold locks for an extended period, causing other transactions to fail with this error.
    4. Custom Code: Custom ABAP code or enhancements that manipulate database locks improperly can also lead to this error.

    Solution:

    1. Analyze Lock Entries: Use transaction code SM12 to check for existing lock entries. Identify if there are any long-running transactions that are holding locks on the table in question.
    2. Adjust Lock Modes: If possible, adjust the lock modes in your code or configuration. This may involve changing the way locks are acquired in your ABAP programs or modifying the database settings.
    3. Optimize Transactions: Review and optimize long-running transactions to ensure they complete quickly and release locks in a timely manner.
    4. Database Configuration: Consult with your database administrator to review the locking configuration for the database and make necessary adjustments.
    5. Code Review: If the error is related to custom code, review the ABAP code for proper handling of database locks. Ensure that locks are acquired and released appropriately.
    6. SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that may address this specific error or provide guidance on best practices for locking mechanisms.

    Related Information:

    • Transaction Codes: Familiarize yourself with transaction codes like SM12 (to view lock entries), SM21 (to check system logs), and ST22 (to analyze dumps) for troubleshooting.
    • SAP Documentation: Review SAP documentation on database locking mechanisms and best practices for handling locks in ABAP programs.
    • Performance Monitoring: Use tools like ST03N to monitor performance and identify any bottlenecks related to locking.

    If the issue persists after trying the above solutions, it may be beneficial to engage SAP support for further assistance.

    • 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