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, BSTAT, CONAM, TAXIN, TAXAD, OSIBS, POSIF, CURKY, WGT01, AMT01, WGT02, AMT02, WGT03, AMT03, WGT04, AMT04, WGT05, AMT05, WGT06, AMT06, WGT07, AMT07, WGT08, AMT08, WGT09, AMT09, WGT10, AMT10, WGT11, AMT11, WGT12, AMT12, WGT13, AMT13, WGT14, AMT14, WGT15, AMT15, WGT16, AMT16, WGT17, AMT17, WGT18, AMT18, WGT19, AMT19, WGT20, AMT20, WGT21, AMT21, WGT22, AMT22, WGT23, AMT23, WGT24, AMT24, WGT25, AMT25, WGT26, AMT26, WGT27, AMT27, WGT28, AMT28, WGT29, AMT29, WGT30, AMT30, CTTYP FROM PA0938