Here's my experience.
The ori battery for my e92(Cbu by AB) lasted about 2.5 yrs. then it went dead at home. So i called AAM to replace with their own maintenance free battery. Cost rm460. Then, after about 1.25 yrs (3 wks ago ), i smelt something funny inside my car. After further inspection, i found that the battery has leaked the acid. I called them again to replace with same battery...too bad the the warranty period was gone. So i paid for another rm460. One thing i noticed, after the old battery was removed, it was still hot. Not taking any chances, i send my car to AB to check possibility of wiring problem etc. lucky nothing. Have to re-program.
Anyway, it is recommended to re-program after u replace battery.
Battery from bmw cost rm1200-1800 but lasted 4-5 yrs. my previous car lasted 4 yrs.