ATP_S_PRDS3_VW

(SQL View)
Index Back

ATP Supply -- Prod Stg Vw 3

View used to fetch quantity staged to Inventory (in STAGED_INF_INV) of production completions. This view will be used in the ATP calculation only if co-products and by-products are to be included.

SELECT s.business_unit , s.inv_item_id , 'PRDS3' , 'S' , 'SF' , s.production_id , SUM(s.qty) , s.unit_of_measure , u.conversion_rate , u.qty_precision , u.round_rule , s.ma_prdn_id_flg FROM PS_STAGED_INF_INV s , ps_set_cntrl_rec sc , ps_inv_item_uom u WHERE s.production_id <> ' ' AND sc.setcntrlvalue = s.business_unit AND sc.recname = 'INV_ITEM_UOM' AND u.setid = sc.setid AND u.inv_item_id = s.inv_item_id AND u.unit_of_measure = s.unit_of_measure GROUP BY s.business_unit, s.inv_item_id, s.production_id, s.unit_of_measure, u.conversion_rate, u.qty_precision, u.round_rule, s.ma_prdn_id_flg

# 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 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
7 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
8 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
9 CONVERSION_RATE Signed Number(17,8) DECIMAL(15,8) NOT NULL Conversion Rate
10 QTY_PRECISION Character(1) VARCHAR2(1) NOT NULL Quantity Precision
D=Decimal
W=Whole Nbr
11 ROUND_RULE Character(1) VARCHAR2(1) NOT NULL Rounding Rule
D=Round Down
N=Natural Round
U=Round Up
12 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