TR_WC_ACCTG_VW

(SQL View)
Index Back

TR Acctg Summary WC


SELECT %subrec(tra_wc_sbr, A) , ( SELECT SUM(B.MONETARY_AMOUNT) FROM PS_TRA_ACCTG_LINE B WHERE B.MONETARY_AMOUNT > 0 AND B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT) , ( SELECT SUM(B.MONETARY_AMOUNT) FROM PS_TRA_ACCTG_LINE B WHERE B.MONETARY_AMOUNT < 0 AND B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT) ,( SELECT DISTINCT B.CURRENCY_CD FROM PS_TRA_ACCTG_LINE B WHERE B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.ACCOUNTING_LINE = 1 ) ,( SELECT SUM(B.FOREIGN_AMOUNT) FROM PS_TRA_ACCTG_LINE B WHERE B.FOREIGN_AMOUNT > 0 AND B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT) , ( SELECT SUM(B.FOREIGN_AMOUNT) FROM PS_TRA_ACCTG_LINE B WHERE B.FOREIGN_AMOUNT < 0 AND B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT) , ( SELECT DISTINCT B.FOREIGN_CURRENCY FROM PS_TRA_ACCTG_LINE B WHERE B.ACCOUNTING_ID = A.ACCOUNTING_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.ACCOUNTING_LINE = 1 ) FROM PS_TRA_ACCTG_HDR A

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BU_FS_NONVW

2 ACCOUNTING_ID Character(10) VARCHAR2(10) NOT NULL Represents the unique alphanumeric identifier for treasury-specific accounting entries.

Default Value: NEXT

Prompt Table: TRA_ACCTG_HDR

3 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description
4 TRA_SOURCE_CD Character(1) VARCHAR2(1) NOT NULL Note: Changes to Translate Values must also be made to TR_SOURCE_CD and SOURCE_TYPE. These 3 fields must be kept in sync. Values that are inactive are for use in TR Cash Flows only
B=BSP
D=Deals
E=Deal Fees
F=Facility Fees
H=Hedges
I=Interest
M=Deal: Estimated Maturity Accr
N=Netted Deal
O=Other
P=Investment Pools
R=EFT Fees
S=Securities
T=LC Fees
W=EFT Requests
X=Bank Transfers
5 EVENT_ID Character(20) VARCHAR2(20) NOT NULL The unique key identifier that enumerates Treasury accounting events. Accounting events are transaction events that have been created by the Treasury sources (deals, fees, bank transfers, EFTs, etc).

Prompt Table: %EDIT_EVENT_ID

6 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple

Default Value: %date

7 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
8 TRANSACTION_LINE Number(3,0) SMALLINT NOT NULL The separate and distinct base instrument type components of a given deal transaction.
9 TRANSACTION_LEG Number(1,0) SMALLINT NOT NULL The separate and distinct business positions of a given deal transaction line.
1=Pay Leg
2=Receive Leg
10 ACCTG_EVENT_TYPE Character(2) VARCHAR2(2) NOT NULL Accounting types for deal capture and hedging
11 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
12 TRAN_REF_ID Character(20) VARCHAR2(20) NOT NULL Represents the unique transaction identifier in bank reconciliation processing.
13 TRANSACTION_DT Date(10) DATE Transaction date (often used as trade date)

Default Value: %date

14 ERROR_STATUS Character(2) VARCHAR2(2) NOT NULL Error Status
1=None
2=Unbalanced
3=CF Combo Error
4=No Exchange Rate
5=Acct Not Specified
6=IU Processor Error
7=Document Sequencing Error

Default Value: 1

15 ACCTG_STATUS Character(1) VARCHAR2(1) NOT NULL Indicates the state of a set of accounting entries.
C=Needs Correction
E=Error
F=Final
P=Provisional

Default Value: P

16 TRA_REVIEW_STATUS Character(1) VARCHAR2(1) NOT NULL Allows the user to indicate that an accounting entry for a given accounting template is subject to

Y/N Table Edit

Default Value: Y

17 BUILD_ACCOUNTING Character(1) VARCHAR2(1) NOT NULL Represents that the accounting build process for a given accounting entry has been completed.
A=Auto Accounting
O=On-Line Accounting
R=Reversal Accounting

Default Value: O

18 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
19 ORIG_OPRID Character(30) VARCHAR2(30) NOT NULL User ID
20 ORIG_DTTM DateTime(26) TIMESTAMP A system generated value that reflects the original creation and saving of a given transaction.
21 LAST_MAINT_OPRID Character(30) VARCHAR2(30) NOT NULL Last Maintained By Operator ID
22 LAST_MAINT_DTTM DateTime(26) TIMESTAMP A system generated value that reflects the date and time a transaction was last modified
23 ACCTG_TMPL_ID Character(15) VARCHAR2(15) NOT NULL A unique key identifier that represents a predefined accounting template, that is a set of rules used to generate debits and credits.

Prompt Table: TRA_TMPL_HDR
Set Control Field: BUSINESS_UNIT

24 DOC_TYPE Character(8) VARCHAR2(8) NOT NULL Specifies the business purpose of a financial transaction in countries that require all financial transactions to be tracked as "documents". A Document Type is associated with one and only one Journal Code.

Prompt Table: DOC_TYPE_TBL

25 INTEGRATION_STATUS Character(3) VARCHAR2(3) NOT NULL Treasury integration status. Used to keep track of status for accounting entries that are passed to EnterpriseOne.
ERR=Error
LOA=Loaded
NA=Not Applicable
PEN=Pending
POS=Posted
REC=Received
SEN=Sent
26 BATCH_ID Character(18) VARCHAR2(18) NOT NULL Batch ID
27 ORIG_ACCOUNTING_ID Character(10) VARCHAR2(10) NOT NULL This fields contains the accounting id of the entries that have been reversed.
28 TOTAL_DEBIT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL The total debit amount for a given accounting entry build.
29 TOTAL_CREDIT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL The total credit amount for a given accounting entry build.
30 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
31 TOT_FOREIGN_DEBITS Signed Number(28,3) DECIMAL(26,3) NOT NULL Represents a running total of the foreign debit amounts in a journal entry. It is maintained by PeopleSoft General Ledger as lines are entered. Foreign amounts represent amounts in a currency different than the base currency of the business unit.
32 TOT_FOREIGN_CREDIT Signed Number(28,3) DECIMAL(26,3) NOT NULL Represents a running total of the foreign credit amounts in a journal entry. It is maintained by PeopleSoft General Ledger as lines are entered. Foreign amounts represent amounts in a currency different than the base currency of the business unit.
33 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code