There are places to enter 2 codes in box 7, one under the other. Put one code in each box. It does not matter which code goes in which box.
Code 4D indicates an inherited non-qualified annuity.