The arrangement has at least one sensor (44) fixed with respect to a first body, which is activated by the magnetic field of a magnet (45) with the bodies in the relative position to be detected. At least one field influencing part (47) can move relative to the magnet; their relative position is changed between a non-switching and a switching position by relative movement between the two bodies. In the non-switching position the field influencing part is arranged in the magnetic field, so that the field strength in the vicinity of the sensor is below its actuation threshold. In the switching position the field strength is at least at the activation threshold.