Prime Minister Narendra Modi left for Shanghai on Friday after completing the Beijing leg of his China tour.