You use the .maxSize attribute to determine the maximum input length of a screen field:
The following code determines the maximum input length of the vbcom-kunde field:
<p> Please enter your customer number
<input
type=text
name="vbcom-kunde"
maxSize=`vbcom-kunde.maxSize`>
</p>