Any of the online part database sites will give you the other BMW models and production date/build date range that uses the same part. Just enter the last 7 digits of your VIN...then go to the ELECTRONICS diagrams and look for the JBE (junction box electronics). Click on the 11 digit BMW part nbr and it will list all the other BMW models that use the same part...also look at the supplemental info column for the build date range, too. The part database site will also give you other part nbrs that were superseded and let you know if they are retroactively exchangeable or not.
Example using a generic X5 4.8: