CM_KK_LINE_VW

(SQL View)
Index Back

INV Accounting Distribution

Cost Management Accounting Entry table. Interfaces to General Ledger. GMG CM750: Remove CUR_EXCHNG_RT; add RATE_MULT, RATE_DIV. 5/20/99 ej CN#CM800-1.0: Added BUDGET_HDR_STATUS, BUDGET_LINE_STATUS, and BUDGET_DT for commitment control. KDN CM800-7.1: Added ALTACCT & AFFILIATE fields. 06/10/99 ebn CN#CM800-9.0 : Added CM_BOOK, CM_DT_TIMESTAMP, CM_SEQ_RECEIPT, CM_SEQ_DEPLETE, and CM_SEQ_NBR for LIFO/FIFO Enhancement. 07/04 dw Ice 717778000 add activity_id and resource_type

SELECT A.business_unit , A.inv_item_id , A.dt_timestamp , A.seq_nbr , A.acctg_line_no , A.cm_book , A.transaction_group , A.accounting_dt , A.distrib_type , A.account , A.altacct , A.deptid , %subrec(cf16_an_sbr, A) , %subrec(pc_cf1_n_sbr, A) , A.statistics_code , A.currency_cd , C.MONETARY_AMOUNT , A.statistic_amount , C.FOREIGN_AMOUNT , A.foreign_currency , A.distrib_line_num , A.business_unit_gl , A.gl_distrib_status , A.process_instance , A.ledger , A.ledger_group , A.transaction_source , A.trans_line_type , A.mg_proc_instance , A.debit_credit , A.budget_hdr_status , A.budget_line_status , A.budget_dt , A.cm_dt_timestamp , A.cm_seq_nbr , A.kk_amount_type , A.kk_tran_over_dttm , A.kk_tran_over_flag , A.kk_tran_over_oprid , B.source_bus_unit , B.req_id , B.req_line_nbr , B.req_sched_nbr , B.req_distrib_nbr , A.kk_process_prior , 'N' , C.QTY FROM PS_CM_ACCTG_LINE A , PS_TRANSACTION_INV B , PS_CM_KK_LINE0TMP 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 A.TRANSACTION_GROUP = C.TRANSACTION_GROUP AND A.ACCOUNTING_DT = C.ACCOUNTING_DT AND A.ACCTG_LINE_NO = C.ACCTG_LINE_NO AND A.GL_DISTRIB_STATUS IN ('N','H') AND C.CM_IU_INDICATOR = 'N'

# 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 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
4 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
5 ACCTG_LINE_NO Number(15,0) DECIMAL(15) NOT NULL Accounting Line Number
6 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
7 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.
8 ACCOUNTING_DT Date(10) DATE NOT NULL The accounting entry construction date for a given transaction (a generic field that crosses multiple
9 DISTRIB_TYPE Character(10) VARCHAR2(10) NOT NULL Distrib. Type

Prompt Table: CM_DISTR_TYPE

10 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account

Prompt Table: GL_ACCOUNT_TBL

11 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
12 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW

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

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

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

Prompt Table: %EDIT_BU_PC

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

Prompt Table: %EDIT_PROJECT

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

Prompt Table: %EDIT_ACTIVITY

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

Prompt Table: PROJ_RESTYPE_FS
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_RES_CAT
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_RES_SUB
Set Control Field: BUSINESS_UNIT_PC

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

Prompt Table: %EDIT_ANALYSIS
Set Control Field: BUSINESS_UNIT_PC

32 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
33 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
34 MONETARY_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account.
35 STATISTIC_AMOUNT Signed Number(17,2) DECIMAL(15,2) NOT NULL Specifies the amount associated with a statistical account on a journal line or a distribution line. It represents a quantity rather than a monetary amount and is qualified by the Unit of Measure associated with the STATISTICS_CODE or statistics ACCOUNT.
36 FOREIGN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item.
37 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
38 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
39 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
40 GL_DISTRIB_STATUS Character(1) VARCHAR2(1) NOT NULL Distribution Status
C=Available to Contracts
D=Distributed
G=Generated
H=Hold
I=Ignored
J=Creating Journals
M=Modified
N=None
P=To be processed
X=Waiting for Reversal
41 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
42 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
43 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
44 TRANSACTION_SOURCE Character(2) VARCHAR2(2) NOT NULL Transaction Source
45 TRANS_LINE_TYPE Character(3) VARCHAR2(3) NOT NULL Transaction Line Type
0=Regular
1=Interunit Transfer
2=Gain
3=Loss
4=PPV (Favorable)
5=PPV (Unfavorable)
6=ERV (Favorable)
7=ERV (Unfavorable)
8=InterCompany Transfer
46 MG_PROC_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
47 DEBIT_CREDIT Character(2) VARCHAR2(2) NOT NULL Debit / Credit Indicator
CR=Credit
DR=Debit
48 BUDGET_HDR_STATUS Character(1) VARCHAR2(1) NOT NULL Budget Checking Header Status
E=Error in Budget Check
I=Document In Processing
N=Not Budget Checked
P=Provisionally Valid
V=Valid
49 BUDGET_LINE_STATUS Character(1) VARCHAR2(1) NOT NULL -> SL - 15-AUG-2002 MISC_CRITERIA label has been added <-
B=Bypass
E=Error
N=Not Chk'd
V=Valid
W=Warning
50 BUDGET_DT Date(10) DATE Budget Date
51 CM_DT_TIMESTAMP DateTime(26) TIMESTAMP Receipt dttm.
52 CM_SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
53 KK_AMOUNT_TYPE Character(1) VARCHAR2(1) NOT NULL Commitment Control Amount Type
0=Budget
1=Actuals and Recognized
2=Encumbrance
3=Pre-Encumbrance
4=Collected Revenue
5=Planned
7=Actuals, Recognize and Collect
9=Dynamic
54 KK_TRAN_OVER_DTTM DateTime(26) TIMESTAMP Commitment Control source transaction override datetime
55 KK_TRAN_OVER_FLAG Character(1) VARCHAR2(1) NOT NULL Commitment Control source transaction override flag
N=No
Y=Yes
56 KK_TRAN_OVER_OPRID Character(30) VARCHAR2(30) NOT NULL Commitment Control source transaction override operator
57 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
58 REQ_ID Character(10) VARCHAR2(10) NOT NULL Requisition ID
59 REQ_LINE_NBR Number(5,0) INTEGER NOT NULL Requisition Line Number
60 REQ_SCHED_NBR Number(3,0) SMALLINT NOT NULL Requisition Schedule Number
61 REQ_DISTRIB_NBR Number(5,0) INTEGER NOT NULL Requisition Distrib Number
62 KK_PROCESS_PRIOR Character(1) VARCHAR2(1) NOT NULL Process Prior Document
63 KK_CLOSE_PRIOR Character(1) VARCHAR2(1) NOT NULL Close Prior Transaction
64 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity