IF you have a TK code share flight on KL metal, I guess you could earn *A miles for it, but I'm fairly certain that is not the case, rather you have one itinerary with multiple companies and multiple alliances, so you'll have to split your earnings between different FFPs.