BNK_RCN_DTL_VW

(SQL View)
Index Back

Exceptions: AP Disbursements

AutoReconciliation Exceptions for AP Disbursements 11/03/2004 CMH -- Mapping VALUE_DT to TRAN_DT 07/07/2008 RJV -- Removed BNK_RCN_VW references due to performance issues. Simplified view to reduce the number of views within views.

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 ,%Round(%DecMult(%DecDiv(%DecMult(B.PYMNT_AMT, - 1), R.RATE_DIV), R.RATE_MULT), V.DECIMAL_POSITIONS) ,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_PAYMENT_TBL B , PS_BANK_ACCT_DEFN C , PS_BANK_ACCT_CURR D , PS_RT_RATE_TBL R , PS_CURRENCY_CD_TBL V WHERE B.BNK_ID_NBR = A.BNK_ID_NBR AND B.BANK_ACCOUNT_NUM = A.BANK_ACCOUNT_NUM AND ((A.RECON_REF_ID = B.PYMNT_ID_REF AND B.PMT_ID = ' ' ) OR A.RECON_REF_ID = B.PMT_ID) AND A.RECON_STATUS NOT IN ('REC', 'UNR', 'NTF', 'DPI', 'DUP', 'MSC', 'NUL') AND B.RECON_TYPE IN ('U', 'V') AND C.SETID = B.BANK_SETID AND C.BANK_CD = B.BANK_CD AND C.BANK_CD_CPTY = B.BANK_CD AND C.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND D.SETID = C.SETID AND D.BANK_CD = C.BANK_CD AND D.BANK_CD_CPTY = C.BANK_CD_CPTY AND D.BANK_ACCT_KEY = C.BANK_ACCT_KEY AND D.CURRENCY_CD = B.CURRENCY_PYMNT AND R.RT_RATE_INDEX = D.RATE_INDEX AND R.TERM = 0 AND R.FROM_CUR = D.CURRENCY_CD AND R.TO_CUR = C.CURRENCY_CD AND R.RT_TYPE = D.CUR_RT_TYPE AND R.EFFDT = ( SELECT MAX(R_ED.EFFDT) FROM PS_RT_RATE_TBL R_ED WHERE R_ED.RT_RATE_INDEX = R.RT_RATE_INDEX AND R_ED.TERM = R.TERM AND R_ED.FROM_CUR = R.FROM_CUR AND R_ED.TO_CUR = R.TO_CUR AND R_ED.RT_TYPE = R.RT_TYPE AND R_ED.EFFDT <= B.VALUE_DT) AND V.CURRENCY_CD = C.CURRENCY_CD AND V.EFFDT = ( SELECT MAX(V_ED.EFFDT) FROM PS_CURRENCY_CD_TBL V_ED WHERE V_ED.CURRENCY_CD = V.CURRENCY_CD AND V_ED.EFFDT <= %CurrentDateIn)

# 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