SELECT DISTINCT A.SETID , A.LEDGER , B.LEDGER_GROUP , C.CHARTFIELD , L.LANGUAGE_CD , L.LONGNAME FROM PS_LED_DEFN_TBL A , PS_LED_GRP_LED_TBL B , PS_LED_GRP_FLD_TBL C , PSDBFLDLABL_VW D , PSDBFIELD E , PSDBFLDLBLLNG_V L WHERE A.SETID = B.SETID AND A.LEDGER = B.LEDGER AND B.SETID = C.SETID AND B.LEDGER_GROUP = C.LEDGER_GROUP AND A.LEDGER_TYPE = 'D' AND C.CHARTFIELD NOT IN ('BUSINESS_UNIT', 'CURRENCY_CD', 'STATISTICS_CODE', 'DATE_CODE') AND C.CHARTFIELD = D.FIELDNAME AND D.FIELDNAME = E.FIELDNAME AND E.FLDNOTUSED = 0 AND L.FIELDNAME = D.FIELDNAME
|