CNTRT_CPY_VW_LG

(SQL View)
Index Back

Contract Search for PO's


SELECT A.SETID , C.LANGUAGE_CD , A.CNTRCT_ID , A.VERSION_NBR , A.VENDOR_ID , C.VENDOR_NAME_SHORT , A.MSTR_CNTRCT_ID , A.ALLOW_OPEN_ITEM , A.VNDR_CNTRCT_REF , A.CNTRCT_STATUS , A.DESCR , A.CNTRCT_EXPIRE_DT , A.CNTRCT_PROC_OPT FROM PS_CNTRCT_HDR A , PS_VENDOR B ,PS_VENDOR_LANG C WHERE A.VERSION_STATUS = 'C' AND A.VENDOR_SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND B.VENDOR_STATUS = 'A' AND A.SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID UNION SELECT A.SETID ,'' , A.CNTRCT_ID , A.VERSION_NBR , A.VENDOR_ID , B.VENDOR_NAME_SHORT , A.MSTR_CNTRCT_ID , A.ALLOW_OPEN_ITEM , A.VNDR_CNTRCT_REF , A.CNTRCT_STATUS , A.DESCR , A.CNTRCT_EXPIRE_DT , A.CNTRCT_PROC_OPT FROM PS_CNTRCT_HDR A , PS_VENDOR B WHERE A.VERSION_STATUS = 'C' AND A.VENDOR_SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND B.VENDOR_STATUS = 'A' AND NOT EXISTS ( SELECT 'X' FROM PS_VENDOR_LANG D WHERE D.SETID = A.VENDOR_SETID AND D.VENDOR_ID = A.VENDOR_ID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
3 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
4 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
5 VENDOR_CNTRCT Character(10) VARCHAR2(10) NOT NULL Supplier ID
6 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name

Prompt Table: VENDOR_PO_NM_VW

7 MSTR_CNTRCT_ID Character(10) VARCHAR2(10) NOT NULL Master Contract ID
8 ALLOW_OPEN_ITEM Character(1) VARCHAR2(1) NOT NULL Allow Open Item Reference
N=No
Y=Yes

Y/N Table Edit

9 VNDR_CNTRCT_REF Character(30) VARCHAR2(30) NOT NULL Supplier Contract Ref
10 CNTRCT_STATUS Character(1) VARCHAR2(1) NOT NULL Contract Status
A=Approved
C=Closed
H=On-Hold
O=Open
P=Pre-Approved
X=Canceled

Default Value: O

11 DESCR Character(30) VARCHAR2(30) NOT NULL Description
12 CNTRCT_EXPIRE_DT Date(10) DATE Expire Date
13 CNTRCT_PROC_OPT Character(4) VARCHAR2(4) NOT NULL Contract Process Option
AP=Recurring Voucher
BPO=Release to Single PO Only
DST=Distributor
GN=General Contract
GRPM=Group Multi Supplier
GRPS=Group Single Supplier
MFG=Manufacturer
PADV=Prepaid Voucher w/ Advance PO
PO=Purchase Order
PPAY=Prepaid Voucher
RPOV=Recurring PO Voucher
SPP=Special Purpose