SELECT
  RTRIM(APTYPE) AS aptype,
  RTRIM(APPART) AS appart,
  "APSEQ#" AS "apseq#",
  "APLIN#" AS "aplin#",
  RTRIM(APVEND) AS apvend,
  RTRIM(APODES) AS apodes,
  APBQTY AS apbqty,
  APTIME AS aptime,
  APCOST AS apcost,
  APFCSI AS apfcsi,
  APFCSO AS apfcso,
  APUNCS AS apuncs,
  RTRIM(APDEPT) AS apdept,
  RTRIM(APRESC) AS apresc,
  RTRIM(APFUT1) AS apfut1,
  RTRIM(APFUT2) AS apfut2,
  RTRIM(APFUT3) AS apfut3,
  RTRIM(APFUT4) AS apfut4,
  RTRIM(APFUT5) AS apfut5,
  RTRIM(APFUT6) AS apfut6,
  RTRIM(APFUT7) AS apfut7,
  RTRIM(APFUT8) AS apfut8,
  RTRIM(APFUT9) AS apfut9,
  RTRIM(APFUTA) AS apfuta,
  APFUTB AS apfutb,
  APFUTC AS apfutc,
  APFUTD AS apfutd,
  APFUTE AS apfute,
  RTRIM(APPLNT) AS applnt
FROM LGDAT.METHDO
