Anomalous U(1) symmetry and sparticles