ORD_SUP_PONP_VW

(SQL View)
Index Back

Ord Sup Purch Ord/NoSubCnct VW


SELECT d.business_unit_in , 'PO' , d.po_id , l.inv_item_id , s.due_dt , 'S' , h.vendor_id , h.vendor_setid , l.unit_of_measure , d.qty_po , h.recv_status , d.business_unit , d.line_nbr , d.sched_nbr , d.distrib_line_num FROM ps_po_hdr h , ps_po_line l , PS_PO_LINE_SHIP s , ps_po_line_distrib d WHERE d.business_unit_in <> ' ' AND s.business_unit = l.business_unit AND d.business_unit = l.business_unit AND h.business_unit = l.business_unit AND s.po_id = l.po_id AND d.po_id = l.po_id AND h.po_id = l.po_id AND s.line_nbr = l.line_nbr AND d.line_nbr = l.line_nbr AND d.sched_nbr = s.sched_nbr AND (h.po_status = 'O' OR h.po_status = 'PA' OR h.po_status = 'A' OR h.po_status = 'D') AND l.cancel_status = 'A' AND s.cancel_status = 'A' AND s.production_id = ' ' AND d.distrib_ln_status = 'O'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 DEMAND_SOURCE Character(2) VARCHAR2(2) NOT NULL Demand Source
IN=Material Request
OM=Sales Order
PL=Planning Requisition
PO=Purchase Order
PR=Purchasing Requisition
RT=Material Return
SF=Production Request
WM=Work Order
3 ORDER_NO Character(10) VARCHAR2(10) NOT NULL Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
4 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
5 SCHED_DATE Date(10) DATE Schedule Date
6 AVAIL_TYPE Character(1) VARCHAR2(1) NOT NULL Availability Type
D=Demand
S=Supply
7 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
8 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
9 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
10 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
11 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
12 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
13 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
14 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
15 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line