Before replacing your compressor first replace the aux fan resistor (it's a ceramic resistor out on the frontside of your aux fan - you have to remove the front grills to access it) that's an extremely common E34 problem. Next have your AC system completely evacuated and recharged.
check out
www.realoem.com - enter your info and check out the diagrams