Message type: E = Error
Message class:  HRPAYTR01 - HR-TR: Message class for payroll (Turkey) 
Message number: 031
Message text: Program has been run for test purposes.!
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 HRPAYTR01031 indicates that the payroll program has been executed in test mode. This means that the payroll calculations were performed, but no actual updates were made to the database. This is typically done to verify the payroll results before running the program in a productive mode.
Cause: The primary cause of this error message is that the payroll program was executed with the test run option enabled. In SAP, this is a common practice to ensure that the payroll calculations are correct before committing any changes to the database.
Solution: To resolve this issue, you need to run the payroll program in the productive mode instead of the test mode. Here are the steps to do this: Access the Payroll Program: Go to the transaction code for payroll processing (e.g., PC00_MXX_CALC for the payroll driver). Check the Parameters: Ensure that the parameters for the payroll run are set correctly. Look for an option that
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYTR01030 Batch input session & created.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYTR01029 Please enter Date.!
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYTR01032 Enter valid date.!
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYTR01033 Date & , is less than given date &.
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.