Potchefstroom: Dean Elgar playing on 128 while Aiden Markram misses out on century on debut match as South Africa reached 298-1 at stumps on the first day of the first Test against Bangladesh at Senwes Park on Thursday.
Markram was run out three runs short of a century on Test debut after he and Elgar put on 196 for South Africa's first wicket.
Elgar unbeaten on 128 with Hashim Amla on 68, the duo added 102 for second wicket.
Markram, 22, was largely untroubled as he made 97 off 152 balls before a mix-up when both players were approaching their centuries in what proved to be the last over before tea.
Elgar, on 99, played a ball from Mehidy Hasan towards backward point. Markram set off for a run but was sent back and stranded well short of his ground as Mominul Haque's throw reach Hasan. Markram hit 13 boundaries.
Two balls later Elgar reached his ninth Test century off 176 balls with seven fours and two sixes.
South African captain Faf du Plessis said he was "very surprised" when Bangladesh's Mushfiqur Rahim won the toss and decided to bowl.
The left-handed Elgar and right-handed Markram both looked comfortable against a bowling attack which included three seam bowlers and a lone specialist spin bowler in off-spinner Hasan, who came on to bowl after only five overs.
Markram, who captained South Africa to the 2014 Under-19 World Cup title, was Elgar's fourth opening partner of the year and together they posted South Africa's first half-century start in 16 innings before converting it into three figures shortly after lunch.
South Africa fielded a second new cap in all-rounder Andile Phehlukwayo, who together with fast bowler Kagiso Rabada, was a team-mate of Markram in the Under-19 side.