SELECT R.EOPCSOURCE_CD , R.EOPCDEFN_ID , R.EOPCMAIN_ID , R.EOPCBUFFER_LEVEL , R.RECNAME , K.FIELDNAME , K.EOPCALT_LABEL , K.EOPCALT_LABEL , K.EOPCAPPCLASS_PATH , K.APPCLASSID , R.EOPCMAIN_FIELD_HSH FROM PS_EOPCAPP_KEY_VW K , PS_EOPCMAINR_SRCVW R , PS_EOPC_OBJECT O WHERE K.FIELDNAME = O.EOPCOBJECT_NAME AND K.EOPCAPP_SRCREC_ID = R.EOPCAPP_SRCREC_ID AND O.EOPCOBJECT_TYPE = 'AA' AND NOT EXISTS ( SELECT 'X' FROM PSMSGCATDEFN M WHERE M.MESSAGE_SET_NBR = K.EOPCLBL_MSGSET AND M.MESSAGE_NBR = K.EOPCLBL_MSGNBR) UNION SELECT R.EOPCSOURCE_CD , R.EOPCDEFN_ID , R.EOPCMAIN_ID , R.EOPCBUFFER_LEVEL , R.RECNAME , K.FIELDNAME , %Substring(M.MESSAGE_TEXT, 1, 30) , M.MESSAGE_TEXT , K.EOPCAPPCLASS_PATH , K.APPCLASSID , R.EOPCMAIN_FIELD_HSH FROM PSMSGCATDEFN M , PS_EOPCAPP_KEY_VW K , PS_EOPCMAINR_SRCVW R , PS_EOPC_OBJECT O WHERE M.MESSAGE_SET_NBR = K.EOPCLBL_MSGSET AND M.MESSAGE_NBR = K.EOPCLBL_MSGNBR AND K.FIELDNAME = O.EOPCOBJECT_NAME AND K.EOPCAPP_SRCREC_ID = R.EOPCAPP_SRCREC_ID AND O.EOPCOBJECT_TYPE = 'AA' AND K.EOPCLBL_MSGNBR > 0
|