PV_PO_REQ_XRF2(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.PO_ID , B.BUSINESS_UNIT_REQ , B.REQ_ID , A.PO_STATUS , A.RECV_STATUS , A.CHNG_ORD_BATCH FROM PS_PO_HDR A , PS_PO_LINE_DISTRIB B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND B.REQ_ID <> ' ' AND A.PO_ID = ( SELECT MAX(B2.PO_ID) FROM PS_PO_LINE_DISTRIB B2 WHERE B.BUSINESS_UNIT_REQ = B2.BUSINESS_UNIT_REQ AND B.REQ_ID = B2.REQ_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
3 | BUSINESS_UNIT_REQ | Character(5) | VARCHAR2(5) NOT NULL | Requesting Business Unit |
4 | REQ_ID | Character(10) | VARCHAR2(10) NOT NULL | Requisition ID |
5 | 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 |
6 | RECV_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Receipt Status
C=Closed Receipt H=Hold Receipt M=Moved to Destination N=PO Not Received O=Open P=PO Partially Received R=Fully Received X=Canceled |
7 | CHNG_ORD_BATCH | Number(3,0) | SMALLINT NOT NULL | Change Order Number |