A century from Ryan Rickelton and an all‑round display by Kagiso Rabada gave South Africa a 157‑run advantage over Bangladesh at the Wanderers.