PMT_INQ_SH_VWLG

(SQL View)
Index Back

Payments keyed by Supplier


SELECT a.remit_setid , a.remit_vendor , a.emplid , a.bank_setid , a.bank_cd , a.bank_acct_key , a.pymnt_method , a.pymnt_id_ref , d.language_cd , a.pymnt_id , a.bank_account_num , v.name1 , %subrec(address_sbr2, d) , a.pymnt_handling_cd , a.pay_cycle , a.doc_type , a.doc_seq_nbr , a.doc_seq_status , BNK.DESCR , a.descrlong , a.vndr_loc , a.schedule_id , a.single_pymnt_flg , a.source_txn , a.batch_id , a.pmt_id , a.bank_ref_id , C.XLATLONGNAME FROM (ps_payment_tbl a LEFT OUTER JOIN PSXLATITEM C ON c.fieldname = 'STL_THROUGH' AND c.fieldvalue = A.STL_THROUGH) , PS_BANK_CODE_VW BNK , PS_VENDOR_ADDR_LNG d , ps_vendor_lang v WHERE a.pymnt_status <> 'X' AND BNK.SETID = a.BANK_SETID AND BNK.BANK_CD = a.BANK_CD AND d.setid = a.remit_setid AND d.vendor_id = a.remit_vendor AND d.address_seq_num = ( SELECT MAX(b.remit_addr_seq_num) FROM ps_pymnt_vchr_xref b WHERE b.remit_setid = a.remit_setid AND b.remit_vendor = a.remit_vendor AND b.vndr_loc = a.vndr_loc AND b.bank_setid = a.bank_setid AND b.bank_cd = a.bank_cd AND b.bank_acct_key = a.bank_acct_key AND b.pymnt_id = a.pymnt_id) AND d.effdt = ( SELECT MAX(i.effdt) FROM PS_VENDOR_ADDR_LNG i WHERE i.setid = a.remit_setid AND i.vendor_id = a.remit_vendor AND i.address_seq_num = d.address_seq_num AND i.effdt <= a.creation_dt) AND v.setid = a.remit_setid AND v.vendor_id = a.remit_vendor

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 REMIT_SETID Character(5) VARCHAR2(5) NOT NULL Remit SetID

Prompt Table: SP_SETRMT_NONVW

2 REMIT_VENDOR Character(10) VARCHAR2(10) NOT NULL Remit Vendor
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 BANK_SETID Character(5) VARCHAR2(5) NOT NULL The PeopleSoft tableset ID associated with a given bank/counterparty.

Default Value: OPR_BANK_VW_AP.BANK_SETID

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

Prompt Table: BANK_CD_TBL

6 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
7 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
8 PYMNT_ID_REF Character(20) VARCHAR2(20) NOT NULL Payment Reference
9 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
10 PYMNT_ID Character(10) VARCHAR2(10) NOT NULL Payment Number
11 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
12 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1

Default Value: VENDOR_ADDR.NAME1

13 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

14 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
15 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
16 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
17 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
18 CITY Character(30) VARCHAR2(30) NOT NULL City
19 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
20 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
21 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
22 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
23 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
24 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
25 COUNTY Character(30) VARCHAR2(30) NOT NULL County
26 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: STATE_TBL

27 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
28 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
29 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

30 PYMNT_HANDLING_CD Character(2) VARCHAR2(2) NOT NULL Payment Handling
31 PAY_CYCLE Character(6) VARCHAR2(6) NOT NULL Pay Cycle
32 DOC_TYPE Character(8) VARCHAR2(8) NOT NULL Specifies the business purpose of a financial transaction in countries that require all financial transactions to be tracked as "documents". A Document Type is associated with one and only one Journal Code.
33 DOC_SEQ_NBR Character(12) VARCHAR2(12) NOT NULL Specifies the sequence number assigned to each financial transaction (a document). The sequence number may be manually entered or system-generated.
34 DOC_SEQ_STATUS Character(1) VARCHAR2(1) NOT NULL A flag that indicates a document sequencing error. If there is no error the field is blank and document is considered valid for posting.
1=Document Sequencing Disabled
A=GL BU Undefined
B=GL BU Blank
C=Accounting Date blank
D=Doc Type Blank
E=Jrnl Type, Code, Doc Undefine
F=Sequence Range Undefine
G=Max. Sequence Number Reached
H=Manual Nbr for Auto Doc Type
I=No Manual Number Entered
J=Duplicate Manual Number
K=Invalid Ledger
L=Invalid Ledger Group
N=No Status
35 DESCR Character(30) VARCHAR2(30) NOT NULL Description
36 DESCRLONG Long Character CLOB Long Description
37 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
38 SCHEDULE_ID Character(10) VARCHAR2(10) NOT NULL Schedule ID
39 SINGLE_PYMNT_FLG Character(1) VARCHAR2(1) NOT NULL Single Payment
40 SOURCE_TXN Character(4) VARCHAR2(4) NOT NULL Source Transaction
41 BATCH_ID Character(18) VARCHAR2(18) NOT NULL Batch ID
42 PMT_ID Character(15) VARCHAR2(15) NOT NULL Payment id
43 BANK_REF_ID Character(16) VARCHAR2(16) NOT NULL A reference identifier associated with a given bank/counterparty transaction.
44 DESCR30 Character(30) VARCHAR2(30) NOT NULL Description