SCP_POVRDUEH_VW

(SQL View)
Index Back

PO's with Overdue Schedules

Supplier PO's with Overdue Schedules

SELECT DISTINCT A.BUSINESS_UNIT , A.BUYER_ID , A.PO_ID , A.PO_DT , A.PO_STATUS , A.VENDOR_ID , A.PYMNT_TERMS_CD , A.RECV_STATUS , A.BILL_LOCATION , A.CHNG_ORD_BATCH , A.VENDOR_SETID , A.VNDR_LOC , A.CURRENCY_CD , D.DATETIME_DISP , A.VENDOR_SETID FROM PS_SCP_OVRDUE1H_VW A , PS_PO_DISPATCHED D WHERE A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.PO_ID = D.PO_ID AND D.DATETIME_DISP = ( SELECT MAX(E.DATETIME_DISP) FROM PS_PO_DISPATCHED E WHERE A.PO_ID = E.PO_ID AND A.BUSINESS_UNIT = E.BUSINESS_UNIT) UNION SELECT DISTINCT B.BUSINESS_UNIT , B.BUYER_ID , B.PO_ID , B.PO_DT , B.PO_STATUS , B.VENDOR_ID , B.PYMNT_TERMS_CD , B.RECV_STATUS , B.BILL_LOCATION , B.CHNG_ORD_BATCH , B.VENDOR_SETID , B.VNDR_LOC , B.CURRENCY_CD , F.DATETIME_DISP , B.VENDOR_SETID FROM PS_SCP_OVRDUE2H_VW B , PS_PO_DISPATCHED F WHERE B.BUSINESS_UNIT = F.BUSINESS_UNIT AND B.PO_ID = F.PO_ID AND F.DATETIME_DISP = ( SELECT MAX(G.DATETIME_DISP) FROM PS_PO_DISPATCHED G WHERE B.PO_ID = G.PO_ID AND B.BUSINESS_UNIT = G.BUSINESS_UNIT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
2 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
3 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
4 PO_DT Date(10) DATE Date
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 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
7 PYMNT_TERMS_CD Character(5) VARCHAR2(5) NOT NULL Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers.
8 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
9 BILL_LOCATION Character(10) VARCHAR2(10) NOT NULL Billing Location
10 CHNG_ORD_BATCH Number(3,0) SMALLINT NOT NULL Change Order Number
11 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
12 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
13 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
14 DATETIME_DISP DateTime(26) TIMESTAMP Date and Time Dispatched
15 SETID Character(5) VARCHAR2(5) NOT NULL SetID