I recently bought a BMW 320D E46 (2001) with two doors (passenger side) that are dented beyond repair (i.e. repairing them would be ridiculously expensive). I have the opportunity to buy two replacement doors for very little money (just to be clear: these doors are exactly the same, from the same model in the same color).
While I have some experience working on cars, I've never replaced doors on a car. It looks easy enough (basically: unscrew some bolts, unplug the electronics connecter, then do the same in reverse) but I worry mostly about the electronics. Will the new door be 'recognised' by the central locking mechanism without any trouble (please note that the doors that I have to replace are passenger-side doors, i.e. there is no physical lock in the front door)? Are there any other potential issues that I need to know about?