How To Fix RP504 - Start date &1 cannot come before company code change &2!


SAP Error Message - Details

  • Message type: E = Error

  • Message class: RP - Error Messages for Infotype Module Pools

  • Message number: 504

  • Message text: Start date &1 cannot come before company code change &2!

  • Show details Hide details
  • What causes this issue?

    The loan period beginning on &v1& incorporates a company code change to
    &v2& (see Organizational Assignment infotype (0001)).

    System Response

    The system prevents you from creating or changing a loan before &v2&.
    For more information, refer to the display mode.
    Employees with loans that incorporate a company code change are simply
    rejected by payroll.

    How to fix this error?

    In the case of changes between company codes involving legal persons,
    you must decide how the outstanding loan sum is to be handled, and how
    the repayment is to be effected.
    As a rule, you would delimit an existing loan, and repay the
    outstanding amount to the old company code (A). At the same time, you
    would be negotiating a new contract with the new company code (B) for
    the same amount, which would be paid out immediately.
    A new loan should be created immediately after company code change &v2&
    has been completed.
    This ensures the correct account assignment and payment flow.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message RP504 - Start date &1 cannot come before company code change &2! ?

    The SAP error message RP504 "Start date &1 cannot come before company code change &2!" typically occurs in the context of payroll processing or personnel administration when there is an inconsistency between the start date of a certain action (like a payroll run or a personnel action) and the date of a company code change for an employee.

    Cause:

    This error usually arises due to the following reasons:

    1. Date Mismatch: The start date of the payroll run or personnel action is set before the date when the employee's company code was changed. This can happen if the payroll period is incorrectly defined or if the employee's data has been modified without proper adjustments to the payroll dates.
    2. Configuration Issues: There may be issues in the configuration of the payroll or personnel administration settings that do not align with the employee's data.
    3. Data Entry Errors: Manual entry errors when setting up payroll or personnel actions can lead to this mismatch.

    Solution:

    To resolve this error, you can take the following steps:

    1. Check Dates: Verify the start date of the payroll run or personnel action and ensure it is not earlier than the company code change date. Adjust the start date accordingly.

    2. Review Employee Data: Look into the employee's master data to confirm the company code change date. Ensure that all relevant dates are consistent and correctly entered.

    3. Adjust Payroll Period: If the payroll period is incorrectly defined, adjust it to align with the company code change date.

    4. Consult Configuration: If the issue persists, consult with your SAP HR configuration team to ensure that the payroll and personnel administration settings are correctly configured.

    5. Testing: After making adjustments, perform a test run to ensure that the error does not reoccur.

    6. Documentation: Document any changes made for future reference and to assist in troubleshooting similar issues.

    Related Information:

    • Transaction Codes: You may need to use transaction codes like PA30 (Maintain HR Master Data) or PC00_MXX_CALC (Payroll Calculation) to check and adjust employee data and payroll runs.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.
    • User Roles: Ensure that the user has the appropriate roles and authorizations to make changes to payroll and personnel data.

    If the problem continues after following these steps, it may be beneficial to reach out to SAP support or consult with an SAP HR expert 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