Unseeded Ramkumar Ramanathan pulled off an upset win against top seed Elias Ymer to enter the final round qualifying at Maha Open ATP Challenger.