Code 4 is used to report that the retirement proceeds are from a death. Code D indicates that the payment is from an annuity from a nonqualified annuity. Only the earnings from these distributions are taxable as the annuity is funded with after-tax dollars.
As long as you enter the information from your 1099-R as provided, you should not be prompted to answer any questions regarding a RMD. I recommend following the steps in this link to get to the 1099-R input section. Select Update to the right of IRA, 401(k), Pension Plan Withdrawals (1099-R) on the applicable 1099-R.
On the screen asking you to enter the 1099-R, be sure to enter the applicable codes under Box 7. There are two boxes where you can enter both of your code options as listed on your 1099-R form.

**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"