Retirement tax questions

Thanks for all the answers above, very informative. I want to ask a follow up question that would complete the answers in this thread:

What if I simply payback the remaining outstanding loan amount by April 15th (as oppose to roll it over)? In that case, will I still receive a 1099-R, and if so, what would be the correct code in box 7? I assume in this case the box 2 taxable amount should be $0.00. 

 

Thanks!