CNTRCT_LN_VNDR

(SQL View)
Index Back

Supplier Contract Line View


SELECT A.SETID , A.CNTRCT_ID , A.VERSION_NBR , B.CNTRCT_LINE_NBR , A.VENDOR_SETID , A.VENDOR_ID , A.CNTRCT_BEGIN_DT , A.CNTRCT_TYPE , A.CNTRCT_CORP_FLG , B.INV_ITEM_ID , B.DESCR254_MIXED , B.CATEGORY_ID , B.CNTR_LN_TYPE_ID FROM PS_CNTRCT_HDR A , PS_CNTRCT_LINE B WHERE A.SETID = B.SETID AND A.CNTRCT_ID = B.CNTRCT_ID AND A.VERSION_NBR = B.VERSION_NBR AND A.CNTRCT_STATUS = 'A' AND A.VERSION_STATUS = 'C' AND A.CNTRCT_AUTO_DFLT = 'Y' AND A.CNTRCT_TYPE <> 'AP' AND B.AMT_ONLY_FLG = 'N' AND B.CATEGORY_ID <> ' ' AND B.UNIT_OF_MEASURE <> ' ' AND B.DESCR254_MIXED <> ' ' AND B.LINE_STATUS = 'O' AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LINE_UOM C WHERE C.SETID = B.SETID AND C.CNTRCT_ID = B.CNTRCT_ID AND C.VERSION_NBR = B.VERSION_NBR AND C.CNTRCT_LINE_NBR = B.CNTRCT_LINE_NBR AND C.VNDR_LOC <> ' ' AND C.PRICE_CNTRCT_BASE <> 0) AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LN_SHIP D WHERE D.SETID = B.SETID AND D.CNTRCT_ID = B.CNTRCT_ID AND D.VERSION_NBR = B.VERSION_NBR AND D.CNTRCT_LINE_NBR = B.CNTRCT_LINE_NBR AND D.QTY_SCHED <> 0)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID

Default Value: NEXT

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 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
6 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
7 CNTRCT_BEGIN_DT Date(10) DATE Contract Begin Date
8 CNTRCT_TYPE Character(2) VARCHAR2(2) NOT NULL Contract Type
AP=Recurring Voucher
GN=General Contract
MS=Master Contract
PO=Purchase Order
9 CNTRCT_CORP_FLG Character(1) VARCHAR2(1) NOT NULL Corporate Contract Flag
N=No
Y=Yes
10 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
11 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
12 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
13 CNTR_LN_TYPE_ID Character(30) VARCHAR2(30) NOT NULL Contract Line Type ID