PRODKIT_AVL_VW

(SQL View)
Index Back

Product Kit Availability View


SELECT a.business_unit , a.inv_item_id , %Round(%DecDiv(a.qty_available, b.qty_per),4) , %Round(%DecDiv(a.qty_reserved, b.qty_per),4) , %Round(%DecDiv(a.qty_owned, b.qty_per),4) , %Round(%DecDiv(a.qty_onhand, b.qty_per),4) , b.product_id FROM PS_BU_ITEMS_INV a , ps_prodkit_comps b WHERE b.setid = ( SELECT d.setid FROM ps_set_cntrl_rec d WHERE d.setcntrlvalue = a.business_unit AND d.recname = 'PRODKIT_COMPS') AND a.inv_item_id = ( SELECT c.inv_item_id FROM ps_prod_item c WHERE c.product_id = b.prod_component_id AND c.setid = b.setid)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
4 QTY_RESERVED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Reserved
5 QTY_OWNED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Owned
6 QTY_ONHAND Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity On Hand
7 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID