IN_PO_SCHED_VW(SQL View) |
Index Back |
---|---|
ATP Supply -- PO ViewView 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 DISTINCT h.business_unit , d.po_id , d.line_nbr , d.sched_nbr FROM ps_po_line_distrib d , ps_po_line_ship s , ps_po_line l , ps_po_hdr h , PS_BU_ITEMS_INV b WHERE h.po_status IN ('O','PA','A','D') AND h.po_type <> 'KAN' AND l.business_unit = h.business_unit AND l.po_id = h.po_id AND l.cancel_status = 'A' AND s.business_unit = l.business_unit AND s.po_id = l.po_id AND s.line_nbr = l.line_nbr AND s.cancel_status = 'A' AND s.production_id = ' ' AND d.business_unit_in <> ' ' AND d.business_unit = s.business_unit AND d.po_id = s.po_id AND d.line_nbr = s.line_nbr AND d.sched_nbr = s.sched_nbr AND d.dst_acct_type = 'DST' AND d.distrib_ln_status IN ('O','P') AND b.business_unit = d.business_unit_in AND b.inv_item_id = l.inv_item_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 |