If your actual contributions exceeded the maximum allowed contribution, you should enter the maximum contribution. The program allows you to enter the actual amount during the initial interview, but it will flag it as over the maximum during the error review and force you to reduce the amount on Schedule O.
Here is a sample of the error you will get when you enter more than the maximum -
"TP 529 Contrib Amount-1 must be reduced. The total contribution cannot be more than $14000.00 per beneficiary. The taxpayer's contribution of $20000.00 exceeds $14000.00"