@Jovatech Vdash won't be useful for this, as it lacks the needed diagnostic commands for your car. You will need VIDA for this.
You basically disconnect the battery, change the CCM, reconnect the battery, and then connect VIDA and navigate to diagnostics/vehicle communication/CCM/advanced and use the 2. option. Not sure what it's called in english. Something like self adjustment of flap motor/actuator stop.
That's it.
If your old CCM is still communicating, you can clone it Vdash, but as you want to install a used one, the software for it to operate should already be present in the replacement.