SCP_RCPOSHP_VW3

(SQL View)
Index Back

PO Line Ship View

Supplier PO Line Ship View

SELECT DISTINCT A.BUSINESS_UNIT_PO , A.PO_ID , A.LINE_NBR , A.SCHED_NBR , A.PO_DT , A.PO_STATUS , A.VENDOR_ID , A.BUYER_ID , A.PYMNT_TERMS_CD , A.RECV_STATUS , A.BILL_LOCATION , A.CHNG_ORD_BATCH , A.VENDOR_SETID , A.VNDR_LOC , A.CURRENCY_CD , A.DUE_DT , d.datetime_disp ,%DateDiff(a.due_dt,%currentdatein) ,FROM_DAYS||'-'||TO_DAYS ,C.OPRID FROM PS_SCP_RCVPOSHP_VW A , PS_PO_DISPATCHED D , PS_SCP_USR_PO_OVRD C WHERE A.BUSINESS_UNIT_PO = D.BUSINESS_UNIT AND A.PO_ID = D.PO_ID AND a.vendor_id = D.vendor_id AND (%DateDiff(a.due_dt,%currentdatein) >= FROM_DAYS AND %DateDiff(a.due_dt,%currentdatein) <= TO_DAYS) 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_PO = E.BUSINESS_UNIT)

# 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 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
5 PO_DT Date(10) DATE Date
6 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
7 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
8 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
9 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.
10 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
11 BILL_LOCATION Character(10) VARCHAR2(10) NOT NULL Billing Location
12 CHNG_ORD_BATCH Number(3,0) SMALLINT NOT NULL Change Order Number
13 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
14 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
15 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
16 DUE_DT Date(10) DATE Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received.
17 DATETIME_DISP DateTime(26) TIMESTAMP Date and Time Dispatched
18 DAYS Number(6,0) INTEGER NOT NULL Days
19 GROUP_NAME Character(30) VARCHAR2(30) NOT NULL Group Name
20 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).