Thai immigration will have no issues with your plan, as above the airline could refuse you if you do not have a confirmed flight out within 30 days. Emirates and KLM are fussy about that, others will have experiences with Qatar that they can share.
Depending on your point of departure, if you do not have a confirmed travel reservation OUT of Thailand within 30 days you may have issues boarding a flight.