A transmission (1) comprises a gear input shaft (2), a gear output shaft
(3), several shift elements (7, 8, 9, 10, 11, 12, 13, 19), at least one
planetary gearset (5) and an electrical machine (14). A required gear
ratio can be adjusted as a function of the activation of the shift
elements (7 to 13, 19) and the electrical machine (14). The electrical
machine (14) can be linked to a first shaft (21) of the first planetary
gearset (5) by way of a first shift element (12) and to a second shaft
(18) of the first planetary gearset (5) by way of a second shift element
(13). At least the first shift element (12) or the second shift element
(13) is disposed in the axial direction of the gear input shaft (2)
adjacent to the electrical machine (14).