How To Fix HRPAY99CALC698 - RGDIR already contains an entry with the same logical key


SAP Error Message - Details

  • Message type: E = Error

  • Message class: HRPAY99CALC - Error Messages from International Payroll

  • Message number: 698

  • Message text: RGDIR already contains an entry with the same logical key

  • Show details Hide details
  • What causes this issue?

    The payroll result directory (RGDIR) is to be extended by one entry. In
    this case, the system checks whether the directory already contains an
    entry with the same information for the for-period and in-period, that
    is, the same logical key. This is the case for this personnel number.

    System Response

    Since the logical key for a payroll result must be unique, the system
    rejects the personnel number during the payroll run.

    How to fix this error?

    Contact the SAP Hotline.

    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 HRPAY99CALC698 - RGDIR already contains an entry with the same logical key ?

    The SAP error message HRPAY99CALC698 indicates that there is an attempt to insert a record into a table (in this case, the RGDIR table) that already contains an entry with the same logical key. This typically occurs during payroll processing or when updating employee data in the Human Resources (HR) module.

    Cause:

    1. Duplicate Entries: The most common cause of this error is that there is already an existing entry in the RGDIR table for the same employee and period. This can happen if payroll has already been processed for that employee for the specified period.
    2. Incorrect Data Entry: There may be an issue with the data being processed, such as incorrect or duplicate data being entered into the system.
    3. Custom Enhancements: If there are custom programs or enhancements that manipulate payroll data, they might inadvertently create duplicate entries.

    Solution:

    1. Check Existing Entries:

      • Use transaction codes like SE16 or SE11 to view the RGDIR table and check for existing entries for the employee and period in question.
      • If you find a duplicate entry, you may need to determine if it is valid or if it can be deleted or modified.
    2. Review Payroll Processing:

      • Ensure that payroll has not been processed multiple times for the same period for the same employee.
      • If payroll has been processed, you may need to reverse or adjust the payroll run before attempting to reprocess.
    3. Data Validation:

      • Validate the data being entered to ensure that it does not contain duplicates. This may involve checking the input data for errors or inconsistencies.
    4. Custom Code Review:

      • If there are custom programs or enhancements, review the code to ensure that it is not causing duplicate entries to be created.
    5. Consult Documentation:

      • Check SAP Notes or documentation related to this error message for any specific guidance or patches that may address the issue.
    6. Contact SAP Support:

      • If the issue persists and you cannot identify the cause, consider reaching out to SAP support for assistance.

    Related Information:

    • RGDIR Table: This table is part of the payroll data structure in SAP HR and is used to store payroll results.
    • Logical Key: The logical key typically consists of fields that uniquely identify a record in the RGDIR table, such as employee number and payroll period.
    • Transaction Codes: Familiarize yourself with relevant transaction codes like PA30 (Maintain HR Master Data), PC00_MXX_CALC (Payroll Processing), and SE16 (Data Browser) for troubleshooting.

    By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.

    • 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