Message type: E = Error
Message class:  HRPAYAT_PAYROLL_ST - Message Class for Tax Calculation in ABAP-OO 
Message number: 318
Message text: Termination; leaving does not exist in payroll month
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_ST318 indicates that there is an issue related to employee terminations in the payroll processing for a specific month. The message typically means that the system is trying to process a termination for an employee, but it cannot find the relevant termination record for the specified payroll month.
Cause: Missing Termination Record: The termination record for the employee may not have been created or saved correctly in the system. Incorrect Payroll Period: The payroll period being processed may not align with the termination date of the employee. Data Entry Errors: There may be errors in the data entry for the employee's termination, such as incorrect dates or missing information. Payroll
Configuration Issues: There could be configuration issues in the payroll settings that prevent the system from recognizing the termination.
Solution: Check Termination Record: Verify that the termination record for the employee exists in the system. You can do this by checking the infotype
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYAT_PAYROLL_ST317 Termination; no leaving actions in processing
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_ST316 Termination; no leaving action with severance pay
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_ST319 Termination; severance pay amount does not exist
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_ST320 Termination; more than one severance pay in payroll period
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.