Macbook power adapter issue: PPP003 I'm using Macbook Pro 15" Retina Late 2013. OS is Yosemite Public beta. Once in month I usually do diagnostics (Apple's boot time diagnostics, the when you press "D" ). The last the when I did it, I got PPP003 error code which was something like that: "Battery may not be charged. Try to disconnect MagSafe 2 power adapter ..."

Thing is, it charges well my laptop but both adapter and it's ending are heating. Adapter heating really bad but ending a bit less. 

My question is if I use it like that, can it damage my laptop? Is it important to change adapter immediately or not to change at all?
I have the exact same model and had the same issue. 

Originally, I took the generic troubleshooting steps (reset SMC, unplug let sit, etc.). Didn't work. I then used isopropyl alcohol to clean both the magsafe adapter pins and the magsafe input on the machine. Ran the test again (multiple times) and no error occurred. This was a temporary solution. 

A few weeks later, it occurred again so I opened a case # with Apple and took it into the Apple Store Genius Bar. The machine passed Apple's in-house diagnostics. They swapped out the Magsafe charger with a new one and the issue is yet to re-occur (been ~3 weeks). 

I asked them the same question about the battery and they did not give me an answer (they don't "speculate"). I assume, however, that if it's incorrectly charging the battery for many cycles, the battery would be affected. 

In short, temporary fix = isopropyl alcohol to clean the pins on adapter itself and in MBP. Actual fix = defective charger/hub, both of which covered under Warranty. Go to Apple for definitive diagnosis and receive either new charger or get machine serviced.

Also: it's completely normal for the adapter to get very hot when connected to the machine and charging.