Retirement tax questions

Code L is a loan treated as a distribution.   Which means it’s taxable.  Ask your employer or 401K plan why you got a 1099R.   You don’t get a 1099R for loans.