PV_MST_ITEM_VW

(SQL View)
Index Back

SELECT A.SETID , A.INV_ITEM_ID , %Coalesce(A.ITM_STATUS_EFFDT, %DateIn('1900-01-01')) , A.ITM_STATUS_CURRENT , %Coalesce(A.ITM_STAT_DT_FUTURE, %DateIn('2999-12-31')) , A.ITM_STATUS_FUTURE , A.UNIT_MEASURE_STD , A.INVENTORY_ITEM , A.LAST_DTTM_UPDATE , %Coalesce(B.LAST_DTTM_UPDATE, %DateTimeIn('1900-01-01-00.00.00.000000')) , B.PO_AVAIL_DT , %Coalesce(B.PO_UNAVAIL_DT, %DateIn('2999-12-31')) , B.DESCR , B.MODEL , B.DESCR254_MIXED , B.CURRENCY_CD , B.AVAIL_ALL_RGNS , B.PRICE_LIST , A.CATEGORY_ID , D.CATEGORY_CD , B.STD_LEAD , D.DESCR60 FROM PS_MASTER_ITEM_TBL A , PS_PURCH_ITEM_ATTR B , PS_ITM_CAT_TBL D WHERE A.SETID = B.SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.SETID = D.SETID AND A.CATEGORY_ID = D.CATEGORY_ID AND D.EFF_STATUS = 'A' AND D.EFFDT = ( SELECT MAX(K.EFFDT) FROM PS_ITM_CAT_TBL K WHERE D.SETID = K.SETID AND D.CATEGORY_TYPE = K.CATEGORY_TYPE AND D.CATEGORY_ID = K.CATEGORY_ID AND D.CATEGORY_CD = K.CATEGORY_CD AND K.EFFDT <= %CurrentDateIn)

  • Related Language Record: PV_MST_ITM_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
    3 ITM_STATUS_EFFDT Date(10) DATE Item Status Date
    4 ITM_STATUS_CURRENT Character(1) VARCHAR2(1) NOT NULL Item Status Current
    1=Active
    2=Hold
    3=Discontinue
    4=Inactive
    5=Pending Approval
    6=Denied Approval
    7=Under Initialization
    5 ITM_STAT_DT_FUTURE Date(10) DATE Item Date Future
    6 ITM_STATUS_FUTURE Character(1) VARCHAR2(1) NOT NULL Item Status Future
    1=Active
    2=Hold
    3=Discontinue
    4=Inactive
    7 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
    8 INVENTORY_ITEM Character(1) VARCHAR2(1) NOT NULL Inventory Item
    N=No
    Y=Yes
    9 LAST_DTTM_UPDATE DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
    10 LAST_DTTM_STAMP DateTime(26) TIMESTAMP Data Time Stamp - Old
    11 PO_AVAIL_DT Date(10) DATE PO Available Date
    12 PO_UNAVAIL_DT Date(10) DATE PO Unavailable Date
    13 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    14 MODEL Character(30) VARCHAR2(30) NOT NULL Model
    15 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
    16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    17 AVAIL_ALL_RGNS Character(1) VARCHAR2(1) NOT NULL Available in All Regions
    18 PRICE_LIST Number(16,5) DECIMAL(15,5) NOT NULL Standard Price
    19 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
    20 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code
    21 STD_LEAD Number(3,0) SMALLINT NOT NULL Purchase Lead Time Days
    22 CATDESCR Character(60) VARCHAR2(60) NOT NULL Category Description