OM_VNDCNTRY_VW

(SQL View)
Index Back

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 , L.BUSINESS_UNIT , L.PO_ID , L.LINE_NBR , B.SUP_ORDER_TYPE , B.QTY_PEGGED , B.QTY_RECEIVED , B.QTY_COMPLETE , B.PEG_STATUS , B.DT_TIMESTAMP , B.HARD_PEG , H.VENDOR_SETID , H.VENDOR_ID , H.VNDR_LOC , H.ADDRESS_SEQ_NUM , V.COUNTRY , V.STATE FROM PS_IN_DEMAND_HASH A , PS_IN_PEGGING B , PS_PO_HASH C , PS_PO_LINE L , PS_IN_DEMAND F , PS_PO_HDR H , PS_VENDOR_ADDR V WHERE A.HASH_KEY = B.DEMAND_HASH AND B.SUPPLY_HASH = C.HASH_KEY AND B.SUP_ORDER_TYPE = '010' AND B.PEG_STATUS < '30' AND L.BUSINESS_UNIT = C.BUSINESS_UNIT AND L.PO_ID = C.PO_ID AND L.LINE_NBR = C.LINE_NBR AND L.BUSINESS_UNIT = H.BUSINESS_UNIT AND L.PO_ID = H.PO_ID AND F.BUSINESS_UNIT = A.BUSINESS_UNIT AND F.DEMAND_SOURCE = A.DEMAND_SOURCE AND F.SOURCE_BUS_UNIT = A.SOURCE_BUS_UNIT AND F.ORDER_NO = A.ORDER_NO AND F.ORDER_INT_LINE_NO = A.ORDER_INT_LINE_NO AND F.SCHED_LINE_NBR = A.SCHED_LINE_NBR AND F.INV_ITEM_ID = A.INV_ITEM_ID AND F.DEMAND_LINE_NO = A.DEMAND_LINE_NO AND F.DEMAND_SOURCE = 'OM' AND V.SETID = H.VENDOR_SETID AND V.VENDOR_ID = H.VENDOR_ID AND V.ADDRESS_SEQ_NUM = H.ADDRESS_SEQ_NUM AND %EffdtCheck(VENDOR_ADDR A1, V, H.PO_DT) AND V.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory 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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
10 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
11 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
12 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
13 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
14 QTY_RECEIVED Number(16,4) DECIMAL(15,4) NOT NULL Received Qty
15 QTY_COMPLETE Number(16,4) DECIMAL(15,4) NOT NULL Quantity Complete
16 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged

Default Value: 10

17 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
18 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
19 VNDR_SETID Character(5) VARCHAR2(5) NOT NULL VENDOR SETID
20 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

Prompt Table: VENDOR_PO_VW

21 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location

Prompt Table: VNDR_LOC_VW1

22 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number

Prompt Table: VENDOR_ADDR1_VW

23 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
24 STATE Character(6) VARCHAR2(6) NOT NULL State