How To Fix HRPAYBR_EFD_MSGS022 - Employer registr.no.must also be 8 (basis CNPJ), 11 (CPF) or 14 (CNPJ).


SAP Error Message - Details

  • Message type: E = Error

  • Message class: HRPAYBR_EFD_MSGS - Message class for eSocial processing errors

  • Message number: 022

  • Message text: Employer registr.no.must also be 8 (basis CNPJ), 11 (CPF) or 14 (CNPJ).

  • Show details Hide details
  • What causes this issue?

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    System Response

    Rejection of the event batch.

    How to fix this error?

    Check whether the employer registration number informed in XML file of
    the event batch is correct.
    If the registration number is correct and the batch is still rejected,
    inform SAP about the problem by opening an incident on component PY-BR.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message HRPAYBR_EFD_MSGS022 - Employer registr.no.must also be 8 (basis CNPJ), 11 (CPF) or 14 (CNPJ). ?

    The SAP error message HRPAYBR_EFD_MSGS022 indicates that there is an issue with the format of the employer registration number (CNPJ or CPF) in the Brazilian payroll system. This error typically arises when the registration number does not meet the expected length or format requirements.

    Cause:

    1. Incorrect Length: The employer registration number must be either:

      • 8 digits for CPF (Cadastro de Pessoas Físicas)
      • 11 digits for CNPJ (Cadastro Nacional da Pessoa Jurídica)
      • 14 digits for CNPJ (for legal entities)

      If the number provided does not match these lengths, the error will occur.

    2. Invalid Characters: The registration number may contain invalid characters (e.g., letters, special characters) instead of just numeric digits.

    3. Missing Data: The employer registration number may not have been entered at all, or it may be missing in the relevant configuration.

    Solution:

    1. Verify the Registration Number: Check the employer registration number entered in the system. Ensure that it is:

      • The correct type (CNPJ or CPF).
      • The correct length (8, 11, or 14 digits).
      • Composed only of numeric characters.
    2. Update the Configuration: If the registration number is incorrect, update it in the relevant configuration settings in SAP. This can typically be done in the following areas:

      • Infotype 0001 (Organizational Assignment): Check the employer's data.
      • Infotype 0006 (Addresses): Ensure the address information is correct and complete.
      • Customizing Settings: If necessary, check the customizing settings for payroll in the SAP system.
    3. Consult Documentation: Refer to SAP documentation or help resources for specific instructions on how to enter and validate employer registration numbers in the Brazilian payroll module.

    4. Testing: After making corrections, perform a test run to ensure that the error no longer appears and that the payroll processing can continue without issues.

    Related Information:

    • SAP Notes: Check for any relevant SAP Notes that may provide additional guidance or fixes related to this error message.
    • Legal Compliance: Ensure that the employer registration number complies with Brazilian tax regulations, as incorrect information can lead to legal issues.
    • User Training: Provide training for users responsible for entering payroll data to minimize the occurrence of such errors in the future.

    If the issue persists after following these steps, it may be necessary to consult with your SAP support team or a technical consultant who specializes in SAP HR and payroll for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant