He pinch-hit in the seventh inning with the bases loaded and hit into an inning-ending double play.
Ramirez has had issues with his right shoulder before. He missed several games last season after jamming his shoulder while chasing a pop-up into the stands at Wrigley Field.
Ramirez received treatment on his shoulder before Wednesday's game, but took batting practice with his teammates on the field.
Dodgers manager Don Mattingly said he doesn't think the injury will land Ramirez on the 15-day disabled list, but that it's unlikely he'll play in Thursday's day game.
Mattingly could see Ramirez was favoring his shoulder while throwing across the infield during batting practice.
Matt Kemp had AC joint irritation last season and eventually spent time on the DL for the injury. He also underwent arthroscopic surgery on the shoulder last October.
"At this point, it doesn't [concern me], but again, I think it can turn into more," Mattingly said of Ramirez. "We'll have to wait and see. I could tell today he didn't have the same carry. You could see he was moving his shoulder around."
Ramirez entered the game batting .256 with 10 home runs. He was replaced at shortstop by Miguel Rojas. Ramirez, who missed 76 games with thumb and hamstring issues last year, has played in 62 of the Dodgers' 66 games this season.