IN_XRSS_NPS_VW

(SQL View)
Index Back

IN Peg MSR Search View

06/21/04 EGS: Created

SELECT A.BUSINESS_UNIT , A.DEMAND_SOURCE , A.SOURCE_BUS_UNIT , A.ORDER_NO , A.ORDER_INT_LINE_NO , A.SCHED_LINE_NBR , A.INV_ITEM_ID , A.DEMAND_LINE_NO , A.DESTIN_BU , A.DESTIN_BU , '035' , A.SOURCE_BUS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat A.ORDER_NO , A.DEMAND_SOURCE %Concat X.PEG_KEY_SEPARATOR %Concat %NumToChar(A.ORDER_INT_LINE_NO) %Concat X.PEG_KEY_SEPARATOR %Concat %NumToChar(A.SCHED_LINE_NBR) %Concat X.PEG_KEY_SEPARATOR %Concat %NumToChar(A.DEMAND_LINE_NO) , A.LAST_QTY_SHIP_BASE , A.LAST_QTY_SHIP_BASE , 'N' , %DatePart(A.SCHED_DTTM) , %TimePart(A.SCHED_DTTM) , A.SCHED_DTTM , 'N' , A.SUP_PEG_STATUS FROM PS_IN_DEMAND A , PS_BUS_UNIT_TBL_IN BUTI , PS_INSTALLATION_IN X WHERE A.SUP_PEG_STATUS IN ('30', '40') AND A.INTERUNIT_FLG = 'Y' AND A.CONFIG_CODE = ' ' AND A.IN_FULFILL_STATE IN ('50', '60', '70') AND A.BUSINESS_UNIT = BUTI.BUSINESS_UNIT AND BUTI.VMI_UNIT_FLG = 'N'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 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
3 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
4 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
5 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
6 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
7 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 DESTIN_BU Character(5) VARCHAR2(5) NOT NULL Destination Unit
10 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
11 PEG_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
010=Purchase
020=Production
030=Transfer Demand
035=Transfer Supply
070=Stock Request
090=Sales Order
100=Requisition
110=WO Inventory
115=WO Non-Inventory
12 PEG_ORDER_KEY Character(30) VARCHAR2(30) NOT NULL Used to store the various Order Number formats in 1 field
13 PEG_LINE_KEY Character(30) VARCHAR2(30) NOT NULL Used to Store the concatenation of Line, Demand, Sched, Kit, etc in 1 field.
14 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
15 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
16 PEG_FLAG Character(1) VARCHAR2(1) NOT NULL 06/17/04 EGS: Created.
17 SCHED_DATE Date(10) DATE Schedule Date
18 SCHED_TIME Time(15) TIMESTAMP Schedule Time
19 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
20 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
21 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged