The procedure is very easy but you'll need INPA working first. Also note early '07 cars have a different pinout requirement on the coding cable.
Before replacing your battery, be sure to identify the exact type and capacity of battery in your car. If it's a 90Ah AGM type, you want to replace it with the same. If it's a 82Ah wet battery, replace it with the same.
The "registration" process only resets the charging routines for a new battery. It will not alter the battery adaptations for a different type of battery.
http://www.e90post.com/forums/showthread.php?t=532315