Computer Replacement on 2004 BMW 545i

Is it possible to replace the onboard computer? I've been told that it needs to be replaced. It's in the trunk. My question is; Can it be replaced with a used unit and what ar the steps to do so?

Asked by for the 2004 BMW 545i