PV_CHNG_RQ_VW

(SQL View)
Index Back

SELECT DISTINCT A.REQ_ID , A.BUSINESS_UNIT , C.OPRID_ENTERED_BY , C.REQUESTOR_ID , C.REQ_STATUS FROM PS_PO_LINE_DISTRIB A , PS_PO_HDR B , PS_REQ_HDR C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND B.PO_STATUS = 'D' AND B.RECV_STATUS <> 'R' AND B.RECV_STATUS <> 'P' AND A.REQ_ID <> ' ' AND A.BUSINESS_UNIT_REQ = C.BUSINESS_UNIT AND A.REQ_ID = C.REQ_ID AND NOT EXISTS ( SELECT 'X' FROM PS_PO_LINE_DISTRIB D , PS_RECV_LN_SHIP E WHERE D.BUSINESS_UNIT = E.BUSINESS_UNIT_PO AND D.PO_ID = E.PO_ID AND D.LINE_NBR = E.LINE_NBR AND D.SCHED_NBR = E.SCHED_NBR AND D.BUSINESS_UNIT_REQ = C.BUSINESS_UNIT AND D.REQ_ID = C.REQ_ID) AND NOT EXISTS ( SELECT 'X' FROM PS_PO_LINE L WHERE L.BUSINESS_UNIT = A.BUSINESS_UNIT AND L.PO_ID = A.PO_ID AND L.LINE_NBR = A.LINE_NBR AND L.CANCEL_STATUS = 'X')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 REQ_ID Character(10) VARCHAR2(10) NOT NULL Requisition ID
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 OPRID_ENTERED_BY Character(30) VARCHAR2(30) NOT NULL Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes
4 REQUESTOR_ID Character(30) VARCHAR2(30) NOT NULL Requestor id
5 REQ_STATUS Character(4) VARCHAR2(4) NOT NULL Req status
A=Approved
C=Complete
D=Denied
I=Initial
LA=Line Approved
O=Open
P=Pending Approval
V=Preview
X=Canceled