APS_SO_CK_VW

(SQL View)
Index Back

APS - Configured Kits Orders

10/2003 Created for APS Integration

SELECT SCH.BUSINESS_UNIT , SCH.ORDER_NO , SCH.ORDER_INT_LINE_NO , SCH.SCHED_LINE_NBR , SCH.SHIP_TO_CUST_ID , COH.CP_COMP_SEQ , 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 , SCH.REQ_SHIP_DTTM , SCH.REQ_ARRIVAL_DTTM , LNE.QTY_ORDERED , SCH.QTY_SCHEDULED , IM.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 , COH.INV_ITEM_ID , IM.DIST_CFG_FLAG , IM.PRDN_CFG_FLAG , HED.LASTUPDDTTM , HED.DATETIME_ADDED , IB.ITM_SETID , CST.SETID , COH.QTY_PER , COH.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_MASTER_ITEM_TBL IM , PS_APS_ITEM_BU_VW IB , PS_CP_OPT_HDR COH , PS_SET_CNTRL_REC SC , PS_APS_CUSTOMER_VW CST WHERE LNE.BUSINESS_UNIT = SCH.BUSINESS_UNIT AND LNE.ORDER_NO = SCH.ORDER_NO AND LNE.ORDER_INT_LINE_NO = SCH.ORDER_INT_LINE_NO AND COH.BUSINESS_UNIT = SCH.BUSINESS_UNIT AND COH.ORDER_NO = SCH.ORDER_NO AND COH.ORDER_INT_LINE_NO = SCH.ORDER_INT_LINE_NO AND HED.BUSINESS_UNIT = SCH.BUSINESS_UNIT AND HED.ORDER_NO = SCH.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 IM.SETID = IB.ITM_SETID AND IM.INV_ITEM_ID = IB.INV_ITEM_ID AND IB.BUSINESS_UNIT = SCH.SHIP_FROM_BU AND COH.INV_ITEM_ID = IB.INV_ITEM_ID AND COH.MFG_PURCH_FLG = 'K' AND SC.SETCNTRLVALUE = HED.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 CP_COMP_SEQ Number(3,0) SMALLINT NOT NULL Component Sequence Field
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 REQ_SHIP_DTTM DateTime(26) TIMESTAMP Requested Ship
18 REQ_ARRIVAL_DTTM DateTime(26) TIMESTAMP Requested Arrival
19 QTY_ORDERED Signed Number(16,4) DECIMAL(14,4) NOT NULL Order Qty
20 QTY_SCHEDULED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Scheduled
21 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
22 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
23 PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL This is price per unit for calculating the service charge.
24 PRICE_BASE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
25 LIST_PRICE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price
26 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
27 NET_UNIT_PRICE_BSE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
28 PRICE_OVERRIDE Signed Number(16,4) DECIMAL(14,4) NOT NULL Price Override
29 SHIP_FROM_BU Character(5) VARCHAR2(5) NOT NULL Ship from INV BU
30 PRIORITY_SHIP_FROM Character(5) VARCHAR2(5) NOT NULL PRIORITY SHIP FROM BUSINESS UNIT
31 SCHED_ARRV_DTTM DateTime(26) TIMESTAMP Schedule Arrival Dt/Tm
32 SCHED_SHIP_DTTM DateTime(26) TIMESTAMP Schedule Ship Datetime
33 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
34 DIST_CFG_FLAG Character(1) VARCHAR2(1) NOT NULL Distribution Configuration
35 PRDN_CFG_FLAG Character(1) VARCHAR2(1) NOT NULL Production Configuration
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 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
39 CUST_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
40 QTY_PER Number(10,4) DECIMAL(9,4) NOT NULL Quantity
41 QTY_CODE Character(3) VARCHAR2(3) NOT NULL Per
ASY=Assembly
ORD=Order
42 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
43 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
44 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
45 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
46 CITY Character(30) VARCHAR2(30) NOT NULL City
47 STATE Character(6) VARCHAR2(6) NOT NULL State
48 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
49 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal