Enables the transfer of a solute or solutes from one side of a membrane to the other according to the reaction: ATP + H2O + glycerol-3-phosphate(out) = ADP + phosphate + glycerol-3-phosphate(in).
glycerol phosphate-importing ATPase activity