Retirement tax questions

If you received a 1099-R, this may mean the 401K administrator has treated it as a distribution and you must report it as such on your tax return. What code is in box 7?
You should not have received it if you are current on repaying the loan.