SELECT A.RECNAME , A.FIELDNAME , C.LANGUAGE_CD , C.SHORTNAME , C.LONGNAME FROM PSRECFIELD A , PSDBFIELD B , PSDBFLDLABLLANG C , PSDBFLDLABL D WHERE A.FIELDNAME = B.FIELDNAME AND B.FIELDNAME = C.FIELDNAME AND D.FIELDNAME = C.FIELDNAME AND D.LABEL_ID = C.LABEL_ID AND A.RECNAME = 'RF_INST_PROD' AND ((D.DEFAULT_LABEL = 0 AND D.FIELDNAME = 'INSTALLED_DATE' AND D.LABEL_ID = 'PURCHASE_DATE') OR (D.DEFAULT_LABEL = 1 AND D.FIELDNAME <> 'INSTALLED_DATE') AND A.FIELDNAME NOT IN ('SETID', 'INST_PROD_ID', 'BO_ID_CUST', 'ROLE_TYPE_ID_CUST', 'BO_ID_CONTACT', 'ROLE_TYPE_ID_CNTCT', 'PRODUCT_ID', 'INST_PROD_STATUS', 'BUSINESS_UNIT_OM', 'TOPLEVELPOSITION', 'LEVEL1', 'POSITION', 'ORDERBY1', 'CAPTURE_ID', 'CONFIG_CODE', 'EXTERNAL_ID', 'INV_ITEM_ID', 'LINE_NBR', 'PARENT_INST_PRODID', 'PERSON_ID', 'PO_ID', 'QUANTITY', 'SALES_USER_ID', 'ADDRESS1_AC', 'ADDRESS2_AC', 'ADDRESS3_AC', 'CITY_AC', 'INSTALLED_DATE', 'NODE_ID'))
|