BNK_RCN_DTLX_VX(SQL View) |
Index Back |
---|---|
Retired: BNK_RCN_DTLX_VWAutoReconciliation Exceptions for External Transactions. 11/11/2008 RJV -- BNK_RCN_DTLX_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 ,'05' ,B.TRAN_REF_ID ,B.BANK_ACCT_RVL_AMT ,B.TRAN_DT ,'C' FROM PS_BANK_STMT_TBL A , PS_BNK_RCN_TRAN_VW 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_TRAN' AND A.RECON_STATUS NOT IN ('REC', 'UNR', 'NTF', 'DPI', 'DUP', 'MSC', 'NUL') AND B.RECON_TYPE = 'U' AND (A.RECON_REF_ID = B.TRAN_REF_ID OR (A.RECON_CYCLE_NBR = B.RECON_CYCLE_NBR AND A.RECORD_SEQ_NUMBER = B.RECORD_SEQ_NUMBER)) AND ((A.RECON_STATUS = 'AMT' AND B.BANK_ACCT_RVL_AMT <> A.RECON_TRAN_AMT AND B.TRAN_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.TRAN_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 >= 0 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 (B.BANK_ACCT_RVL_AMT < 0 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.TRAN_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 >= 0 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 (B.BANK_ACCT_RVL_AMT < 0 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 | TRAN_STATUS | Character(1) | VARCHAR2(1) NOT NULL | Generic reconciliation record view that contains transaction status |