CR_USER_REF_VW

(SQL View)
Index Back

User ID Record Reference View

Contains Record and Field reference having fields which holds user ID/opr ID.

SELECT DISTINCT R.RECNAME , RF.FIELDNAME , R.OBJECTOWNERID , X.XLATLONGNAME FROM PSRECDEFN R , PSDBFIELD F , PSRECFIELDALL RF , PSXLATITEM X WHERE RF.RECNAME = R.RECNAME AND RF.FIELDNAME = F.FIELDNAME AND RF.FIELDNAME IN ( SELECT CR_USERID_FIELDS FROM PS_CR_USER_FLD_TBL) AND F.LENGTH >= 30 AND R.RECTYPE=0 AND X.FIELDNAME = 'OBJECTOWNERID' AND X.FIELDVALUE= R.OBJECTOWNERID AND X.EFFDT = ( SELECT MAX(X2.EFFDT) FROM PSXLATITEM X2 WHERE X2.FIELDNAME=X.FIELDNAME AND X2.FIELDVALUE = X.FIELDVALUE) AND NOT EXISTS ( SELECT 'X' FROM PSRECDEFN L WHERE L.RELLANGRECNAME = R.RECNAME) AND NOT EXISTS ( SELECT 'X' FROM PSAEAPPLSTATE A WHERE A.AE_STATE_RECNAME = R.RECNAME) AND R.RECNAME NOT LIKE '%RUN%' AND R.RECNAME NOT LIKE '%TAO%' AND R.RECNAME NOT LIKE '%TEMP%' AND R.RECNAME NOT LIKE '%TMP%'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 RECNAME Character(15) VARCHAR2(15) NOT NULL Record (Table) Name (see PSRECDEFN).
2 FIELDNAME Character(18) VARCHAR2(18) NOT NULL Field Name (see PSDBFIELD).
3 OBJECTOWNERID Character(4) VARCHAR2(4) NOT NULL Object owner identifier
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description