I have a quick question.

Is a getrag s6s420g from a e39 540i the same as the getrag s6s420g from a e46? I am looking at doing a 6sp swap on my s52 and wanted to be sure I had the right trans. I want to be sure it will bolt up

thanks!!