Retirement tax questions

Don't worry about putting it back in the next year.  After you enter the 1099R it will ask what you did with the money.  Say you rolled it over to another account even if you put it back into the same account.   If there was withholding taken out you needed to replace that with your own money.  Or the withholding becomes a distribution and taxable.