The shooting was reported at about 9:15 a.m. in the 3200 block of 17th Street, between Mission and Capp streets, police Officer Albie Esparza said.
The victim, a man in his 20s, was taken to San Francisco General Hospital afterward by a private party, Esparza said. His injuries are not considered life-threatening.
Investigators were at the scene of the shooting late this morning looking for evidence, Esparza said.
The motive has not been determined and no arrests have been made in the case, he said.
Anyone with information about the shooting is encouraged to call the Police Department's anonymous tip line at (415) 575-4444 or send a tip by text message to TIP411.