SAP Message AA258 - Depreciation key & cannot be changed. (& depreciation posted)

Diagnosis
You want to change the depreciation key.

System Response
You cannot change a depreciation key in an area in which thedepreciation key has already been used for the automatic entry ofaccumulated depreciation, when depreciation has already been posted.

Procedure
First you have to correct the depreciation already posted using awrite-up. Then you can change the depreciaton key.