How to transfer shares to demat account

What is the correct procedure to transfer shares into a demat account?,