CM_PERPSTOR_VW(SQL View) |
Index Back |
---|---|
Avg Cost Adj Write-Off ViewFinds one storage area and UOM for creating write-offs in cm_cost_adj. |
SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , MIN(B.CM_BOOK) , MIN(B.COST_ELEMENT) , MIN(A.STORAGE_AREA) , MIN(A.UNIT_MEASURE_STD) FROM PS_TRANSACTION_INV A , PS_CM_PERPAVG_ADJ B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.DT_TIMESTAMP = B.DT_TIMESTAMP AND A.SEQ_NBR = B.SEQ_NBR GROUP BY A.BUSINESS_UNIT, A.INV_ITEM_ID |
# | 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 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
4 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | Cost Element |
5 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
6 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |