Ruturaj Gaikwad scripted a memorable innings to guide India A to a thrilling five-wicket victory in the first unofficial ODI against South Africa A at the Niranjan Shah Stadium in Rajkot.