CM_INQ_PERD_VW(SQL View) |
Index Back |
---|---|
Periodic Average Cost View |
SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.CM_BOOK , A.DT_TIMESTAMP , A.EFFDT , A.EFF_STATUS , A.CM_QTY_BASE , A.UNIT_MEASURE_STD , SUM(A.CM_UNIT_COST) , A.CURRENCY_CD FROM PS_CM_PERDAVG_COST A , PS_CM_ITEM_METH_VW B WHERE %Join(COMMON_KEYS, CM_PERDAVG_COST A, CM_ITEM_METH_VW B) AND A.EFF_STATUS = 'A' AND B.CM_METHOD = '7' GROUP BY A.BUSINESS_UNIT , A.CM_BOOK , A.INV_ITEM_ID , A.DT_TIMESTAMP , A.EFFDT , A.EFF_STATUS, A.CM_QTY_BASE , A.UNIT_MEASURE_STD , A.CURRENCY_CD |
# | 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 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
5 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
6 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
7 | CM_QTY_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 07/99 GMG CN800-9.0: |
8 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
9 | CM_UNIT_COST | Signed Number(27,15) | DECIMAL(25,15) NOT NULL | 07/99 GMG CN800-9.0: |
10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |