CM_221_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.BUSINESS_UNIT , B.CM_BOOK , A.INV_ITEM_ID , A.DT_TIMESTAMP , A.SEQ_NBR , A.TRANSACTION_GROUP , A.PRODUCTION_ID , A.QTY_BASE , B.CM_COST_SOURCE FROM PS_TRANSACTION_INV A , PS_CM_ACTUAL_COSTB 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 AND A.TRANSACTION_GROUP = '221' AND B.CM_COST_SOURCE = '9' AND NOT EXISTS ( SELECT 'X' FROM PS_CM_ACTUAL_COSTB BB WHERE A.BUSINESS_UNIT = BB.BUSINESS_UNIT AND A.INV_ITEM_ID = BB.INV_ITEM_ID AND A.DT_TIMESTAMP = BB.DT_TIMESTAMP AND A.SEQ_NBR = BB.SEQ_NBR AND BB.CM_COST_SOURCE = '8') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUIN_NONVW |
2 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: BU_ITM_INV_VW |
4 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
5 | SEQ_NBR | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number |
6 | TRANSACTION_GROUP | Character(3) | VARCHAR2(3) NOT NULL | 11/7/02 LLR - Added the new (600's) transactions groups for 8.8. |
7 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
8 | QTY_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity |
9 | CM_COST_SOURCE | Character(1) | VARCHAR2(1) NOT NULL |
12/29/2005 dbe ICE 1379942000 - Added "U" Xlat.
0=Depletion 1=PO Receipt 2=Expr Ptway 3=IUTransfer 4=AP Matched 5=User Adj 6=Qty Adjs. 7=Bin to Bin 8=Prelim Cst 9=Prdn Compl C=NegQty R=Return S=Split from U=75 Upgrade |