PV_CM_DEL_VW

(SQL View)
Index Back

SELECT A.SETID ,%Substring(A.EOCM_OFFER_ID,1,18) ,S.SETID ,S.VENDOR_ID ,IC.CATEGORY_ID ,%Substring(A.EOCM_SUP_OFFER_UOM,1,3) ,%Substring(A.EOCM_SUP_OFFER_UOM,1,3) ,%Substring(A.EOCM_SUP_OFFER_NM,1,30) ,%Substring(A.EOCM_SUP_OFFER_NM,1,60) ,A.EOCM_SUP_OFFER_NM ,A.EOCM_SUP_OFFER_SKU ,' ' ,A.EOCM_SUP_OFFER_PR ,A.EOCM_ITMVPRIORITY ,%Round(A.EOCM_LEAD_TIME , 3) ,' ' ,A.CURRENCY_CD ,'1' ,' ' ,A.EFFDT ,%DateNull ,V.NAME1 ,V.VNDR_STATUS_PO ,A.EFFDT ,S.VNDR_LOC ,A.EOCM_SUP_OFFER_PR ,A.CURRENCY_CD ,A.LASTUPDDTTM FROM PS_EOCM_GEN_TBL A , PS_EOCM_CAT_TP_VER B , PS_EOCM_TP_VER C , PS_EOCM_CAT_VER D , PS_EOCM_OFFER_CAT OC , PS_ITM_CAT_TBL IC , PS_VENDOR V , PS_PV_MS_SUPPLIER S , PS_INSTALLATION_PV Z WHERE A.EOCM_OFFER_STATUS IN ('S', 'P') AND A.Eff_STATUS = 'I' AND C.EOCM_TP_VER_STATE = 'P' AND D.EOCM_CATVER_STATUS = 'P' AND A.LASTUPDDTTM = ( SELECT MAX(X.LASTUPDDTTM) FROM PS_EOCM_GEN_TBL X WHERE A.SETID = X.SETID AND A.EOCM_CATALOG_ID = X.EOCM_CATALOG_ID AND A.EOCM_ACCESS_ID = X.EOCM_ACCESS_ID AND A.EOCM_OFFER_ID = X.EOCM_OFFER_ID AND A.EOCM_SUP_OFFER_SKU = X.EOCM_SUP_OFFER_SKU AND A.EOCM_SUP_OFFER_UOM = X.EOCM_SUP_OFFER_UOM) AND A.SETID = B.SETID AND A.EOCM_CATALOG_ID = B.EOCM_CATALOG_ID AND A.EOCM_ACCESS_ID = B.EOCM_ACCESS_ID AND A.EOCM_TP_VER_ID = B.EOCM_TP_VER_ID AND B.SETID = C.SETID AND B.EOCM_CATALOG_ID = C.EOCM_CATALOG_ID AND B.EOCM_ACCESS_ID = C.EOCM_ACCESS_ID AND B.EOCM_TP_VER_ID = C.EOCM_TP_VER_ID AND B.SETID = D.SETID AND B.EOCM_CATALOG_ID = D.EOCM_CATALOG_ID AND B.EOCM_CAT_VER_ID = D.EOCM_CAT_VER_ID AND Z.PVCM_SW = 'Y' AND A.SETID = OC.SETID AND A.EOCM_CATALOG_ID =OC.EOCM_CATALOG_ID AND A.EOCM_OFFER_ID = OC.EOCM_OFFER_ID AND OC.EOCM_PRIMARY_CATEG = 'Y' AND IC.SETID = A.SETID AND IC.CATEGORY_CD = A.EOCM_SUP_CAT_CD AND V.SETID = S.SETID AND V.VENDOR_ID = S.VENDOR_ID AND S.EOTP_PARTNERID = A.EOCM_ACCESS_ID AND A.EOCM_TP_VER_ID = ( SELECT MAX(EOCM_TP_VER_ID) FROM PS_EOCM_GEN_TBL AA WHERE A.SETID = AA.SETID AND A.EOCM_CATALOG_ID = AA.EOCM_CATALOG_ID AND A.EOCM_ACCESS_ID = AA.EOCM_ACCESS_ID AND A.EOCM_ROW_ID = AA.EOCM_ROW_ID) AND NOT EXISTS( SELECT 'X' FROM PS_ITM_VENDOR X WHERE X.SETID = A.SETID AND X.INV_ITEM_ID = %Substring(A.EOCM_OFFER_ID,1,18) AND X.SETID = S.SETID AND X.VENDOR_ID = S.VENDOR_ID )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
4 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
5 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
6 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
7 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description
10 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
11 ITM_ID_VNDR Character(50) VARCHAR2(50) NOT NULL Vendor Item ID
12 VNDR_CATALOG_ID Character(20) VARCHAR2(20) NOT NULL Vendor's Catalog Number
13 PRICE_LIST Number(16,5) DECIMAL(15,5) NOT NULL Standard Price
14 ITM_VNDR_PRIORITY Number(3,0) SMALLINT NOT NULL Item Vendor Priority
15 STD_LEAD Number(3,0) SMALLINT NOT NULL Purchase Lead Time Days
16 MODEL Character(30) VARCHAR2(30) NOT NULL Model
17 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
18 ITM_STATUS_CURRENT Character(1) VARCHAR2(1) NOT NULL Item Status Current
1=Active
2=Hold
3=Discontinue
4=Inactive
5=Pending Approval
6=Denied Approval
7=Under Initialization
19 ITM_STATUS_FUTURE Character(1) VARCHAR2(1) NOT NULL Item Status Future
1=Active
2=Hold
3=Discontinue
4=Inactive
20 ITM_STATUS_EFFDT Date(10) DATE Item Status Date
21 ITM_STAT_DT_FUTURE Date(10) DATE Item Date Future
22 VNDR_NAME1 Character(40) VARCHAR2(40) NOT NULL Supplier Name
23 VNDR_STATUS_PO Character(1) VARCHAR2(1) NOT NULL Open For Ordering
N=No
Y=Yes
24 EFFDT Date(10) DATE Effective Date

Default Value: %date

25 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
26 PRICE_VNDR Number(16,5) DECIMAL(15,5) NOT NULL Vendor Price
27 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
28 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.