How To Fix 5M582 - Both the leaving date/key must be either filled out or empty


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 5M - Error Messages for Denmark

  • Message number: 582

  • Message text: Both the leaving date/key must be either filled out 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 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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

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

    The SAP error message 5M582, which states "Both the leaving date/key must be either filled out or empty," typically occurs in the context of personnel administration or employee master data management. This error indicates that there is an inconsistency in the data entry for an employee's leaving date or key. Specifically, it means that either both fields should be filled out or both should be left empty.

    Cause:

    1. Inconsistent Data Entry: The leaving date and leaving key (or reason for leaving) are not both filled in or both left blank. For example, if you have entered a leaving date but have not specified a leaving key, or vice versa, this error will occur.
    2. Data Validation Rules: SAP has built-in validation rules that enforce data integrity. This error is a result of those rules being triggered due to the inconsistent state of the fields.

    Solution:

    To resolve this error, you should ensure that both fields are either filled out or left empty. Here are the steps to do this:

    1. Check the Fields: Go to the relevant transaction (e.g., PA30 for maintaining HR master data) and check the employee record.
    2. Fill Out or Clear Fields:
      • If you have a leaving date, make sure to also enter a corresponding leaving key.
      • If you do not have a leaving date, ensure that the leaving key is also blank.
    3. Save Changes: After making the necessary adjustments, save the changes to the employee record.

    Related Information:

    • Transaction Codes: Common transaction codes related to this error include PA30 (Maintain HR Master Data) and PA40 (Personnel Actions).
    • Documentation: Refer to SAP Help documentation for more details on personnel administration and the specific fields related to employee leaving actions.
    • User Roles: Ensure that you have the appropriate permissions to make changes to employee master data.
    • Testing: After making changes, it’s a good practice to test the changes in a development or test environment before applying them in production.

    If the issue persists after following these steps, it may be beneficial to consult with your SAP HR module administrator or technical support 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker