You can find a checklist of practical matters, you need to look into before leaving at the website: lifeindenmark.dk.
We also recommend to contact the secretary from your Department or your supervisor/contact person in order to determine, if there are anything, you need to do before leaving SDU.