Andrew Shaw, 50, a Detective Constable based at Wakefield District, is alleged to have committed the offence on June 6 2021.
The alleged incident took place off duty and the alleged victim is a person known to Det Cons Shaw.
West Yorkshire Police said Det Cons Shaw was suspended from duty at the start of the investigation.
He is due to appear before Bradford Magistrates’ Court on December 10.
Support the YEP and become a subscriber today. Enjoy unlimited access to local news and the latest on Leeds United, With a digital subscription, you see fewer ads, enjoy faster load times, and get access to exclusive newsletters and content. Click here to subscribe.