If you have taken advantage of any AA status benefits such as upgrades or preferred seating, you are explicitly prohibited from crediting to a partner program. At least, that's the way it was for many years. I can't find the relevant section of the T&C right now so either it has changed, or it's really buried.