ATP_S_NOPO_VW(SQL View) |
Index Back |
---|---|
ATP Supply -- Receipt w/o POView used to fetch quantity received in Purchasing without a purchase order and that haven't been staged to Inventory. |
SELECT d.business_unit_in , s.inv_item_id , 'NOPO' , 'S' , 'PO' , v.name1 , SUM(d.qty_ds_accpt_suom) , '40' FROM ps_recv_ln_distrib d , PS_RECV_LN_SHIP s , ps_vendor v , ps_recv_hdr h WHERE h.po_receipt_flg = 'N' AND v.setid = h.vendor_setid AND v.vendor_id = h.vendor_id AND s.move_stat_inv <> 'M' AND s.business_unit = h.business_unit AND s.receiver_id = h.receiver_id AND d.dst_acct_type = 'DST' AND d.business_unit_in <> ' ' AND d.business_unit = s.business_unit AND d.receiver_id = s.receiver_id AND d.recv_ln_nbr = s.recv_ln_nbr AND d.recv_ship_seq_nbr = s.recv_ship_seq_nbr GROUP BY d.business_unit_in, s.inv_item_id, v.name1 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
3 | ATP_SOURCE | Character(6) | VARCHAR2(6) NOT NULL | This field is used in the ATP and Availability calculation to determine where the particular source or demand was fetched from. It will store the up-to-6 character mnemonic used in the associated view that fetched the data. For example, if ATP_S_PO_VW was used to fetch purchase order information, this field will contain "PO". If view ATP_D_PROMIS_VW was used to fetch promised demand information, this field will contain "PROMIS". |
4 | AVAIL_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Availability Type
D=Demand S=Supply |
5 | 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 |
6 | SHIP_CUST_NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Ship To Name |
7 | QTY_REQUESTED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested |
8 | PEG_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
07/21/04 EGS: Created
10=Open 20=Completed 30=Canceled 40=Not Pegged |