Restricting input to a field
I have created a transaction code which is linked to a view. In this view i have a character field, i want the user to enter only data in the date format or a '' in this field. Can you please tell me how will i restrict the user from entering any other data other than '' or data in the date format for this field whenever the transaction is executed. Kindly help.