ATP_S_PRD1_VW(SQL View) |
Index Back |
---|---|
ATP Supply -- Production Vw 1View used to fetch production information for ATP calculation purposes. |
SELECT a.business_unit , a.mg_output_item , 'PRD1' , 'S' , 'SF' , a.production_id , b.new_end_date , a.mg_output_schd_qty - a.completed_qty , b.ma_prdn_id_flg , a.mg_output_type FROM ps_sf_output_list a , ps_sf_prdnid_headr b WHERE a.business_unit = b.business_unit AND a.production_id = b.production_id AND b.prod_status IN ('15', '20', '30') AND a.config_code = ' ' AND a.mg_output_type <> 'WB' AND b.ORIG_PRDN_QTY = b.ORIG_PRDN_END_QTY AND b.cum_yield = 100 AND (a.op_sequence = 0 OR NOT EXISTS( SELECT 'x' FROM PS_SF_OP_LIST c WHERE c.business_unit = a.business_unit AND c.production_id = a.production_id AND a.business_unit = b.business_unit AND a.production_id = b.production_id AND c.business_unit = b.business_unit AND c.production_id = b.production_id AND c.op_sequence = a.op_sequence)) |
# | 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 | SCHED_DATE | Date(10) | DATE | Schedule Date |
8 | QTY_REQUESTED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested |
9 | 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 |
10 | MG_OUTPUT_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
10/22/98 (CN#EN800-6.0) LAJ...Created
Stores the output item type on a Bill of Materials. The type could represent either a co-product (primary or secondary) or a by-product (waste or recycle).
11/23/98 (CN#SF800-13) JNW added teardown xlat
CP=Primary CS=Co-Product RB=Recycle TD=Teardown WB=Waste |