The term LSE means Lump Sum Election. This is calculated from Form 1040 Worksheet 1, linked (press F9) from line 20b of Form 1040.
The term D stands for Married filing separately and did not live with the spouse. This is calculated from the Filing Status section of the Main Information Sheet.
This applies to all years of the UltimateTax software.