BU_ITM_INV_VW5(SQL View) |
Index Back |
---|---|
Item Business Unit Prompt ViewBU item promt view that will bring back all non-soft reservation Items |
SELECT B.SETID , DI.BUSINESS_UNIT , B.INV_ITEM_ID , B.DESCR , B.SERIAL_CONTROL , B.LOT_CONTROL FROM PS_BU_ITEMS_INV A , PS_MASTER_ITEM_TBL B , PS_SET_CNTRL_REC C , PS_DF_SETUP_INV DI WHERE C.RECNAME = 'MASTER_ITEM_TBL' AND A.BUSINESS_UNIT = C.SETCNTRLVALUE AND DI.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.SETID = C.SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.ITM_STATUS_CURRENT IN ('1','3') AND((DI.SOFT_ALLOC_FLG = 'N' AND NOT EXISTS( SELECT 'X' FROM PS_DF_SETUP_IT_INV DFI WHERE DFI.BUSINESS_UNIT = DI.BUSINESS_UNIT AND DFI.INV_ITEM_ID = B.INV_ITEM_ID AND DFI.SOFT_ALLOC_FLG = 'Y')) OR (DI.SOFT_ALLOC_FLG = 'Y' AND EXISTS( SELECT 'X' FROM PS_DF_SETUP_IT_INV DFX WHERE DFX.BUSINESS_UNIT = DI.BUSINESS_UNIT AND DFX.INV_ITEM_ID = B.INV_ITEM_ID AND DFX.SOFT_ALLOC_FLG = 'N'))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BUIN_NONVW |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: BU_ITM_INV_VW5 |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | SERIAL_CONTROL | Character(1) | VARCHAR2(1) NOT NULL |
Serial Control
N=N Y=Y |
6 | LOT_CONTROL | Character(1) | VARCHAR2(1) NOT NULL |
Lot Control
N=N Y=Y |