The invention relates to a locking device for doors, compartments, and flaps. The stator is equipped with a battery-operated motor and an electronic control unit which acts on the motor. A handle (