Ratings agency S&P on Friday upgraded Qatar's long-term sovereign credit rating to "AA" from "AA-" thanks to improvements in the government's fiscal position.