STOR_L1_PH1_VW3

(SQL View)
Index Back

Storage Lev 1 Phys Prompt - Vw

Cloned STOR_L1_PHY_VW and modified SQL.

SELECT DISTINCT A.business_unit , A.inv_item_id , A.storage_area , A.stor_level_1 FROM ps_physical_inv A , PS_FXD_BIN_LOC_INV B WHERE (A.avail_status = '1' OR A.avail_status = '2') AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.UNIT_OF_MEASURE = B.UNIT_OF_MEASURE AND EXISTS ( SELECT 'x' FROM ps_stor_loc_inv WHERE A.business_unit = ps_stor_loc_inv.business_unit AND A.storage_area = ps_stor_loc_inv.storage_area AND A.stor_level_1 = ps_stor_loc_inv.stor_level_1)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: STOR_LOC_INV

2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area

Prompt Table: STOR_LOC_INV

4 STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1