Both of them. Code D is your 401(k) contribution, and DD is your health insurance covered by the company.
Both if they have amounts. After you enter the enter the first box 12 code and amount you can add another row.