APS_SO_OM_VW

(SQL View)
Index Back

Non-Configured Items Orders

10/2003 Created for APS Integration.

SELECT HED.BUSINESS_UNIT , HED.ORDER_NO , SCH.ORDER_INT_LINE_NO , SCH.SCHED_LINE_NBR , SCH.SHIP_TO_CUST_ID , HED.ORDER_STATUS , LNE.ORD_LINE_STATUS , SCH.ORD_SCH_STATUS , HED.ORDER_TYPE_CD , HED.SOURCE_CD , HED.SUCCESS_PCT , 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 , 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 , F.INV_ITEM_ID , F.PRODUCT_KIT_FLAG , IM.DIST_CFG_FLAG , IM.PRDN_CFG_FLAG , HED.LASTUPDDTTM , HED.DATETIME_ADDED , IB.ITM_SETID , CST.SETID , 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_PROD_ITEM F , PS_MASTER_ITEM_TBL IM , PS_APS_ITEM_BU_VW IB , PS_SET_CNTRL_REC S , PS_APS_CUSTOMER_VW CST WHERE HED.BUSINESS_UNIT = LNE.BUSINESS_UNIT AND HED.ORDER_NO = LNE.ORDER_NO AND HED.BUSINESS_UNIT = SCH.BUSINESS_UNIT AND HED.ORDER_NO = SCH.ORDER_NO AND LNE.ORDER_INT_LINE_NO = SCH.ORDER_INT_LINE_NO AND F.SETID = IB.ITM_SETID AND F.PRODUCT_ID = LNE.PRODUCT_ID AND IM.SETID = IB.ITM_SETID AND IM.INV_ITEM_ID = F.INV_ITEM_ID AND IB.BUSINESS_UNIT = SCH.PRIORITY_SHIP_FROM AND IB.INV_ITEM_ID = F.INV_ITEM_ID AND HED.ORDER_STATUS IN ('O', 'C') AND LNE.ORD_LINE_STATUS IN ('O', 'C') AND SCH.ORD_SCH_STATUS IN ('O', 'C') AND S.SETCNTRLVALUE = HED.BUSINESS_UNIT AND S.RECNAME = 'CUSTOMER' AND S.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 ORDER_STATUS Character(3) VARCHAR2(3) NOT NULL Order Status
C=Closed
O=Open
P=Pending
X=Canceled
7 ORD_LINE_STATUS Character(1) VARCHAR2(1) NOT NULL Line Status
C=Closed
O=Open
P=Pending
X=Canceled
8 ORD_SCH_STATUS Character(1) VARCHAR2(1) NOT NULL Schedule Status
C=Closed
O=Open
P=Pending
X=Canceled
9 ORDER_TYPE_CD Character(3) VARCHAR2(3) NOT NULL Order Type
QUO=Sales Quote
SO=Sales Order
10 SOURCE_CD Character(6) VARCHAR2(6) NOT NULL Source Code
11 SUCCESS_PCT Number(6,2) DECIMAL(5,2) NOT NULL Success Percent
12 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer
13 BILL_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer
14 ORDER_DATE Date(10) DATE Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
15 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
16 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
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 PRODUCT_KIT_FLAG Character(1) VARCHAR2(1) NOT NULL Product Kit
35 DIST_CFG_FLAG Character(1) VARCHAR2(1) NOT NULL Distribution Configuration
36 PRDN_CFG_FLAG Character(1) VARCHAR2(1) NOT NULL Production Configuration
37 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.
38 DATETIME_ADDED DateTime(26) TIMESTAMP DateTime Added
39 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
40 CUST_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
41 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
42 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
43 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
44 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
45 CITY Character(30) VARCHAR2(30) NOT NULL City
46 STATE Character(6) VARCHAR2(6) NOT NULL State
47 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
48 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal