CM_KK_LINE0_VW

(SQL View)
Index Back

INV Accounting Distribution

02/03 tw B2608/RES119419/INC72100001: This view is used by cm_kk_line_vw - selects unique transaction from cm_acctg_line table.

SELECT BUSINESS_UNIT , TRANSACTION_GROUP , ACCOUNTING_DT , MIN(ACCTG_LINE_NO) , INV_ITEM_ID , DT_TIMESTAMP , SEQ_NBR , MIN(ADJUST_TYPE) , MIN(CM_DT_TIMESTAMP_A) , MIN(CM_SEQ_NBR_A) , MIN(COST_ELEMENT) , LEDGER , LEDGER_GROUP , SUM(MONETARY_AMOUNT) , SUM(FOREIGN_AMOUNT) , DEBIT_CREDIT , INTRAUNIT_REF , CM_IU_INDICATOR FROM PS_CM_ACCTG_LINE WHERE TRANSACTION_GROUP IN ( SELECT TRANSACTION_GROUP FROM PS_CM_ACCTG_GRP_D WHERE PS_CM_ACCTG_GRP_D.CM_SOURCE_RECORD = 'TRANSACTION_INV') GROUP BY BUSINESS_UNIT , TRANSACTION_GROUP , ACCOUNTING_DT , INV_ITEM_ID , DT_TIMESTAMP , SEQ_NBR , LEDGER , LEDGER_GROUP , DEBIT_CREDIT, INTRAUNIT_REF , CM_IU_INDICATOR

# 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 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.
3 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
4 ACCTG_LINE_NO Number(15,0) DECIMAL(15) NOT NULL Accounting Line Number
5 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
6 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
7 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
8 ADJUST_TYPE Character(1) VARCHAR2(1) NOT NULL Adjustment Type
0=CM Only
A=VMI Return
D=Decrease
I=Increase
M=Misc Issue
R=Misc Return
S=Scrap
V=Scrap RTV
9 CM_DT_TIMESTAMP_A DateTime(26) TIMESTAMP 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd.
10 CM_SEQ_NBR_A Number(15,0) DECIMAL(15) NOT NULL 07/99 GMG CN800-9.0:
11 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
12 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
13 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
14 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.
15 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.
16 DEBIT_CREDIT Character(2) VARCHAR2(2) NOT NULL Debit / Credit Indicator
CR=Credit
DR=Debit
17 INTRAUNIT_REF Number(15,0) DECIMAL(15) NOT NULL IntraUnit Reference Nbr
18 CM_IU_INDICATOR Character(1) VARCHAR2(1) NOT NULL IU Balancing Entry