The Los Angeles Dodgers may again be without Hanley Ramirez for a while.

Ramirez hurt his left hamstring while running the bases Friday night in San Francisco. He was attempting to go from first to third on a single by A.J. Ellis. He appeared to slow down between second and third, and was thrown out by Giants right fielder Hunter Pence.

Ramirez came up holding the back of his leg above the knee after sliding. He was helped off the field by Dodgers personnel. He did not return to the game.

The Dodgers later confirmed the injury.

"It sounds like he got it pretty good," Dodgers manager Don Mattingly said. "It's usually a pretty good amount of time. It's not like he's going to be back in a couple days."

Ramirez was activated from the disabled list Monday after missing almost a month because of a thumb injury he suffered during the World Baseball Classic final. That injury also occurred in San Francisco, just feet away from where he was hurt Friday.

LA was already without first baseman Adrian Gonzalez, who was scratched because of neck pain. He collided with an umpire on Wednesday.

The Dodgers lost the game, 2-1, on a walkoff home run by Buster Posey in the bottom of the ninth.