As above, the shelf being up would illuminate the light on the switch. However, I have had a case where the shelf switch wiring was faulty and no lights illuminated.
You need to check that the roof module is getting power and communicating. Easiest way to do this is to pull fuse no 12 and check it. Then if the fuse is ok, turn the ignition to position 2, wait a couple of seconds and then put the fuse back in whilst watching the leds on the roof button switch. If the module is powering up and coming online to the canbus network, the red led will come on for half a second or so. If that's ok, then try it again as sometimes the system loses track of the position of the roof and latching motor in relation to each other in which case the roof module shuts down as a failsafe.
If that didn't work, but you did get the momentary led when inserting the fuse, I would then pull and check fuse no 31 which supplies the latching motor.
After checking the switch and fuse as above, further investigation really needs a diagnostic check as a starting point otherwise you end up stabbing in the dark.
Mike