Use the column checkboxes to build your query. Header columns sets/unsets all columns
SELECT MANDT, DCT_PERNR, DCT_SEQNR, DCT_ROWID, ENDDA, BEGDA, REACD, UPHDA, PERTG, EMPCT, SAIND, SADAT, CTHFD, CTAPP, DISHF, VPERN, DRVAL, INVAL, PLANS, WERKS, BTRTL, PERSG, PERSK, TRFAR, TRFGB, TRFGR, TRFST, HLG01, HAJ01, HLG02, HAJ02, HLG03, HAJ03, HLG04, HAJ04, HLG05, HAJ05, HLG06, HAJ06, HLG07, HAJ07, HLG08, HAJ08, HLG09, HAJ09, HLG10, HAJ10, HLG11, HAJ11, HLG12, HAJ12, HLG13, HAJ13, HLG14, HAJ14, HLG15, HAJ15, HLG16, HAJ16, HLG17, HAJ17, HLG18, HAJ18, HLG19, HAJ19, HLG20, HAJ20, NLG01, NAJ01, NLG02, NAJ02, NLG03, NAJ03, NLG04, NAJ04, NLG05, NAJ05, NLG06, NAJ06, NLG07, NAJ07, NLG08, NAJ08, NLG09, NAJ09, NLG10, NAJ10, NLG11, NAJ11, NLG12, NAJ12, NLG13, NAJ13, NLG14, NAJ14, NLG15, NAJ15, NLG16, NAJ16, NLG17, NAJ17, NLG18, NAJ18, NLG19, NAJ19, NLG20, NAJ20, WAERS FROM P2UN_QHDA