Repairing the cabling is a long job but doable if one is careful:
- [Wayback/Archive] Kabelbruch BMW Heckklappe E61 E91 für 5€ reparieren??? – YouTube
- [Wayback/Archive] Beispiel: Montage BMW E61 Touring – SenCom T.Q. – Rep.-Satz Kabelbaum Heckklappe – YouTube
The panorama roof looks a lot harder to me:
–jeroen