Retirement tax questions

A loan from a 401(k) account does not generate a Form 1099-R.  You only would have received the 1099-R if you had a distribution from the 1099-R.

What code is in box 7 of the 1099-R?  Is there an amount entered in box 2a?