To setup the characters limit on the catalog item variable you need to open that variable record and in the Variable attributes you have to put max_length=<No. of characters you wish to restrict>.
For Ex: max_length=5 to allow only 5 characters in the input field.