How To Fix 5M581 - Both the hiring date/key must be either filled or empty


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 5M - Error Messages for Denmark

  • Message number: 581

  • Message text: Both the hiring date/key must be either filled or empty

  • Show details Hide details
  • What causes this issue?

    You have only filled out one of the fields 'Hiring Date' and 'Hiring
    Key'. However, you must fill out both of the fields .

    System Response

    Processing is interrupted until the error has been corrected.

    How to fix this error?

    Fill out both fields or leave both fields empty.

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 5M581 - Both the hiring date/key must be either filled or empty ?

    The SAP error message 5M581, which states "Both the hiring date/key must be either filled or empty," typically occurs in the context of personnel administration when there is an inconsistency in the hiring date or hiring key fields in the employee master data.

    Cause:

    This error arises when there is a mismatch in the input data for the hiring date and the hiring key. Specifically, it occurs when:

    • The hiring date is filled in, but the hiring key is left empty.
    • The hiring key is filled in, but the hiring date is left empty.

    In SAP, both fields are expected to be either populated or left blank. This is a validation rule to ensure data integrity.

    Solution:

    To resolve this error, you should:

    1. Check the Employee Master Data: Go to the employee's master data record (usually in transaction PA30 or PA40) and verify the fields related to hiring date and hiring key.
    2. Ensure Consistency: Make sure that if you have entered a hiring date, you also enter a corresponding hiring key. Conversely, if you have not entered a hiring date, ensure that the hiring key is also left blank.
    3. Correct the Data: Update the fields accordingly to ensure that both fields are either filled or empty.
    4. Save Changes: After making the necessary adjustments, save the changes and try to process the action again.

    Related Information:

    • Transaction Codes: Common transaction codes related to personnel administration include PA30 (Maintain HR Master Data), PA40 (Personnel Actions), and PA20 (Display HR Master Data).
    • Field Definitions:
      • Hiring Date: The date on which the employee is officially hired.
      • Hiring Key: A key that may be used to identify the hiring process or type.
    • SAP Notes: If the issue persists or if you encounter additional complexities, consider checking SAP Notes or consulting with your SAP support team for further assistance.

    By ensuring that both fields are consistently filled or left empty, you should be able to resolve the error and proceed with your personnel administration tasks.

    • 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