AFAIK, If your work falls under the Wages Board Ordinance, then your employer is legally bound to give you a service letter whatever is your reason to resign. But if your work falls under the Shop and Office Employees Act, no, then the employer is not bound to provide you with a service letter.