PV_CAT_RQST_VW2

(SQL View)
Index Back

Category Codes

Used as Category prompt table for requisitions when a requestor can only use specific catalogs. Date Initials Reference # Description 01/12/2009 PRAG 1809887003 Category lookup on eprocurement create requisitions - special request page now displays correct entries.

SELECT A.SETID , B.TREE_NAME , A.CATEGORY_TYPE , A.CATEGORY_CD , A.EFFDT , A.EFF_STATUS , A.CATEGORY_ID , A.DESCR60 FROM PS_ITM_CAT_TBL A, PSTREENODE B , PSTREEDEFN C WHERE A.SETID = B.SETID (+) AND A.CATEGORY_CD = B.TREE_NODE (+) AND A.EFF_STATUS = 'A' AND B.SETID = C.SETID (+) AND B.SETCNTRLVALUE = C.SETCNTRLVALUE (+) AND B.TREE_NAME = C.TREE_NAME (+) AND B.EFFDT = C.EFFDT (+) AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_ITM_CAT_TBL A1 WHERE A1.SETID = A.SETID AND A1.CATEGORY_TYPE = A.CATEGORY_TYPE AND A1.CATEGORY_ID = A.CATEGORY_ID AND A1.EFFDT <= %CurrentDateIn ) AND (C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PSTREEDEFN C1 WHERE C1.EFF_STATUS = 'A' AND C1.SETID = C.SETID AND C1.TREE_NAME = C.TREE_NAME AND C1.EFFDT <= %CurrentDateIn) OR B.EFFDT IS NULL)

  • Related Language Record: PV_CAT_RQSTVLN
  • # 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 CATALOG_ID Character(18) VARCHAR2(18) NOT NULL Catalog ID
    3 CATEGORY_TYPE Character(3) VARCHAR2(3) NOT NULL Category Type
    PSF=User Def
    UNS=UN/SPSC

    Default Value: INSTALLATION_PO.CATEGORY_TYPE

    4 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code
    5 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    7 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
    8 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description