SAP Message RP504 - Start date &1 cannot come before company code change &2!

Diagnosis
The loan period beginning on &v1& incorporates a company code change toV2 (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 simplyrejected by payroll.

Procedure
In the case of changes between company codes involving legal persons,you must decide how the outstanding loan sum is to be handled, and howthe repayment is to be effected.
As a rule, you would delimit an existing loan, and repay theoutstanding amount to the old company code (A). At the same time, youwould be negotiating a new contract with the new company code (B) forthe 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.