CNTRCT_SRCH2(SQL View) |
Index Back |
---|---|
Contract Search RecordContract Search Record with Contract type 2/13/2008 RMK F-AHAYT-S60K7 Cannot create releases for non-PO syndicated contracts |
SELECT DISTINCT a.SETID , a.CNTRCT_ID , a.VERSION_NBR , a.CNTRCT_PROC_OPT , a.VENDOR_SETID , a.VENDOR_ID , b.VENDOR_NAME_SHORT , a.CNTRCT_EXPIRE_DT , a.CNTRCT_STATUS , a.VERSION_STATUS , a.MSTR_CNTRCT_ID FROM PS_CNTRCT_HDR a , PS_VENDOR b WHERE a.version_status = 'C' AND a.CNTRCT_PROC_OPT NOT IN ('GRPM', 'GRPS', 'SPP','MFG','DST') AND a.vendor_setid = b.setid AND a.vendor_id = b.vendor_id AND NOT EXISTS ( SELECT 'x' FROM ps_cs_cntrct_hd_sn syn WHERE a.setid = syn.setid AND a.cntrct_id = syn.cntrct_id AND a.CNTRCT_PROC_OPT <> 'PO') AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LINE L WHERE L.SETID = A.SETID AND L.CNTRCT_ID = A.CNTRCT_ID AND L.VERSION_NBR = A.VERSION_NBR) |
# | 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 Prompt Table: SP_SETID_NONVW |
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_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 |
5 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
6 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Identifier
Default Value: VNDRSHRT_SET_VW.VENDOR_ID Prompt Table: VENDOR_SET_VW |
7 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL |
Short Vendor Name
Prompt Table: VNDR_SHRT_VWC |
8 | CNTRCT_EXPIRE_DT | Date(10) | DATE | Expire Date |
9 | 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 |
10 | VERSION_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Contract version status
C=Current D=Draft H=History Default Value: C |
11 | MSTR_CNTRCT_ID | Character(10) | VARCHAR2(10) NOT NULL |
Master Contract ID
Prompt Table: CNTRCT_MSTR |