Retirement tax questions

Actually the contribution for 2020 was made in February and withdrawal was in April, both in 2021. Since I hadn't filed my 2020 return, I was able to report it correctly on my 2020 return. What was reported in 2021 includes BOTH this withdrawal and the required minimum distribution for 2021. The distribution code in box 7 is "7." Thank you for your reponse.