PO_ROLE_ID_VW(SQL View) |
Index Back |
---|---|
Contract Line Search ViewDate Initials Reference# Description 12/31/2010 Nash 2024722004 This view is a replica of the view CNTRCT_SPO_SRCH with an extra new field CNTR_LN_TYPE_ID added which helps in retrieving the contracts lines of the same role id of PO line. |
SELECT A.SETID , A.CNTRCT_ID , A.VERSION_NBR , A.CNTR_LN_TYPE_ID , A.CNTRCT_LINE_NBR , A.INV_ITEM_ID , A.DESCR254_MIXED , E.CATEGORY_CD , A.ITM_ID_VNDR , A.VNDR_CATALOG_ID , A.MFG_ID , A.MFG_ITM_ID , A.PHYSICAL_NATURE FROM PS_CNTRCT_LINE A , PS_CNTRCT_HDR D , PS_ITM_CAT_TBL E WHERE A.CATEGORY_ID <> ' ' AND A.UNIT_OF_MEASURE <> ' ' AND A.CNTRCT_LN_TYPE = 'R' AND A.DESCR254_MIXED <> ' ' AND A.LINE_STATUS = 'O' AND D.VERSION_STATUS = 'C' AND A.SETID = D.SETID AND A.CNTRCT_ID = D.CNTRCT_ID AND A.VERSION_NBR = D.VERSION_NBR AND A.SETID = E.SETID AND A.CATEGORY_ID = E.CATEGORY_ID AND A.CNTR_LN_TYPE_ID <> ' ' AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LINE_UOM B , PS_CNTRCT_LN_SHIP C WHERE B.SETID = A.SETID AND B.CNTRCT_ID = A.CNTRCT_ID AND B.VERSION_NBR = A.VERSION_NBR AND B.CNTRCT_LINE_NBR = A.CNTRCT_LINE_NBR AND C.SETID = A.SETID AND C.CNTRCT_ID = A.CNTRCT_ID AND C.VERSION_NBR = A.VERSION_NBR AND C.CNTRCT_LINE_NBR = A.CNTRCT_LINE_NBR AND B.VNDR_LOC <> ' ' AND C.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 | CNTR_LN_TYPE_ID | Character(30) | VARCHAR2(30) NOT NULL | Contract Line Type ID |
5 | CNTRCT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Buying Agreement Line Nbr |
6 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
7 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
8 | CATEGORY_CD | Character(18) | VARCHAR2(18) NOT NULL | Category Code |
9 | ITM_ID_VNDR | Character(50) | VARCHAR2(50) NOT NULL | Vendor Item ID |
10 | VNDR_CATALOG_ID | Character(20) | VARCHAR2(20) NOT NULL | Vendor's Catalog Number |
11 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer ID |
12 | MFG_ITM_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer's Item ID |
13 | PHYSICAL_NATURE | Character(1) | VARCHAR2(1) NOT NULL |
Physical Nature
G=Goods S=Services |