CNTRCT_LIN_AVW

(SQL View)
Index Back

Gets category code

Returns 1 row for each contract with line item, category ID, and line amount if the line item exists, as well as the category code for the category on that line item

SELECT A.SETID , A.CNTRCT_ID , B.CNTRCT_LINE_NBR , B.AMT_LINE_RELEASED , B.CURRENCY_CD , C.ITM_SETID , C.INV_ITEM_ID , C.DESCR254_MIXED , C.CATEGORY_ID , C.CATEGORY_CD FROM PS_CNTRCT_HDR A LEFT OUTER JOIN ( PS_CNTRCT_LIN_RLS B JOIN PS_CNTRCT_LNCCD_VW C ON C.SETID = B.SETID AND C.CNTRCT_ID = B.CNTRCT_ID AND C.CNTRCT_LINE_NBR = B.CNTRCT_LINE_NBR ) ON B.SETID = A.SETID AND B.CNTRCT_ID = A.CNTRCT_ID AND A.VERSION_STATUS = 'C'

# 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 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
4 AMT_LINE_RELEASED Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Line Amt Released
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
7 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
8 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
9 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
10 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code