IN_PO_SCHED_AVW

(SQL View)
Index Back

ATP Supply -- PO View

View used to fetch purchase order supply information for ATP calculation purposes. Because production orders are always included in the calculation, this view excludes subcontract POs.

SELECT s.business_unit , s.po_id , s.line_nbr , s.sched_nbr , s.cancel_status FROM PS_PO_LINE_SHIP s , ps_po_line l , ps_po_hdr h WHERE h.po_type <> 'KAN' AND l.business_unit = h.business_unit AND l.po_id = h.po_id AND s.business_unit = l.business_unit AND s.po_id = l.po_id AND s.line_nbr = l.line_nbr AND s.production_id = ' '

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 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
3 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
4 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
5 CANCEL_STATUS Character(1) VARCHAR2(1) NOT NULL Cancel Status
A=Active
C=Closed
D=Denied
H=Hold
O=Open
P=Pending Approval
X=Canceled