CNTRCLNSRCHRSLT

(SQL View)
Index Back

SELECT L.SETID , L.CNTRCT_ID , L.VERSION_NBR , L.CNTRCT_LINE_NBR , L.AUC_GROUP_ID , C.CATEGORY_CD , C.CATEGORY_ID , C.SETID , L.CNTR_LN_TYPE_ID , L.DESCR254_MIXED , L.INV_ITEM_ID , L.ITM_ID_VNDR , L.LINE_STATUS , L.MERCHANDISE_AMT , L.MFG_ID , L.MFG_ITM_ID , L.UNIT_OF_MEASURE , L.VNDR_CATALOG_ID , U.UPN_TYPE_CD , U.UPN_ID FROM PS_CNTRCT_LINE L ,PS_CNTRCT_LINE_UOM U , PS_ITM_CAT_TBL C WHERE L.CATEGORY_ID = C.CATEGORY_ID AND U.SETID =L.SETID AND U.CNTRCT_ID=L.CNTRCT_ID AND U.VERSION_NBR =L.VERSION_NBR AND U.CNTRCT_LINE_NBR =L.CNTRCT_LINE_NBR AND C.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_ITM_CAT_TBL A_ED WHERE C.SETID = A_ED.SETID AND C.CATEGORY_TYPE = A_ED.CATEGORY_TYPE AND C.CATEGORY_CD = A_ED.CATEGORY_CD AND C.CATEGORY_ID = A_ED.CATEGORY_ID AND A_ED.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
3 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
4 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
5 AUC_GROUP_ID Character(18) VARCHAR2(18) NOT NULL GroupID
6 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code
7 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
8 CATEGORY_SETID Character(5) VARCHAR2(5) NOT NULL Category SetID
9 CNTR_LN_TYPE_ID Character(30) VARCHAR2(30) NOT NULL Contract Line Type ID
10 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
11 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
12 ITM_ID_VNDR Character(50) VARCHAR2(50) NOT NULL Vendor Item ID
13 LINE_STATUS Character(1) VARCHAR2(1) NOT NULL Line Status
A=Active
C=Cancelled
I=Inactive
O=Open
P=Pending
14 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
15 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
16 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
17 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
18 VNDR_CATALOG_ID Character(20) VARCHAR2(20) NOT NULL Vendor's Catalog Number
19 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
20 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number