Message type: E = Error
Message class:  HRPAYSV - Messages for HR_DISPLAY_ERROR_LIST SI Reports 
Message number: 031
Message text: Rejected: company number not available
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 HRPAYSV031, which states "Rejected: company number not available," typically occurs in the context of payroll processing within the SAP Human Capital Management (HCM) module. This error indicates that the system is unable to find a valid company number for the employee or the payroll run being processed. Causes: Missing Company Code: The employee's master data may not have a valid company code assigned. Incorrect Configuration: The company code may not be properly configured in the system or may not be linked to the relevant payroll area. Data Inconsistency: There may be inconsistencies in the employee's data, such as missing or incorrect entries in the infotypes related to payroll. Inactive Company Code: The company code may be inactive or not set up for payroll processing. Authorization Issues: The user may not have the necessary authorizations to access the company code. Solutions: Check Employee Master Data: Go to the employee's master data (transaction PA20 or PA30) and
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRPAYSV030 Rejected: administration number not available
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYSV029 Rejected: membership number not available
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRPAYSV032 Other error
What causes this issue?  There is no special error message for this error. The system issues an error message and will not allow you to continue with ...
HRPAYSV036 * Messages/errors for report RPLSVED0
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.