BNK_RCN_DISBR

(SQL View)
Index Back

Revaluation: AP Disbursements

View that revalues AP Disbursements into bank account's default currency

SELECT BANK_SETID , A.BANK_CD , A.BANK_ACCT_KEY , A.PYMNT_ID , A.PYMNT_ID_REF , A.BNK_ID_NBR , A.BANK_ACCOUNT_NUM , A.BRANCH_ID , A.CHECK_DIGIT , A.NAME1 , A.PYMNT_DT , A.value_dt , A.PYMNT_AMT , A.CURRENCY_PYMNT , A.PYMNT_METHOD , A.PYMNT_STATUS , A.PYMNT_RECONCILE_DT , A.RECON_TYPE , A.RECON_CYCLE_NBR , A.RECORD_SEQ_NUMBER , A.STTLMNT_DT_EST , A.RECONCILE_OPRID , A.RECON_STATUS , A.STTLMNT_DT_ACTUAL , A.BUSINESS_UNIT_GL , %Round(%DecMult(%DecDiv(A.PYMNT_AMT , B.RATE_DIV) , B.RATE_MULT) , B.DECIMAL_POSITIONS) , A.RECON_RUN_ID , B.BASE_CURRENCY_BNK , A.PMT_ID , A.CASH_CLEARED_FLG FROM PS_BNK_RCN_DISBRSE A , PS_BNK_CURR_RVL_VW B WHERE A.BANK_SETID = B.SETID AND A.BANK_CD = B.BANK_CD AND A.BANK_ACCT_KEY = B.BANK_ACCT_KEY AND B.BNK_ID_NBR = A.BNK_ID_NBR AND B.BANK_ACCOUNT_NUM = A.BANK_ACCOUNT_NUM AND A.CURRENCY_PYMNT = B.TXN_CURRENCY_CD AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_BNK_CURR_RVL_V2 WHERE SETID = B.SETID AND BANK_CD = B.BANK_CD AND BANK_ACCT_KEY = B.BANK_ACCT_KEY AND BASE_CURRENCY_BNK = B.BASE_CURRENCY_BNK AND TXN_CURRENCY_CD = B.TXN_CURRENCY_CD AND EFFDT <= A.PYMNT_DT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BANK_SETID Character(5) VARCHAR2(5) NOT NULL The PeopleSoft tableset ID associated with a given bank/counterparty.

Prompt Table: BANK_ACCT_VW

2 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code

Prompt Table: BANK_ACCT_VW

3 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

Prompt Table: BANK_ACCT_VW

4 PYMNT_ID Character(10) VARCHAR2(10) NOT NULL Payment Number
5 PYMNT_ID_REF Character(20) VARCHAR2(20) NOT NULL Payment Reference
6 BNK_ID_NBR Character(20) VARCHAR2(20) NOT NULL A literal alphanumeric attribute that uniquely identifies a given bank or counterparty.
7 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
8 BRANCH_ID Character(10) VARCHAR2(10) NOT NULL The local branch office identifier associated with a given bank/counterparty.
9 CHECK_DIGIT Character(2) VARCHAR2(2) NOT NULL Check Digit
10 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
11 PYMNT_DT Date(10) DATE Payment Date

Default Value: %date

12 VALUE_DT Date(10) DATE Equivalent to a deal transaction's settlement date.
13 PYMNT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Payment Amount
14 CURRENCY_PYMNT Character(3) VARCHAR2(3) NOT NULL Payment Currency
15 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
16 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
17 PYMNT_RECONCILE_DT Date(10) DATE Date Reconciled
18 RECON_TYPE Character(1) VARCHAR2(1) NOT NULL Represents a series of options as to how a treasury wishes to perform reconciliation for a given bank
A=Automatically Reconciled
B=Balance System(s) to BankTran
F=Forced to Reconcile
M=Manually Reconciled
S=Semi Manual
U=Unreconciled

Default Value: U

19 RECON_CYCLE_NBR Number(10,0) DECIMAL(10) NOT NULL The bank statement ID.
20 RECORD_SEQ_NUMBER Number(10,0) DECIMAL(10) NOT NULL An internal work field utilized to enumerate database records in bank statement processing.
21 STTLMNT_DT_EST Date(10) DATE Date in which a deal transaction is estimated to be settled with a counterparty.
22 RECONCILE_OPRID Character(30) VARCHAR2(30) NOT NULL The user ID that performed the reconciliation for a given transaction.
23 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

Default Value: UNR

24 STTLMNT_DT_ACTUAL Date(10) DATE Date in which a deal transaction is actually settled with a counterparty.
25 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
26 BANK_ACCT_RVL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Field used to store the amount on a transaction revalued in the base currency of the transactions bank account.
27 RECON_RUN_ID Character(15) VARCHAR2(15) NOT NULL Recon Run ID
28 BASE_CURRENCY_BNK Character(3) VARCHAR2(3) NOT NULL The base currency of the subject bank general ledger business unit.
29 PMT_ID Character(15) VARCHAR2(15) NOT NULL Payment id
30 CASH_CLEARED_FLG Character(1) VARCHAR2(1) NOT NULL Cash Cleared Flag