Obviously search but check these two threads out:
http://www.xoutpost.com/bmw-sav-foru...trunk-lid.html
http://www.xoutpost.com/bmw-sav-foru...g-problem.html
Check for corroded harness in the handle (due to water), chaffed harness at the top where the lid is hinged before replacing anything.