Front right abs sensor needs replacing so ive ordered a genuine one,how easy are they to replace,do i need car on the ramp? Big job?

Also another thing the plug that clips into the sensor,broke off. Can the wire be replaced or is it better get a 2nd hand one off another a3 with plug attached and just solder the 2 wires.?

8P A3 2.0 TDI