Jake and the Fatman (1987) : I Guess I'll Have to Change My Plans

A former cop who is now a crime writer commits a clever murder so that he can write a book about it that is likely to become a best seller.