Message type: E = Error
Message class:  HRPAYATLZ - Messages for Payslip Functions 
Message number: 502
Message text: No record selected for update
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 HRPAYATLZ502: No record selected for update typically occurs in the context of payroll processing or when attempting to update payroll-related data in the SAP system. This error indicates that the system did not find any records that meet the criteria for the update operation you are trying to perform. Causes: No Data Available: The most common cause is that there are no records in the database that match the selection criteria specified in your payroll run or update process. Incorrect Selection Criteria: The selection criteria used in the payroll processing (such as personnel number, period, or other parameters) may be incorrect or too restrictive. Data Locking: Another process may be locking the records you are trying to update, preventing your operation from accessing them.
Configuration Issues: There may be configuration issues in the payroll schema or related settings that prevent the records from being selected for update. Timing Issues: The payroll run
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYATLZ501 Data medium number not found or already processed
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYATLZ500 * 500-549: Messages for Status Confirmations
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYATLZ503 Table &1 cannot be locked
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYATLZ504 Status confirmation failed; try again
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.