Use the column checkboxes to build your query. Header columns sets/unsets all columns
SELECT MANDT, PLVAR, OTYPE, OBJID, SUBTY, ISTAT, BEGDA, ENDDA, VARYF, SEQNR, INFTY, OTJID, AEDTM, UNAME, REASN, HISTO, ITXNR, RELCO, RELCOX, PROED, PROEDX, FINEV, FINEVX, WKHRS, WKHRSX, TMHRS, TMHRSX, MWHRS, MWHRSX, MNDTR, MNDTRX, SUBCO, SUBCOX, MODCL, MODCLX FROM HRP1791