Excess deferral 401k

Hello,

 

My husband worked 2 jobs and contributed an excess of $5000 to his 401K. He withdrew the $5000 contribution but had about $1000 earnings also withdrawn. 

how would I file that in TurboTax this year? I’ve been seeing conflicting information. I created a substitute 1099-r since fidelity won’t send us one until next year. 

do I just report the excess contribution ($5000) in box 1 and 2a? And then report the $1000 next year? TurboTax is saying I can’t use codes P and 8 for box 7 for my 1099 this year.