We describe an iterative technique to solve a synthesis problem concerning the antenna arrays. The problem consists in determining a set of array excitations such that the corresponding far-field pattern belongs to a prescribed mask, while the electric field is zero in prescribed points located in the near-field zone. Some numerical results are illustrated.