Scotland finished fifth in the ICC T20 Qualifier in the United Arab Emirates, defeating Oman in their fifth-place playoff by five wickets.
The Scots had already qualified for next year's tournament in Australia, as had Oman, before today's match at ICC Academy Ground, Dubai.
Oman made a solid start with the bat, mainly thanks to Khawar Ali.
He scored a solid 43 in 29 balls before eventually offering a catch to Kyle Coetzer off the bowling of Calum MacLeod.
Aqib Ilyas and Mehran Khan then pushed the total up to a very competitive 167-7.
For Scotland, Alasdair Evans took 3 for 36 in his four overs.
Oman had the perfect start in the field, with Scotland captain Coetzer out for a duck after just three deliveries off the bowling of Bilal Khan - Jatinder Singh taking the catch.
When George Munsey fell leg-before-wicket to Aqib Ilyas, Scotland were floundering on 25-2.
However, their middle order steadied the ship, with Matthew Cross hitting a superb unbeaten 61.
Michael Leask's 38 helped to ensure Scotland reached 168-5 with six balls to spare.
The semi-finals take place in Dubai tomorrow.
Ireland are playing the Netherlands, while Papua New Guinea face Namibia.
All six sides have qualified for next year's T20 World Cup, with the seventh edition of the event in Australia from October 18 to November 15.