Afghanistan confirms a spot in the Champions Trophy, while South Africa secures second place and a quarterfinal matchup with Australia.…