If any person stay out of qatar without informing immigration before he/she leave then his/her RP will be automatically cancelled. It is same that whether he cancelled before or automatically cancelled later on. He can come back to same company anytime if new visa will be issued in same company and to come another company need NOC from the sponsor. If no NOC then must complete 2 years out of the country.