Check out the fault library here
http://www.vagpro.co.uk/fault-library/#A4-Fault-Library
Depending how the hood behaves that should provide some steer to the issue. On my 2007 it turned out to be the brushes on my hood motor, which Khurrum (Vagpro) fixed under 15 minutes at a very reasonable cost and appears to be the most common fault.
You can also run the hood through a manual opening/closing sequence as per manual, which some have had limited success with resetting sensors.
Can't comment on fault codes, others may have a better idea.than