SER_PHYS_VW3(SQL View) |
Index Back |
---|---|
Serial Id Physical View07/17/13: Copied SER_PHYS_VW3 to create this record view for Mobile Inventory Adjustments to retrieve serial ids with quantity greater than or equal to zero when BU does not allow negative inventory. |
SELECT DISTINCT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.SERIAL_ID , A.STORAGE_AREA , A.STOR_LEVEL_1 , A.STOR_LEVEL_2 , A.STOR_LEVEL_3 , A.STOR_LEVEL_4 , A.INV_LOT_ID FROM PS_PHYSICAL_INV A , PS_INSTALLATION_IN B WHERE A.SERIAL_ID <> B.DFLT_SERIAL_ID AND (A.QTY - A.QTY_RESERVED) >= 0 AND A.AVAIL_STATUS <> '3' AND A.AVAIL_STATUS <> '4' |
# | 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 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
4 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
5 | STOR_LEVEL_1 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 1 |
6 | STOR_LEVEL_2 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 2 |
7 | STOR_LEVEL_3 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 3 |
8 | STOR_LEVEL_4 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 4 |
9 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |