PV_RTV_BTN_VW4(SQL View) |
Index Back |
---|
SELECT DISTINCT A.REQ_ID , A.BUSINESS_UNIT , H.OPRID_ENTERED_BY , H.REQUESTOR_ID , H.REQ_STATUS , SUM(C.QTY_PO) FROM PS_REQ_HDR H , PS_REQ_LINE A , PS_PO_HDR B , PS_PO_LINE_DISTRIB C , PS_PO_LINE L WHERE A.REQ_ID = H.REQ_ID AND A.BUSINESS_UNIT = H.BUSINESS_UNIT AND H.REQ_STATUS IN ('A','C') AND A.LINE_NBR = C.REQ_LINE_NBR AND A.REQ_ID = C.REQ_ID AND B.PO_ID = C.PO_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.BUSINESS_UNIT = C.BUSINESS_UNIT_REQ AND B.BUSINESS_UNIT = L.BUSINESS_UNIT AND B.PO_ID = L.PO_ID AND L.LINE_NBR = C.LINE_NBR AND ((B.PO_STATUS IN ('C','D')) OR (B.CHNG_ORD_BATCH > 0 AND B.PO_STATUS IN ('A', 'O', 'PA'))) AND ( ((B.RECV_STATUS = 'R' OR B.RECV_STATUS = 'P') AND L.RECV_REQ = 'Y') OR L.RECV_REQ <> 'Y') AND L.CANCEL_STATUS = 'A' AND L.AMT_ONLY_FLG <> 'Y' GROUP BY A.REQ_ID , A.BUSINESS_UNIT , H.OPRID_ENTERED_BY , H.REQUESTOR_ID , H.REQ_STATUS |
# | 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 |
6 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |