South Africa, missing several key players, had earlier posted a challenging total of 352 for five in their allotted 50 overs.