CNT_CAT_ITMS_VW

(SQL View)
Index Back

Contract Category Items

Prompt view for category item exclusions based on selected category

SELECT A.VENDOR_SETID , A.VENDOR_ID , A.SETID , D.CATEGORY_ID , A.INV_ITEM_ID , B.DESCR , C.NAME1 FROM PS_ITM_VENDOR A , PS_PURCH_ITEM_ATTR B , PS_VENDOR C , PS_MASTER_ITEM_TBL D , PS_INV_ITEMS E , PS_ITM_CAT_TBL F WHERE A.SETID = B.SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.VENDOR_SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID AND A.SETID = D.SETID AND A.INV_ITEM_ID = D.INV_ITEM_ID AND D.ITM_STATUS_CURRENT = '1' AND A.SETID = E.SETID AND A.INV_ITEM_ID = E.INV_ITEM_ID AND F.EFF_STATUS = 'A' AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_INV_ITEMS F WHERE F.SETID = B.SETID AND F.INV_ITEM_ID = B.INV_ITEM_ID AND EFFDT <= %CurrentDateIn) AND ((%CurrentDateIn >= B.PO_AVAIL_DT) AND (B.PO_UNAVAIL_DT > %CurrentDateIn)) AND D.SETID = F.SETID AND D.CATEGORY_ID = F.CATEGORY_ID AND F.EFFDT = ( SELECT MAX(G.EFFDT) FROM PS_ITM_CAT_TBL G WHERE F.SETID = G.SETID AND F.CATEGORY_TYPE = G.CATEGORY_TYPE AND F.CATEGORY_CD = G.CATEGORY_CD AND F.CATEGORY_ID = G.CATEGORY_ID AND G.EFFDT <= %CurrentDateIn)

  • Related Language Record: ITM_SETID_LNGVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

    Prompt Table: VNDR_VNDSET_VW

    3 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    4 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
    5 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    6 ITM_DESCR Character(30) VARCHAR2(30) NOT NULL Item Description
    7 VENDOR_NAME1 Character(40) VARCHAR2(40) NOT NULL Vendor Name1