Hashim Amla struck a 79-ball century as the touring South Africans beat a Sri Lanka Cricket Board President's XI by 108 runs in a one-day warm-up game in Moratuwa.
Amla hit 104 in 79 balls before retiring as the South Africans posted a score of 297 for nine.
JP Duminy (54), AB de Villiers (41) and Faf du Plessis (41) also benefited from time at the crease although Jacques Kallis was withdrawn from the game due to a sore back.
The bowlers then impressed against a strong Board XI line-up which included nine players with international experience.
The home team mustered just 189 in 39.2 overs with half-centuries for Dinesh Chandimal (50) and Suraj Randiv (53), who had earlier taken four wickets, the highlights.
Morne Morkel took three for 29, Dale Steyn returned one for 24, Vernon Philander one for 20, Ryan McLaren one for 33, Wayne Parnell two for 15 and Aaron Phangiso two for nine.
"It was nice to pick up some batting time," Amla said after the match.
"Most of us (batsmen) that got in managed to spend some time at the crease. That is what warm-up games are about."
The first of three One-Day Internationals between South Africa and Sri Lanka is in Colombo on 6th July.
© Cricket World 2014