IN_SDWCNI1_CLSV

(SQL View)
Index Back

EOEN context record

EOEN context record

SELECT 'IN_SDWC_NOT_INVOICED' , 'SUP_DMD_ALERTS' , 0 , P.BUSINESS_UNIT , P.DEMAND_SOURCE , P.SOURCE_BUS_UNIT , P.ORDER_NO , P.ORDER_INT_LINE_NO , P.SCHED_LINE_NBR , P.INV_ITEM_ID , P.DEMAND_LINE_NO , 0 , 0 , ' ' , ' ' , 0 , ' ' , V.TOTAL_QTY , V.QTY_SHIPPED , V.EXTENDED_NET_PRICE , V.CURRENCY_CD , P.IN_PROCESS_DATE , %DatePart(P.SHIP_DTTM) , P.PRODUCT_ID , P.PARENT_PROD_ID , P.BUSINESS_UNIT %Concat '~' %Concat P.DEMAND_SOURCE %Concat '~' %Concat P.SOURCE_BUS_UNIT %Concat '~' %Concat P.ORDER_NO %Concat '~' %Concat %NumToChar(P.ORDER_INT_LINE_NO) %Concat '~' %Concat %NumToChar(P.SCHED_LINE_NBR) %Concat '~' %Concat %NumToChar(P.DEMAND_LINE_NO) , P.QTY_REQUESTED - P.QTY_BACKORDER , P.QTY_REQUESTED_BASE - P.QTY_BACKORDER_BASE , '0' , 0 , S.OPRCLASS FROM PS_IN_DEMAND P JOIN PS_IN_SDWC_SCH2_VW V ON %Join(COMMON_KEYS, IN_SDWC_SCH2_VW V, IN_DEMAND P) JOIN PS_SEC_BU_CLS S ON S.BUSINESS_UNIT = P.BUSINESS_UNIT JOIN PS_SEC_BU_CLS S1 ON S1.OPRCLASS = S.OPRCLASS AND S1.BUSINESS_UNIT = P.SOURCE_BUS_UNIT JOIN PS_SEC_BU_CLS S2 ON S2.OPRCLASS = S1.OPRCLASS AND S2.BUSINESS_UNIT = P.SOURCE_BUS_UNIT WHERE (P.IN_FULFILL_STATE = '60' OR (P.IN_FULFILL_STATE = '70' AND P.OMB_PROCESS_DATE IS NOT NULL)) AND P.DEMAND_SOURCE = 'OM' UNION SELECT 'IN_SDWC_NOT_INVOICED' , 'SUP_DMD_ALERTS' , 0 , P.BUSINESS_UNIT , P.DEMAND_SOURCE , P.SOURCE_BUS_UNIT , P.ORDER_NO , P.ORDER_INT_LINE_NO , P.SCHED_LINE_NBR , P.INV_ITEM_ID , P.DEMAND_LINE_NO , B.INTFC_ID , B.INTFC_LINE_NUM , B.BUSINESS_UNIT_BI , B.INVOICE , B.LINE_SEQ_NUM , B.BILLING_STATUS , V.TOTAL_QTY , V.QTY_SHIPPED , V.EXTENDED_NET_PRICE , V.CURRENCY_CD , P.IN_PROCESS_DATE , %DatePart(P.SHIP_DTTM) , P.PRODUCT_ID , P.PARENT_PROD_ID , P.BUSINESS_UNIT %Concat '~' %Concat P.DEMAND_SOURCE %Concat '~' %Concat P.SOURCE_BUS_UNIT %Concat '~' %Concat P.ORDER_NO %Concat '~' %Concat %NumToChar(P.ORDER_INT_LINE_NO) %Concat '~' %Concat %NumToChar(P.SCHED_LINE_NBR) %Concat '~' %Concat %NumToChar(P.DEMAND_LINE_NO) , P.QTY_REQUESTED - P.QTY_BACKORDER , P.QTY_REQUESTED_BASE - P.QTY_BACKORDER_BASE ,'0' , 0 , S.OPRCLASS FROM PS_IN_DEMAND P JOIN PS_IN_SDWC_SCH2_VW V ON %Join(COMMON_KEYS, IN_SDWC_SCH2_VW V, IN_DEMAND P) LEFT OUTER JOIN PS_IN_DEMAND_BI B ON %Join(COMMON_KEYS, IN_DEMAND_BI B, IN_DEMAND P) JOIN PS_SEC_BU_CLS S ON S.BUSINESS_UNIT = P.BUSINESS_UNIT JOIN PS_SEC_BU_CLS S1 ON S1.OPRCLASS = S.OPRCLASS AND S1.BUSINESS_UNIT = P.SOURCE_BUS_UNIT JOIN PS_SEC_BU_CLS S2 ON S2.OPRCLASS = S1.OPRCLASS WHERE P.IN_PROCESS_DATE IS NULL AND P.DEMAND_SOURCE = 'OM' AND P.OMB_PROCESS_DATE IS NULL AND B.INVOICE = ' '

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EOEN_PRCS_NAME Character(30) VARCHAR2(30) NOT NULL EOEN Process Name
2 EOEN_CATEGORY Character(30) VARCHAR2(30) NOT NULL EOEN Category
3 SEQ_NBR_EOEN Number(15,0) DECIMAL(15) NOT NULL EOEN Sequence Nbr
4 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BUIN_NONVW

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 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit

Prompt Table: SP_BU_FS_NONVW

7 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
8 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
9 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
10 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
11 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
12 INTFC_ID Number(8,0) INTEGER NOT NULL Interface ID
13 INTFC_LINE_NUM Number(8,0) INTEGER NOT NULL Interface Line Number
14 BUSINESS_UNIT_BI Character(5) VARCHAR2(5) NOT NULL Billing Business Unit

Prompt Table: SP_BU_BI_NONVW

15 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice
16 LINE_SEQ_NUM Number(5,0) INTEGER NOT NULL Sequence
17 BILLING_STATUS Character(1) VARCHAR2(1) NOT NULL Billing Status
A=Available
B=In Billing
C=Contract
I=Invoiced
N=Not Avail
P=In Process
S=Staged
18 TOTAL_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Total Quantity
19 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
20 EXTENDED_NET_PRICE Signed Number(29,4) DECIMAL(27,4) NOT NULL Ext Net Amount
21 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
22 IN_PROCESS_DATE Date(10) DATE Process Date
23 SHIP_DATE Date(10) DATE Item Shipping Date
24 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
25 PARENT_PROD_ID Character(18) VARCHAR2(18) NOT NULL Parent Product Id
26 IN_SDWC_HASH_KEY Character(60) VARCHAR2(60) NOT NULL Hash
27 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
28 QTY_ORDER_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
29 EOEN_STATUS Character(1) VARCHAR2(1) NOT NULL EOEN Status
0=Open
1=Closed
30 ROWNBR Number(7,0) INTEGER NOT NULL Row number
31 OPRCLASS Character(30) VARCHAR2(30) NOT NULL Operator Class