Message type: E = Error
Message class:  HRPAYAT_PAYROLL_ST - Message Class for Tax Calculation in ABAP-OO 
Message number: 502
Message text: Check of preconditions
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_PAYROLL_ST502 typically indicates that there is an issue with the preconditions for executing payroll in the SAP HR module. This error can arise due to various reasons, often related to configuration or data issues in the payroll process. Causes: Missing Master Data: Employee master data (such as infotypes) may be incomplete or missing. This includes data like personal information, organizational assignment, and payroll-related infotypes. Incorrect Payroll Configuration: The payroll schema or rules may not be correctly configured, leading to precondition checks failing. Time Evaluation Issues: If time evaluation has not been run or has errors, it can affect payroll processing. Incorrect Payroll Period: The payroll period may not be set correctly, or the payroll run may be attempted outside of the defined period. Authorization Issues: The user may not have the necessary authorizations to execute payroll. Solutions: Check Master Data: Verify that all necessary infotypes for the employee are correctly filled out and complete.
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYAT_PAYROLL_ST501 Check / offset "Sixth Optimization" (EStG sec. 77 para. 4a)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYAT_PAYROLL_ST500 501-549: Offset sixth optimization
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYAT_PAYROLL_ST503 Favored special payment (&) > effective sixth (&), with &
What causes this issue?  In total, with reference to the calendar year, too great a portion of the special payment &V1& was taxed at a favored...
HRPAYAT_PAYROLL_ST504 No check of sixth optimization
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.