TR_HV_DTL_TR_VW

(SQL View)
Index Back

SELECT CF.SOURCE_BUS_UNIT ,S.SETID ,S.SETTLEMENT_ID ,CF.BANK_SETID ,CF.BANK_CD ,CF.PYMNT_METHOD ,CF.FORMAT_ID ,CF.CURRENCY_CD ,%DecMult(CF.AMOUNT ,-1) ,S.NAME1 ,CF.TR_SOURCE_ID FROM PS_CASH_FLOW_TR CF ,PS_SET_CNTRL_REC SC1 ,PS_STL_INSTRUCTION S WHERE SC1.SETCNTRLVALUE=CF.SOURCE_BUS_UNIT AND SC1.RECNAME='STL_INSTRUCTION' AND CF.SETTLEMENT_ID=S.SETTLEMENT_ID AND SC1.SETID=S.SETID AND CF.CURRENCY_CD=S.CURRENCY_CD AND CF.TR_SOURCE_CD <> 'W' AND CF.BUSINESS_DATE = %CurrentDateIn AND CF.AMOUNT < 0 AND CF.PYMNT_SELCT_STATUS IN ('N' ,'X') AND ( (CF.TR_SOURCE_CD = 'N') OR (CF.TR_SOURCE_CD <> 'N' AND CF.CASH_FLOW_LINE = 0 AND CF.CF_SOURCE_REF_ID = ' ') OR (CF.TR_SOURCE_CD <> 'N' AND CF.CASH_FLOW_LINE <> 0 AND CF.CF_SOURCE_REF_ID = ' ' AND NET_STATUS = 'O') ) AND CF.PMT_ID NOT IN ( SELECT DTL.PMT_ID FROM PS_PMT_DETAIL_TBL DTL WHERE DTL.PYMNT_DT = %CurrentDateIn AND DTL.PMT_STATUS NOT IN ('C', 'CM', 'PC') AND DTL.PYMNT_METHOD <> 'DD') AND CF.BANK_CD_CUST = CF.BANK_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PARTY_SETID Character(5) VARCHAR2(5) NOT NULL SetID
3 PARTY_ID Character(30) VARCHAR2(30) NOT NULL Payee ID
4 BANK_SETID Character(5) VARCHAR2(5) NOT NULL The PeopleSoft tableset ID associated with a given bank/counterparty.
5 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code
6 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
7 EFT_LAYOUT_CD Character(10) VARCHAR2(10) NOT NULL EFT Layout Code
8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
9 AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount
10 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
11 DESCR30 Character(30) VARCHAR2(30) NOT NULL Description