APS_SO_KIT_VW

(SQL View)
Index Back

Non-Configured Kits Orders

10/2003 Created for APS Integration

SELECT HED.BUSINESS_UNIT , HED.ORDER_NO , SCH.ORDER_INT_LINE_NO , SCH.SCHED_LINE_NBR , HED.SHIP_TO_CUST_ID , KIT.SEQ_NUM , HED.ORDER_TYPE_CD , HED.SOURCE_CD , HED.SUCCESS_PCT , HED.ORDER_STATUS , LNE.ORD_LINE_STATUS , SCH.ORD_SCH_STATUS , HED.SOLD_TO_CUST_ID , HED.BILL_TO_CUST_ID , HED.ORDER_DATE , HED.CURRENCY_CD_BASE , LNE.PRODUCT_ID , LNE.REQ_SHIP_DTTM , LNE.REQ_ARRIVAL_DTTM , LNE.QTY_ORDERED , SCH.QTY_SCHEDULED , MST.UNIT_MEASURE_STD , LNE.UNIT_OF_MEASURE , LNE.PRICE , LNE.PRICE_BASE , SCH.LIST_PRICE , SCH.NET_UNIT_PRICE , SCH.NET_UNIT_PRICE_BSE , SCH.PRICE_OVERRIDE , SCH.SHIP_FROM_BU , SCH.PRIORITY_SHIP_FROM , SCH.SCHED_ARRV_DTTM , SCH.SCHED_SHIP_DTTM , PRO.INV_ITEM_ID , KIT.PROD_COMPONENT_ID , HED.LASTUPDDTTM , HED.DATETIME_ADDED , KIT.DATE_IN_EFFECT , KIT.DTTM_OBSOLETE , BUI.ITM_SETID , SC.SETID , KIT.QTY_PER , KIT.QTY_CODE , CST.NAME1 , CST.ADDRESS1 , CST.ADDRESS2 , CST.ADDRESS3 , CST.CITY , CST.STATE , CST.COUNTRY , CST.POSTAL FROM PS_ORD_SCHEDULE SCH , PS_ORD_LINE LNE , PS_ORD_HEADER HED , PS_PRODKIT_COMPS KIT , PS_PROD_ITEM PRO , PS_MASTER_ITEM_TBL MST , PS_APS_ITEM_BU_VW BUI , PS_SET_CNTRL_REC SC , PS_APS_CUSTOMER_VW CST WHERE SCH.BUSINESS_UNIT = LNE.BUSINESS_UNIT AND SCH.ORDER_NO = LNE.ORDER_NO AND SCH.ORDER_INT_LINE_NO = LNE.ORDER_INT_LINE_NO AND HED.BUSINESS_UNIT = LNE.BUSINESS_UNIT AND HED.ORDER_NO = LNE.ORDER_NO AND HED.ORDER_STATUS IN ('O', 'C') AND LNE.ORD_LINE_STATUS IN ('O', 'C') AND SCH.ORD_SCH_STATUS IN ('O', 'C') AND KIT.SETID = PRO.SETID AND KIT.PRODUCT_ID = LNE.PRODUCT_ID AND KIT.PROD_COMPONENT_ID = PRO.PRODUCT_ID AND PRO.INV_ITEM_ID = MST.INV_ITEM_ID AND BUI.BUSINESS_UNIT = SCH.SHIP_FROM_BU AND BUI.INV_ITEM_ID = PRO.INV_ITEM_ID AND BUI.ITM_SETID = PRO.SETID AND PRO.SETID = MST.SETID AND SC.SETCNTRLVALUE = SCH.BUSINESS_UNIT AND SC.RECNAME = 'CUSTOMER' AND SC.SETID = CST.SETID AND SCH.SHIP_TO_CUST_ID = CST.CUST_ID AND %EffdtCheck(APS_CUSTOMER_VW, CST, HED.ORDER_DATE)

# 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_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
5 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
6 SEQ_NUM Number(3,0) SMALLINT NOT NULL Sequence
7 ORDER_TYPE_CD Character(3) VARCHAR2(3) NOT NULL Order Type
QUO=Sales Quote
SO=Sales Order
8 SOURCE_CD Character(6) VARCHAR2(6) NOT NULL Source Code
9 SUCCESS_PCT Number(6,2) DECIMAL(5,2) NOT NULL Success Percent
10 ORDER_STATUS Character(3) VARCHAR2(3) NOT NULL Order Status
C=Closed
O=Open
P=Pending
X=Canceled
11 ORD_LINE_STATUS Character(1) VARCHAR2(1) NOT NULL Line Status
C=Closed
O=Open
P=Pending
X=Canceled
12 ORD_SCH_STATUS Character(1) VARCHAR2(1) NOT NULL Schedule Status
C=Closed
O=Open
P=Pending
X=Canceled
13 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer
14 BILL_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer
15 ORDER_DATE Date(10) DATE Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
16 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
17 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
18 REQ_SHIP_DTTM DateTime(26) TIMESTAMP Requested Ship
19 REQ_ARRIVAL_DTTM DateTime(26) TIMESTAMP Requested Arrival
20 QTY_ORDERED Signed Number(16,4) DECIMAL(14,4) NOT NULL Order Qty
21 QTY_SCHEDULED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Scheduled
22 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
23 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
24 PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL This is price per unit for calculating the service charge.
25 PRICE_BASE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
26 LIST_PRICE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price
27 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
28 NET_UNIT_PRICE_BSE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
29 PRICE_OVERRIDE Signed Number(16,4) DECIMAL(14,4) NOT NULL Price Override
30 SHIP_FROM_BU Character(5) VARCHAR2(5) NOT NULL Ship from INV BU
31 PRIORITY_SHIP_FROM Character(5) VARCHAR2(5) NOT NULL PRIORITY SHIP FROM BUSINESS UNIT
32 SCHED_ARRV_DTTM DateTime(26) TIMESTAMP Schedule Arrival Dt/Tm
33 SCHED_SHIP_DTTM DateTime(26) TIMESTAMP Schedule Ship Datetime
34 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
35 PROD_COMPONENT_ID Character(18) VARCHAR2(18) NOT NULL Product Component ID
36 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
37 DATETIME_ADDED DateTime(26) TIMESTAMP DateTime Added
38 DATE_IN_EFFECT Date(10) DATE 01/27/2000 RML Added "As of date" label 03/23/2004 SFC Added PRICE_LIST_DATE label 06/04/2004 SFC Added PRODUCT_PRICE_DAT label
39 DTTM_OBSOLETE DateTime(26) TIMESTAMP Obsolete Date-Time
40 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
41 CUST_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
42 QTY_PER Number(10,4) DECIMAL(9,4) NOT NULL Quantity
43 QTY_CODE Character(3) VARCHAR2(3) NOT NULL Per
ASY=Assembly
ORD=Order
44 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
45 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
46 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
47 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
48 CITY Character(30) VARCHAR2(30) NOT NULL City
49 STATE Character(6) VARCHAR2(6) NOT NULL State
50 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
51 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal