Use the column checkboxes to build your query. Header columns sets/unsets all columns
SELECT MANDT, PERNR, SUBTY, OBJPS, SPRPS, ENDDA, BEGDA, SEQNR, AEDTM, UNAME, HISTO, ITXEX, REFEX, ORDEX, ITBLD, PREAS, FLAG1, FLAG2, FLAG3, FLAG4, RESE1, RESE2, GRPVL, PSPRT, PSISS, PSEXP, VISAN, VSISS, VIEXP, IDNUM, IDISS, IDEXP, DOCT1, DONR1, DOIS1, DOEX1, DOCT2, DONR2, DOIS2, DOEX2, DOCT3, DONR3, DOIS3, DOEX3, DOCT4, DONR4, DOIS4, DOEX4, DOCT5, DONR5, DOIS5, DOEX5, DOCT6, DONR6, DOIS6, DOEX6, DOCT7, DONR7, DOIS7, DOEX7, DOCT8, DONR8, DOIS8, DOEX8, CYETD, EMPLM, EMPLR, EMPDT, ACCEN, LPAPD, LEGNO, KTART, ARFNM, ARSNM, ARTNM, ARLNM, ACDDG, SPECL, JOBNM, COMTY, SPOID, UNDEP, DPLND, CGRAD, SCHUID FROM PB3304