CC_PO_STATUS_VW

(SQL View)
Index Back

ProCard PO Status View


SELECT %Substring(A.FIELDVALUE, 1, 2) , 'Y' FROM PSXLATITEM A WHERE A.FIELDNAME = 'PO_STATUS' AND FIELDVALUE IN ('A', 'D') AND A.EFFDT = ( SELECT MAX(AA.EFFDT) FROM PSXLATITEM AA WHERE AA.FIELDNAME = A.FIELDNAME AND AA.FIELDVALUE = A.FIELDVALUE AND AA.EFF_STATUS = 'A' AND AA.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
A=Approved
C=Complete
D=Dispatched
DA=Denied
I=Initial
LD=Line Denied
O=Open
PA=Pending Approval/Approved
PX=Pending Cancel
X=Canceled
2 SEL Character(1) VARCHAR2(1) NOT NULL Select

Y/N Table Edit