Shifting device for a transmission of a motor vehicle, having at least one unsynchronized claw shifting element comprising two shifting parts (16, 18) which can be rotated relative to one another about an axis of rotation and each have shifting teeth (24, 30) and are displaced relative to one another along the axis of rotation between at least one coupling position, in which the shifting teeth (24, 30) engage with one another, as a result of which the shifting parts (16, 18) are connected to one another for conjoint rotation, and at least one decoupling position, in which the shifting teeth (24, 26) are decoupled from one another, as a result of which the shifting parts (16, 18) can be rotated relative to one another about the axis of rotation, wherein the shifting device has: - a detection device by means of which rotational positions, in which at least one of the shifting parts (16, 18) can be rotated about the axis of rotation relative to the other shifting part, can be detected, and - an electronic computing device which is designed to move the shifting parts (16, 18) from the decoupling position to the coupling position depending on the detected rotational positions, wherein the detection device comprises at least one sensor element and at least one transmitter element which is connected for conjoint rotation with one shifting part and can thereby rotate with this one shifting part about the axis of rotation relative to the sensor element and which has transmitter segments which can be detected by means of the sensor element, so that the rotational positions of this one shifting part can be detected by detecting the transmitter segments, characterized in that a number of the transmitter segments corresponds at least to the sum of a number of teeth of the shifting teeth of this one shifting part and a number of gaps in the teeth of the shifting teeth of this one shifting part, wherein the transmitter element has a defect at which a first width of a first gap between two adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element which extends about the axis of rotation is greater than second widths of second gaps between adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element. - a detection device by means of which rotational positions, in which at least one of the shifting parts (16, 18) can be rotated about the axis of rotation relative to the other shifting part, can be detected, and - an electronic computing device which is designed to move the shifting parts (16, 18) from the decoupling position to the coupling position depending on the detected rotational positions, wherein the detection device comprises at least one sensor element and at least one transmitter element which is connected for conjoint rotation with one shifting part and can thereby rotate with this one shifting part about the axis of rotation relative to the sensor element and which has transmitter segments which can be detected by means of the sensor element, so that the rotational positions of this one shifting part can be detected by detecting the transmitter segments, characterized in that a number of the transmitter segments corresponds at least to the sum of a number of teeth of the shifting teeth of this one shifting part and a number of gaps in the teeth of the shifting teeth of this one shifting part, wherein the transmitter element has a defect at which a first width of a first gap between two adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element which extends about the axis of rotation is greater than second widths of second gaps between adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element. wherein the detection device comprises at least one sensor element and at least one transmitter element which is connected for conjoint rotation with one shifting part and can thereby rotate with this one shifting part about the axis of rotation relative to the sensor element and which has transmitter segments which can be detected by means of the sensor element, so that the rotational positions of this one shifting part can be detected by detecting the transmitter segments, characterized in that a number of the transmitter segments corresponds at least to the sum of a number of teeth of the shifting teeth of this one shifting part and a number of gaps in the teeth of the shifting teeth of this one shifting part, wherein the transmitter element has a defect at which a first width of a first gap between two adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element which extends about the axis of rotation is greater than second widths of second gaps between adjacent transmitter segments of the transmitter element extending in the circumferential direction of the transmitter element.