SCR_BNK_CMP_VW(SQL View) |
Index Back |
---|---|
SCR Bank Compare ViewThis view was created to eliminate the possibility of stale data. It compares the Master, Copy of Master at time of save, and the Draft tables to create data for reloading the pages. Each field will populated from the Draft table if changed or the Master record if it hasn't been changed. |
SELECT a.scr_id , a.scr_seq_num , a.vndr_loc , c.effdt , a.scr_acct_seq_nbr , a.scr_effdt , a.setid , a.vendor_id , a.bank_acct_seq_nbr , a.scr_chg_eff_when , a.scr_chng_type , (CASE WHEN a.descr <> b.descr THEN a.descr ELSE c.descr END) , (CASE WHEN a.default_ind <> b.default_ind THEN a.default_ind ELSE c.default_ind END) , (CASE WHEN a.country <> b.country THEN a.country ELSE c.country END) , (CASE WHEN a.address1 <> b.address1 THEN a.address1 ELSE c.address1 END) , (CASE WHEN a.address2 <> b.address2 THEN a.address2 ELSE c.address2 END) , (CASE WHEN a.address3 <> b.address3 THEN a.address3 ELSE c.address3 END) , (CASE WHEN a.address4 <> b.address4 THEN a.address4 ELSE c.address4 END) , (CASE WHEN a.city <> b.city THEN a.city ELSE c.city END) , (CASE WHEN a.num1 <> b.num1 THEN a.num1 ELSE c.num1 END) , (CASE WHEN a.num2 <> b.num2 THEN a.num2 ELSE c.num2 END) , (CASE WHEN a.house_type <> b.house_type THEN a.house_type ELSE c.house_type END) , (CASE WHEN a.addr_field1 <> b.addr_field1 THEN a.addr_field1 ELSE c.addr_field1 END) , (CASE WHEN a.addr_field2 <> b.addr_field2 THEN a.addr_field2 ELSE c.addr_field2 END) , (CASE WHEN a.addr_field3 <> b.addr_field3 THEN a.addr_field3 ELSE c.addr_field3 END) , (CASE WHEN a.county <> b.county THEN a.county ELSE c.county END) , (CASE WHEN a.state <> b.state THEN a.state ELSE c.state END) , (CASE WHEN a.postal <> b.postal THEN a.postal ELSE c.postal END) , (CASE WHEN a.geo_code <> b.geo_code THEN a.geo_code ELSE c.geo_code END) , (CASE WHEN a.in_city_limit <> b.in_city_limit THEN a.in_city_limit ELSE c.in_city_limit END) , (CASE WHEN a.bank_id_qual <> b.bank_id_qual THEN a.bank_id_qual ELSE c.bank_id_qual END) , (CASE WHEN a.bnk_id_nbr <> b.bnk_id_nbr THEN a.bnk_id_nbr ELSE c.bnk_id_nbr END) , (CASE WHEN a.branch_id <> b.branch_id THEN a.branch_id ELSE c.branch_id END) , (CASE WHEN a.bank_acct_type <> b.bank_acct_type THEN a.bank_acct_type ELSE c.bank_acct_type END) , (CASE WHEN a.bank_account_num <> b.bank_account_num THEN a.bank_account_num ELSE c.bank_account_num END) , (CASE WHEN a.check_digit <> b.check_digit THEN a.check_digit ELSE c.check_digit END) , (CASE WHEN a.dfi_id_qual <> b.dfi_id_qual THEN a.dfi_id_qual ELSE c.dfi_id_qual END) , (CASE WHEN a.dfi_id_num <> b.dfi_id_num THEN a.dfi_id_num ELSE c.dfi_id_num END) , (CASE WHEN a.beneficiary_bank <> b.beneficiary_bank THEN a.beneficiary_bank ELSE c.beneficiary_bank END) , (CASE WHEN a.beneficiary_bnk_ac <> b.beneficiary_bnk_ac THEN a.beneficiary_bnk_ac ELSE c.beneficiary_bnk_ac END) , (CASE WHEN a.benef_branch <> b.benef_branch THEN a.benef_branch ELSE c.benef_branch END) , (CASE WHEN a.benef_branch_ac <> b.benef_branch_ac THEN a.benef_branch_ac ELSE c.benef_branch_ac END) , (CASE WHEN a.country_code <> b.country_code THEN a.country_code ELSE c.country_code END) , (CASE WHEN a.phone <> b.phone THEN a.phone ELSE c.phone END) , (CASE WHEN a.extension <> b.extension THEN a.extension ELSE c.extension END) , (CASE WHEN a.fax <> b.fax THEN a.fax ELSE c.fax END) , (CASE WHEN a.iban_check_digit <> b.iban_check_digit THEN a.iban_check_digit ELSE c.iban_check_digit END) , (CASE WHEN a.iban_id <> b.iban_id THEN a.iban_id ELSE c.iban_id END) , a.ERR_MSG_NBR , a.MSG_SEVERITY , %subrec(FMS_WHO_SBR, a) , a.scr_remove FROM ps_scr_bnk_act_dft a , ps_scr_bnk_act_mst b , PS_VNDR_BANK_ACCT c WHERE a.scr_id = b.scr_id AND a.scr_seq_num = b.scr_seq_num AND a.setid = b.setid AND a.vendor_id = b.vendor_id AND a.effdt = b.effdt AND a.VNDR_LOC = b.vndr_loc AND a.scr_chng_type = b.scr_chng_type AND a.bank_acct_seq_nbr = b.bank_acct_seq_nbr AND a.scr_chng_type IN ( 'U' ,'D') AND b.setid = c.setid AND b.vendor_id = c.vendor_id AND b.VNDR_LOC = c.vndr_loc AND b.bank_acct_seq_nbr = c.bank_acct_seq_nbr AND %EffdtCheck(VNDR_BANK_ACCT d, c, %currentdatein) UNION SELECT a.scr_id , a.scr_seq_num , a.vndr_loc , a.effdt , a.scr_acct_seq_nbr , a.scr_effdt , a.setid , a.vendor_id , a.bank_acct_seq_nbr , a.scr_chg_eff_when , a.scr_chng_type , a.descr , a.default_ind , a.country , a.address1 , a.address2 , a.address3 , a.address4 , a.city , a.num1 , a.num2 , a.house_type , a.addr_field1 , a.addr_field2 , a.addr_field3 , a.county , a.state , a.postal , a.geo_code , a.in_city_limit , a.bank_id_qual , a.bnk_id_nbr , a.branch_id , a.bank_acct_type , a.bank_account_num , a.check_digit , a.dfi_id_qual , a.dfi_id_num , a.beneficiary_bank , a.beneficiary_bnk_ac , a.benef_branch , a.benef_branch_ac , a.country_code , a.phone , a.extension , a.fax , a.iban_check_digit , a.iban_id , a.ERR_MSG_NBR , a.MSG_SEVERITY , %subrec(FMS_WHO_SBR, a) , a.scr_remove FROM ps_scr_bnk_act_dft a WHERE a.scr_chng_type = 'A' AND a.msg_severity <> 'E' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SCR_ID | Character(15) | VARCHAR2(15) NOT NULL | Supplier Change Request ID |
2 | SCR_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Update Sequence Number |
3 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
4 | EFFDT | Date(10) | DATE | Effective Date |
5 | SCR_ACCT_SEQ_NBR | Number(3,0) | SMALLINT NOT NULL | Bank Account Sequence Number |
6 | SCR_EFFDT | Date(10) | DATE | Approved Changes Take Effect |
7 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | BANK_ACCT_SEQ_NBR | Number(3,0) | SMALLINT NOT NULL | Bank Account Sequence Number |
10 | SCR_CHG_EFF_WHEN | Character(1) | VARCHAR2(1) NOT NULL |
Change Effective
I=Approval Date S=Future Date |
11 | SCR_CHNG_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Request for Change Type
A=Add D=Delete I=Inactivate U=Update |
12 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
13 | DEFAULT_IND | Character(1) | VARCHAR2(1) NOT NULL |
Default Election
N=No Y=Yes Y/N Table Edit |
14 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
15 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
16 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
17 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
18 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
19 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
20 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
21 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
22 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
23 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
24 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
25 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
26 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
27 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: %EDIT_STATE |
28 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
29 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
30 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit |
31 | BANK_ID_QUAL | Character(3) | VARCHAR2(3) NOT NULL |
"A bank/counterparty attribute that determines
Prompt Table: BNK_ID_QUAL_VW |
32 | BNK_ID_NBR | Character(20) | VARCHAR2(20) NOT NULL | A literal alphanumeric attribute that uniquely identifies a given bank or counterparty. |
33 | BRANCH_ID | Character(10) | VARCHAR2(10) NOT NULL | The local branch office identifier associated with a given bank/counterparty. |
34 | BANK_ACCT_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
An account attribute that describes the ostensible purposes of a given bank/counterparty account.
01=Time Deposit 03=Checking Account 05=Stock 06=Bond 07=Life Insurance Value 08=Retirement Account 10=Business Account 11=Trust Fund Account 12=Stock & Bond Account 13=Life Insurance Acct CA=Current Account CH=Charges Account DA=Demand Deposit LN=Loan RD=Return Items on DDA RS=Return Items-Savings SA=Settlement Account SV=Savings Account Z=Mutually Defined |
35 | BANK_ACCOUNT_NUM | Character(35) | VARCHAR2(35) NOT NULL | The literal unique identifier associated with a given bank/counterparty account. |
36 | CHECK_DIGIT | Character(2) | VARCHAR2(2) NOT NULL | Check Digit |
37 | DFI_ID_QUAL | Character(2) | VARCHAR2(2) NOT NULL |
A banking industry convention identifier utilized to drive data validation for a given bank/counterparty.
01=Transit Number 02=Swift ID/BIC 03=CHIPS Participant ID 04=Canadian Bank Branch/Institute 05=CHIPS Universal ID ZZ=Mutually Defined |
38 | DFI_ID_NUM | Character(12) | VARCHAR2(12) NOT NULL | A banking industry convention identifier utilized to drive electronic settlements processing for a given bank/coun |
39 | BENEFICIARY_BANK | Character(30) | VARCHAR2(30) NOT NULL | The bank/counterparty associated with a given beneficiary. |
40 | BENEFICIARY_BNK_AC | Character(30) | VARCHAR2(30) NOT NULL | Alternate Character Set field for BENEFICIARY_BANK |
41 | BENEF_BRANCH | Character(30) | VARCHAR2(30) NOT NULL | Beneficiary Branch field |
42 | BENEF_BRANCH_AC | Character(30) | VARCHAR2(30) NOT NULL | Branch Alternate Char |
43 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
44 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
45 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
46 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |
47 | IBAN_CHECK_DIGIT | Character(2) | VARCHAR2(2) NOT NULL | IBAN Check Digit |
48 | IBAN_ID | Character(34) | VARCHAR2(34) NOT NULL | IBAN - Internation Bank Account Number is used in European countries to uniquely identify Bank accounts across borders |
49 | ERR_MSG_NBR | Number(5,0) | INTEGER NOT NULL | Service Purchase Error Number |
50 | MSG_SEVERITY | Character(1) | VARCHAR2(1) NOT NULL |
Message Severity
C=Cancel E=Error M=Message W=Warning |
51 | FMS_DTTM_STAMP | DateTime(26) | TIMESTAMP | Specifies the date and time of the original entry. |
52 | FMS_OPRID | Character(30) | VARCHAR2(30) NOT NULL | Specifies the User ID which made the original entry. |
53 | FMS_LASTUPDDTTM | DateTime(26) | TIMESTAMP | Specifies the date and time of the last update to an entry. |
54 | FMS_LASTUPDOPRID | Character(30) | VARCHAR2(30) NOT NULL | Specifies the User ID which made the last update to an entry. |
55 | SCR_REMOVE | Character(1) | VARCHAR2(1) NOT NULL | Remove Contact |