SELECT A.FIELDNAME ,C.LONGNAME FROM PSDBFIELD A , PS_FS_CF_TEMPLATE B , PSDBFLDLABL_VW C WHERE A.FIELDNAME=B.FIELDNAME AND A.FIELDNAME=C.FIELDNAME AND B.CF_TYPE IN ('F', 'P') AND A.FLDNOTUSED = 0 AND B.FIELDNAME NOT IN ('BUSINESS_UNIT_PC', 'ACTIVITY_ID', 'RESOURCE_CATEGORY', 'RESOURCE_SUB_CAT', 'RESOURCE_TYPE', 'PROJECT_ID') UNION SELECT A2.FIELDNAME ,C2.LONGNAME FROM PSDBFIELD A2 , PSDBFLDLABL_VW C2 WHERE A2.FIELDNAME=C2.FIELDNAME AND A2.FLDNOTUSED = 0 AND A2.FIELDNAME IN ('GL_ADJUST_TYPE', 'SCENARIO', 'BOOK_CODE', 'STATISTICS_CODE')
|