The Laughing Policeman (1973)
The Laughing Policeman (1973) is an American police procedural film loosely based on the novel The Laughing Policeman by Sjöwall and Wahlöö. The setting of the story is transplanted from Stockholm to San Francisco. It was directed by Stuart Rosenberg and features Walter Matthau as Detective Jake Martin (the literary Martin Beck).
More at Wikipedia.