We prove that generalized free products of certain abelian subgroup separable groups are abelian subgroup separable.Applying this,we show that tree products of polycyclic-by-finite groups,amalgamating central subgroups or retracts are abelian subgroup separable.