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, PY_SEQNR, MOLGA, ABKRS, WAERS, FPPER, PAYTY, PAYID, PAY_DATE, ZZTEL0164B, ZZTEL0168B, ZZTEL0172B, ZZTEL0176B, ZZTEL0180B, ZZTEL0184B, ZZTEL0188B, ZZTEL0192B, ZZTEL0196B, ZZTEL0200B, ZZTEL0208B, ZZTEL0212B, ZZTEL0216B, ZZTEL0224B, ZZTEL0228B, ZZTEL0232B, ZZTEL0236B, ZZTEL0240B, ZZTEL0244B FROM PA9997