A lot of long haul jobs require an ATPL so the relief pilot can be in command when the captain is in the bunk. He was presumably type rated on his CPL so legal in that sense. But he clearly misrepresented his qualifications and as such has rightly resigned. Quite what loss SAA have incurred by employing him for twenty years and they wish to recover is on the other hand unclear.