Schedule A (1040) Itemized deductions - State and Local Taxes

When I was entering Itemized deductions, I entered the State Tax which was withheld on  my W2 but when I finished and about to file taxes, the total State tax has changed. So, Should I put the total State Tax in Schedule A line item 5a or should I put what was withheld on my W2 ?