SAP Message 5R217 - Record cannot be modified.Accounting year is different than previous

Diagnosis
The modification of the date of exercise or the holding period.

System Response
The modification of the record( exercise date or holding period ) hasled to a different accounting year than the accounting year for whichthe record has been accounted. This is not allowed for reporting .

Procedure
Change the year of exercise such that the record is reported in thesame accounting year as earlier