CM_CST_RT_TO_VW

(SQL View)
Index Back

Route to Kit Accounting View

PSG CN# CM750-10.0 Accounting COBOL selects rows using this view. CN# CM750-10.0 PSG 11/10/97 - multiply PxQ in COBOL instead of the view to aviod error when there are too many decimals. PSG 12/3/97: removed currency_cd, account, and cf16_sn_sbr 08/05/99 ebn CN#CM800-9.0 Added CM_BOOK

SELECT B.BUSINESS_UNIT , B.INV_ITEM_ID , B.DT_TIMESTAMP , A.FROM_PRDN_ID , A.TO_PRDN_ID , B.SEQ_NBR , B.CM_DT_TIMESTAMP_A , B.CM_SEQ_NBR_A , B.CM_BOOK , B.COST_ELEMENT , B.CM_SEQ_COST , B.TRANSACTION_GROUP , A.QTY_BASE , A.QTY , A.UNIT_MEASURE_STD , A.DOCUMENT_ID , A.NON_COST_FLAG , A.NON_OWN_FLAG , A.COSTED_FLAG , A.OPRID , A.DISTRIB_TYPE , B.CM_UNIT_COST , B.POSTED_FLAG , B.PROCESS_INSTANCE , B.PROCESS_FLAG , C.BUSINESS_UNIT_GL , C.BASE_CURRENCY , C.BASE_CURRENCY , C.APPL_JRNL_ID , A.TRANSACTION_DATE , A.CONSIGNED_FLAG , A.DESTIN_GL_BU , A.DESTIN_BU , A.SOURCE_BUS_UNIT , A.STORAGE_AREA , A.ACCOUNT , A.ALTACCT , A.DEPTID , %subrec(CF16_AN_SBR,A) , %subrec(PC_CF1_N_SBR, A) , %subrec(CM_TRANS_IN_SBR, A) , A.SHIP_ID FROM PS_TRANSACTION_INV A , PS_CM_RECEIPT_COST B , PS_BUS_UNIT_TBL_IN C 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.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.TRANSACTION_GROUP = '221' AND B.POSTED_FLAG = 'N' AND B.CM_COST_MODE = 'L'

# 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 DT_TIMESTAMP DateTime(26) TIMESTAMP NOT NULL Date Timestamp
4 FROM_PRDN_ID Character(10) VARCHAR2(10) NOT NULL From Production ID
5 TO_PRDN_ID Character(10) VARCHAR2(10) NOT NULL To Production ID
6 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
7 CM_DT_TIMESTAMP_A DateTime(26) TIMESTAMP NOT NULL 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd.
8 CM_SEQ_NBR_A Number(15,0) DECIMAL(15) NOT NULL 07/99 GMG CN800-9.0:
9 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
10 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
11 CM_SEQ_COST Number(15,0) DECIMAL(15) NOT NULL Cost Sequence Number. Incremented each time the actual cost is updated.
12 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.
13 QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity
14 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
15 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
16 DOCUMENT_ID Character(12) VARCHAR2(12) NOT NULL Document
17 NON_COST_FLAG Character(1) VARCHAR2(1) NOT NULL Non Cost
18 NON_OWN_FLAG Character(1) VARCHAR2(1) NOT NULL 07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No
Y=Yes
19 COSTED_FLAG Character(1) VARCHAR2(1) NOT NULL Cost status of the transaction. Contains two values: 'N' cost have not been calculated for the transaction and 'Y' cost have been calculated for the transaction
E=Error; Cannot process
N=Transaction is Not Costed
P=Qualified for Purging
X=Transaction Won't be Costed
Y=Transaction is Costed
20 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
21 DISTRIB_TYPE Character(10) VARCHAR2(10) NOT NULL Distrib. Type
22 CE_EXTENDED_COST Signed Number(32,15) DECIMAL(30,15) NOT NULL Extended Cost
23 POSTED_FLAG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not a Receivables item has been posted. This field is automatically updated by the Receivables Update program.
N=Not Posted
X=Don't Post
Y=Posted
24 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
25 PROCESS_FLAG Character(1) VARCHAR2(1) NOT NULL Process Flag
A=Purge All
S=Only purge items with at least
26 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
27 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
28 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
29 APPL_JRNL_ID Character(10) VARCHAR2(10) NOT NULL Journal Template
30 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
31 CONSIGNED_FLAG Character(1) VARCHAR2(1) NOT NULL Consigned Flag
32 DESTIN_GL_BU Character(5) VARCHAR2(5) NOT NULL Destination GL Business Unit
33 DESTIN_BU Character(5) VARCHAR2(5) NOT NULL Destination Unit
34 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
35 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
36 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
37 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
38 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW

39 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

40 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PRODUCT_BUGL_VW

41 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_BUGL_VW

42 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASSCF_BUGL_VW

43 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_BUGL_VW

44 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUD_REF_BUGL_VW

45 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

46 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

47 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

48 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CF1_BUGL_VW

49 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CF2_BUGL_VW

50 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CF3_BUGL_VW

51 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit

Prompt Table: %EDIT_BU_PC

52 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: %EDIT_PROJECT

53 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID

Prompt Table: %EDIT_ACTIVITY

54 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type

Prompt Table: PROJ_RESTYPE_FS
Set Control Field: BUSINESS_UNIT_PC

55 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category

Prompt Table: %EDIT_RES_CAT
Set Control Field: BUSINESS_UNIT_PC

56 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory

Prompt Table: %EDIT_RES_SUB
Set Control Field: BUSINESS_UNIT_PC

57 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type

Prompt Table: %EDIT_ANALYSIS
Set Control Field: BUSINESS_UNIT_PC

58 CONTAINER_ID Character(10) VARCHAR2(10) NOT NULL Container ID
59 COUNTING_EVENT_ID Number(15,0) DECIMAL(15) NOT NULL Counting Event ID
60 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
61 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
62 FROM_PRDN_AREA Character(10) VARCHAR2(10) NOT NULL From Production Area
63 FROM_PRDN_TYPE Character(2) VARCHAR2(2) NOT NULL From Production Type
PR=Production
RW=Rework
SV=Service
TD=Teardown
64 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
65 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
66 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
67 ORDER_NO Character(10) VARCHAR2(10) NOT NULL Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
68 PRDN_AREA_CODE Character(10) VARCHAR2(10) NOT NULL Production Area
69 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
70 PRODUCTION_TYPE Character(2) VARCHAR2(2) NOT NULL JNW 11/1/98 (CN#SF800-13) activated teardown xlat
PR=Production
RW=Rework
SV=Service
TD=Teardown
71 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
72 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
73 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
74 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
75 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
76 STAGED_DATE Date(10) DATE Staged Date
77 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
78 STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1
79 STOR_LEVEL_2 Character(4) VARCHAR2(4) NOT NULL Storage Level 2
80 STOR_LEVEL_3 Character(4) VARCHAR2(4) NOT NULL Storage Level 3
81 STOR_LEVEL_4 Character(4) VARCHAR2(4) NOT NULL Storage Level 4
82 TO_PRDN_AREA Character(10) VARCHAR2(10) NOT NULL To Production Area
83 TO_PRDN_TYPE Character(2) VARCHAR2(2) NOT NULL To Production Type
PR=Production
RW=Rework
SV=Service
TD=Teardown
84 TO_STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
85 TO_STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1
86 TO_STOR_LEVEL_2 Character(4) VARCHAR2(4) NOT NULL Storage Level 2
87 TO_STOR_LEVEL_3 Character(4) VARCHAR2(4) NOT NULL Storage Level 3
88 TO_STOR_LEVEL_4 Character(4) VARCHAR2(4) NOT NULL Storage Level 4
89 TRANSACTION_SOURCE Character(2) VARCHAR2(2) NOT NULL Transaction Source
90 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
91 SHIP_ID Character(10) VARCHAR2(10) NOT NULL Shipping ID