Thanks for your reply.
Dear customer, this roof problem is your car are quite common.
So, i will give you some advise of what we should check.
In the cabin the roof opening switch above head, check if it lits up when lights on. Took apart and check for loose connection or wires splitted or corroded to correct it.
At the trunk, pressing the boot lid button on when trunk open, you sould hear sound like motor spins on the right for few seconds, if it is not the case or it stops sounding, the cause may be the flap motor. On the parcel shelf break and stop the roof in its track's. there's a plastic worm gear inside which tend wear, these can be replaced.
The third issue is the wiring loom which runs down the n/s tail gate hinge, it has several wires inside which break from constant flexing, these can be repaired as well.
As you can see there are several causes that can cause this problem, but the best way to save money and time is to proceed with a diagnostic scan to rule out where the fault comes from exactly, if it is the wiring or the flap motor for example. In anyway check the wiring first as it is the most common cause.
Have you understood me dear customer?