PV_ITM_VND_P_VW

(SQL View)
Index Back

SELECT DISTINCT D.SETID , D.INV_ITEM_ID , D.VENDOR_SETID , D.VENDOR_ID , D.VNDR_LOC , D.UNIT_OF_MEASURE , D.CURRENCY_CD , D.CURRENCY_CD , D.PRICE_VNDR , E.CONVERSION_RATE FROM PS_ITM_VNDR_UOM_PR D , PS_ITM_VNDR_UOM E WHERE D.SETID = E.SETID AND D.INV_ITEM_ID = E.INV_ITEM_ID AND D.VENDOR_SETID = E.VENDOR_SETID AND D.VENDOR_ID = E.VENDOR_ID AND D.VNDR_LOC = E.VNDR_LOC AND D.UNIT_OF_MEASURE = E.UNIT_OF_MEASURE AND D.EFF_STATUS = 'A' AND E.DFLT_UOM = 'Y' AND D.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_ITM_VNDR_UOM_PR F WHERE F.SETID = D.SETID AND F.INV_ITEM_ID = D.INV_ITEM_ID AND F.VENDOR_SETID = D.VENDOR_SETID AND F.VENDOR_ID = D.VENDOR_ID AND F.VNDR_LOC = D.VNDR_LOC AND F.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE AND F.CURRENCY_CD = D.CURRENCY_CD AND F.QTY_MIN = D.QTY_MIN AND F.EFFDT <= %CurrentDateIn) AND D.QTY_MIN = ( SELECT MIN(K.QTY_MIN) FROM PS_ITM_VNDR_UOM_PR K WHERE K.SETID = D.SETID AND K.INV_ITEM_ID = D.INV_ITEM_ID AND K.VENDOR_SETID = D.VENDOR_SETID AND K.VENDOR_ID = D.VENDOR_ID AND K.VNDR_LOC = D.VNDR_LOC AND K.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE AND K.CURRENCY_CD = D.CURRENCY_CD AND K.EFFDT = D.EFFDT)

# 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 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
6 VNDR_UOM Character(3) VARCHAR2(3) NOT NULL Supplier Unit of Measure
7 CURR_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
8 CURRENCY_CD_VNDR Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
9 PRICE_VNDR Number(16,5) DECIMAL(15,5) NOT NULL Vendor Price
10 CONVERSION_RATE Signed Number(17,8) DECIMAL(15,8) NOT NULL Conversion Rate