The cost of abatement shall be a lien against the real property upon which the cost was incurred. The lien shall attach to the real property upon the city's payment of all costs of abatement and the filing by the city of an itemized statement of the total cost.