Message type: E = Error
Message class:  HRPAYAT_MBGM - Messages for mBGM Functionality 
Message number: 031
Message text: Table &1 is locked by user &2
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.
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.
The SAP error message HRPAYAT_MBGM031 indicates that a specific table (denoted as &1) is locked by a user (denoted as &2). This typically occurs in the context of payroll processing or other HR-related transactions where data integrity is crucial, and concurrent access to certain tables is restricted to prevent data inconsistencies.
Cause: Concurrent Access: The table is being accessed by another user or process, which has placed a lock on it. This is common in payroll processing where multiple users may be trying to access or modify the same data simultaneously. Long-running Transactions: If a user has initiated a long-running transaction that has not yet completed, it may hold a lock on the table. System Errors: Occasionally, system errors or crashes can leave locks in place that need to be cleared.
Solution: Wait and Retry: If the lock is temporary, waiting for a few moments and then retrying the operation may resolve the issue. Identify the Locking
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYAT_MBGM022 Status for mBGM on &1 : &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYAT_MBGM021 Status for &1 mBGMs &2 set, &3 errors
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYAT_MBGM032 Table &1 is locked by user &2 for personnel number &3.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYAT_MBGM033 Internal error from enqueue server with user &1 for PerNo &2.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.