BNK_RCN_DTL_VX

(SQL View)
Index Back

Retired: BNK_RCN_DTL_VW

AutoReconciliation Exceptions for AP Disbursements 11/03/2004 CMH -- Mapping VALUE_DT to TRAN_DT 07/07/2008 RJV -- BNK_RCN_DTL_VW simplified due to performance issues. This is a copy of the original view for reference purposes.

SELECT A.BNK_ID_NBR ,A.BANK_ACCOUNT_NUM ,A.RECON_CYCLE_NBR ,A.RECORD_SEQ_NUMBER ,A.RECON_REF_ID ,A.RECON_BANK_DT ,A.RECON_TRAN_AMT ,A.CURRENCY_CD ,A.VALUE_DT ,A.RECON_TRANS_CODE ,A.RECON_STATUS ,A.STMT_ACTIVITY_TYPE ,'02' ,CASE WHEN B.PMT_ID = ' ' THEN B.PYMNT_ID_REF ELSE B.PMT_ID END ,B.BANK_ACCT_RVL_AMT ,B.value_dt ,B.PYMNT_METHOD ,B.BANK_SETID ,B.BANK_CD ,B.BANK_ACCT_KEY ,B.PYMNT_ID ,B.NAME1 ,B.PYMNT_STATUS ,B.CASH_CLEARED_FLG FROM PS_BANK_STMT_TBL A , PS_BNK_RCN_DISBR B , PS_BNK_RCN_VW C WHERE B.BNK_ID_NBR = A.BNK_ID_NBR AND B.BANK_ACCOUNT_NUM = A.BANK_ACCOUNT_NUM AND C.BNK_ID_NBR = B.BNK_ID_NBR AND C.BANK_ACCOUNT_NUM = B.BANK_ACCOUNT_NUM AND C.TRANSACTION_TBL = 'PS_BNK_RCN_DISBRSE' AND ((B.PMT_ID = ' ' AND A.RECON_REF_ID = B.PYMNT_ID_REF) OR A.RECON_REF_ID = B.PMT_ID) AND B.RECON_TYPE IN ('U', 'V') AND A.RECON_STATUS NOT IN ('REC', 'UNR', 'NTF', 'DPI', 'DUP', 'MSC', 'NUL') AND ((A.RECON_STATUS = 'AMT' AND B.BANK_ACCT_RVL_AMT <> A.RECON_TRAN_AMT AND B.VALUE_DT BETWEEN %DateAdd(A.RECON_BANK_DT, 0 - C.BNK_LIMIT_LOW_DAY) AND %DateAdd(A.RECON_BANK_DT, C.BNK_LIMIT_HIGH_DAY)) OR (A.RECON_STATUS = 'DAT' AND B.VALUE_DT <> A.RECON_BANK_DT AND ((C.BNK_ACTIVE_LIMIT = 'A' AND B.BANK_ACCT_RVL_AMT BETWEEN A.RECON_TRAN_AMT - BNK_LIMIT_LOW_AMT AND A.RECON_TRAN_AMT + BNK_LIMIT_HIGH_AMT) OR (C.BNK_ACTIVE_LIMIT = 'P' AND B.BANK_ACCT_RVL_AMT BETWEEN %DecMult(%DecDiv(100 - BNK_LIMIT_LOW_PCT, 100), A.RECON_TRAN_AMT) AND %DecMult(%DecDiv(100 + BNK_LIMIT_HIGH_PCT, 100), A.RECON_TRAN_AMT)))) OR (A.RECON_STATUS NOT IN ('AMT', 'DAT') AND B.VALUE_DT BETWEEN %DateAdd(A.RECON_BANK_DT, 0 - C.BNK_LIMIT_LOW_DAY) AND %DateAdd(A.RECON_BANK_DT, C.BNK_LIMIT_HIGH_DAY) AND ((C.BNK_ACTIVE_LIMIT = 'A' AND B.BANK_ACCT_RVL_AMT BETWEEN A.RECON_TRAN_AMT - BNK_LIMIT_LOW_AMT AND A.RECON_TRAN_AMT + BNK_LIMIT_HIGH_AMT) OR (C.BNK_ACTIVE_LIMIT = 'P' AND B.BANK_ACCT_RVL_AMT BETWEEN %DecMult(%DecDiv(100 - BNK_LIMIT_LOW_PCT, 100), A.RECON_TRAN_AMT) AND %DecMult(%DecDiv(100 + BNK_LIMIT_HIGH_PCT, 100), A.RECON_TRAN_AMT)))) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BNK_ID_NBR Character(20) VARCHAR2(20) NOT NULL A literal alphanumeric attribute that uniquely identifies a given bank or counterparty.
2 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
3 RECON_CYCLE_NBR Number(10,0) DECIMAL(10) NOT NULL The bank statement ID.

Prompt Table: BNK_RCN_CYC

4 RECORD_SEQ_NUMBER Number(10,0) DECIMAL(10) NOT NULL An internal work field utilized to enumerate database records in bank statement processing.
5 RECON_REF_ID Character(20) VARCHAR2(20) NOT NULL The transaction reference identifier on the inbound bank statement.
6 RECON_BANK_DT Date(10) DATE The bank statement date.
7 RECON_TRAN_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL The bank statement transaction amount.
8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
9 VALUE_DT Date(10) DATE Equivalent to a deal transaction's settlement date.
10 RECON_TRANS_CODE Character(3) VARCHAR2(3) NOT NULL The PeopleSoft-specific bank transaction code
ACH=Automated Clearing House
B=Direct Debit
BA=Bank Adjustments
BOE=Bill of Exchange - Disburse
BOO=Bill of Order - Disburse
C=Trade Receipt
CHK=Check
D=Deposits
DD=Direct Debit - Disburse
EFT=Electronic Funds Transfer
F=Fee Expense
G=General Transaction
I=Interest Expense
M=Miscellaneous Transaction
MAN=Manual Check
P=Payment
R=Drafts
S=Stop Pay
TRW=Treasury Wire
U=Funding Receipt
V=Voided Payment
WIR=Wire - Disbursement
WRI=Wire - Incoming
11 RECON_STATUS Character(3) VARCHAR2(3) NOT NULL Reconciliation Status
ALG=Alignment Check
AMB=Ambiguous Match
AMT=Amounts Not Equal
CUR=Currency not Defined
DAT=Tran Date <> Value Date
DPI=Duplicate Input Transactions
DUP=Duplicate Transaction
MSC=Miscellaneous Transaction
NAM=Payee Names Not Equal
NTB=Not Found in Statement
NTF=Not Found In System
NTP=Not Found in POS Data
NUL=Null Transaction ID Ref
OVR=Overflow
PND=Pending Reconciliation
REC=Reconciled
RPR=Reprinted Check
RR=Requires Review - BSAC
STP=Stop Payment
TYP=Wrong Transaction Type
UNR=Unreconciled
VOI=Voided Check
12 STMT_ACTIVITY_TYPE Character(5) VARCHAR2(5) NOT NULL Represents a series of values that provide a more granular definition of a given reconcil
13 RECON_SOURCE Character(2) VARCHAR2(2) NOT NULL Represents the source system table(s) for reconciling items.
00=Bank Statement
01=Receivables Deposits
02=Payables
03=Treasury
04=Receivables Drafts
05=External Transactions
06=Receivables Payments
07=Direct Debits
14 TRAN_REF_ID Character(20) VARCHAR2(20) NOT NULL Represents the unique transaction identifier in bank reconciliation processing.
15 TRAN_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Represents a transaction amount in bank reconciliation processing.
16 TRAN_DT Date(10) DATE Represents the transaction date in bank reconciliation processing.
17 PYMNT_METHOD Character(3) VARCHAR2(3) NOT NULL Payment Method
ACH=Automated Clearing House
BEF=Draft - Customer EFT
BOO=Draft - Customer Initiated
CHK=System Check
D=Deposit
DD=Direct Debit
DFT=Draft - Supplier Initiated
DRA=Draft
EFT=Electronic Funds Transfer
GE=Giro - EFT
GM=Giro - Manual
LC=Letter of Credit
MAN=Manual Check
TRW=Treasury Wire
WIR=Wire Transfer
18 BANK_SETID Character(5) VARCHAR2(5) NOT NULL The PeopleSoft tableset ID associated with a given bank/counterparty.
19 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code
20 BANK_ACCT_KEY Character(4) VARCHAR2(4) NOT NULL A user defined unique identifier that facilitates the identification of a given account with a given bank
21 PYMNT_ID Character(10) VARCHAR2(10) NOT NULL Payment Number
22 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
23 PYMNT_STATUS Character(1) VARCHAR2(1) NOT NULL Payment Status
A=Alignment
E=ACH/EFT Prenote
L=Stale Dated Payment
N=Reprinted with same ref number
O=Overflow
P=Paid
R=Replaced
S=Stopped
T=Undo Escheatment
U=Undo Cancel
V=Void
W=Escheated Check
X=Deleted
24 CASH_CLEARED_FLG Character(1) VARCHAR2(1) NOT NULL Cash Cleared Flag