If the immigration rules for SA state that your friend needs a transit visa, then when you are checking in in Beijing, the airline may not allow passage as the fines for airlines carrying illegal passengers are heavy.
What about flights on Kenya Airways via Nairobi. It does mean that you have to fly from Guanghzo (sp?), or on Emirates via Dubai to Nairobi and then connect to MPM.