DBA Data[Home] [Help]

APPS.XTR_EFT_SCRIPT_P SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 19

 select distinct substr(script_name,1,4), package_name,eft_script_output_path,
 transmission_code
 from XTR_SETTLEMENT_SCRIPTS
   where script_type = 'SCRIPT'
   and script_name = l_script_name
   and authorised = 'Y';
Line: 29

select outfile_name
 from fnd_concurrent_requests
  where request_id = v_request_id;
Line: 34

   select 1
     from DUAL;
Line: 101

/*select outfile_name  from fnd_concurrent_requests
 	into l_file_name
 	where request_id = v_request_id;
Line: 151

 update XTR_SETTLEMENT_SCRIPTS
  set run_requested_on  = trunc(sysdate),
       last_run_on  = trunc(sysdate),
       last_run_by  = fnd_global.user_id,
       last_file_created = l_file_name
 where script_name = l_script_name
 and script_type = 'SCRIPT'
 and company_code = l_company;
Line: 219

 select distinct d.account_no
  from XTR_DEAL_DATE_AMOUNTS_V d,
       XTR_BANK_ACCOUNTS b,
       XTR_SETTLEMENT_SCRIPTS s
-- RV 2305918 where d.actual_settlement_date = NVL(to_date(settlement_date,'DD-MON-RR'), d.actual_settlement_date)
  where d.actual_settlement_date = NVL(trunc(settlement_date), d.actual_settlement_date)
  and d.company_code = l_company
  and NVL(d.beneficiary_party,d.cparty_code)  like nvl(l_cparty,'%')
  and d.account_no = NVL(l_account, d.account_no)
  and d.currency = NVL(l_currency, d.currency)
  and d.trans_mts = 'Y'
  and ((upper(sett) = 'Y') or (upper(sett) = 'N' and d.settlement_actioned is NULL))
  and b.account_number = d.account_no
  and b.party_code = l_company
  and SUBSTR(b.eft_script_name,1,4) = l_eft_script_name --RV
  and s.script_name = b.eft_script_name
  and nvl(s.currency_code,b.currency) = b.currency
  and s.script_type = 'SCRIPT';
Line: 240

 select abs(d.settle_amount * 100),
           d.cparty_account_no,'2'||spce||substr(d.cparty_account_no,1,2)||
           substr(d.cparty_account_no,4,4)||substr(d.cparty_account_no,9,7)||
           substr(d.cparty_account_no,17)||spce||'50'||spce||to_char(abs(d.settle_amount * 100))||
           spce||p.short_name||spce||spce||spce||spce||q.short_name||spce||
           'Ref '||rtrim(l_file_name)||spce
  from XTR_EFT_DEBITS_V d,
       XTR_PARTIES_V p,
       XTR_PARTIES_V q,
       XTR_BANK_ACCOUNTS b
-- 2305918  where d.actual_settlement_date = NVL(to_date(settlement_date,'DD-MON-RR'), d.actual_settlement_date)
  where d.actual_settlement_date = NVL(trunc(settlement_date), d.actual_settlement_date)
  and d.account_no = comp_acct
  and d.company_code = l_company
  and NVL(d.settle_party,d.cparty_code) like nvl(l_cparty,'%')
  and d.trans_mts = 'Y'
  and ((upper(sett) = 'Y') or (upper(sett) = 'N' and d.settlement_actioned is NULL))
  and q.party_code = d.company_code
  and p.party_code = d.settle_party
  and b.account_number = d.account_no
  and b.party_code = d.company_code;
Line: 264

 select abs(d.settle_amount * 100),
           d.cparty_account_no,'2'||spce||substr(d.cparty_account_no,1,2)||
           substr(d.cparty_account_no,4,4)||substr(d.cparty_account_no,9,7)||
           substr(d.cparty_account_no,17)||spce||'50'||spce||to_char(abs(d.settle_amount *
           100))||spce||p.short_name||spce||spce||spce||
           spce||q.short_name||spce||'Ref '||rtrim(l_file_name)||spce
  from XTR_EFT_CREDITS_V d,
       XTR_PARTIES_V p,
       XTR_PARTIES_V q,
       XTR_BANK_ACCOUNTS b
--2305918  where d.actual_settlement_date = NVL(to_date(settlement_date,'DD-MON-RR'), d.actual_settlement_date)
  where d.actual_settlement_date = NVL(trunc(settlement_date), d.actual_settlement_date)
  and d.account_no = comp_acct
  and d.company_code = l_company
  and NVL(d.settle_party,d.cparty_code) like nvl(l_cparty,'%')
  and ((upper(sett) = 'Y' ) or (upper(sett) = 'N' and d.settlement_actioned is NULL))
  and q.party_code = d.company_code
  and p.party_code = d.settle_party
  and b.account_number = d.account_no
  and b.party_code = d.company_code;
Line: 290

 select transfer_details, file_name
 from XTR_MTS_RECORDS
 order by FILE_NAME,CREATED_ON_DATE asc;
Line: 338

      XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '>Insert into XTR_MTS_RECORDS');
Line: 346

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,deb_header,l_date,l_file_name,
--2305918                                            to_date(settlement_date,'DD-MON-RR'));
Line: 353

      XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '> End of insertion');
Line: 378

      XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '>>Insert into XTR_MTS_RECORDS');
Line: 380

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,deb_rec,l_date,l_file_name,
--RV 2305918                                            to_date(settlement_date,'DD-MON-RR'));
Line: 406

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,deb_ctrl,l_date,l_file_name,
--RV 2305918                                            to_date(settlement_date,'DD-MON-RR'));
Line: 429

      XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '> Insert into XTR_MTS_RECORDS');
Line: 436

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,cre_header,l_date,l_file_name,
-- RV 2305918                                            to_date(settlement_date,'DD-MON-RR'));
Line: 442

      XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '> End of Insert');
Line: 460

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,cre_rec,l_date,l_file_name,
-- RV 2305918                                            to_date(settlement_date,'DD-MON-RR'));
Line: 482

   insert into XTR_MTS_RECORDS(script_name,transfer_details,created_on_date,
                                            file_name,settlement_date)
                                  values(l_eft_script_name,cre_ctrl,l_date,l_file_name,
--RV 2305198                                            to_date(settlement_date,'DD-MON-RR'));
Line: 493

    XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '>UPDATE xtr_settlement_scripts table');
Line: 495

 update XTR_SETTLEMENT_SCRIPTS
  set run_requested_on  = null,
       only_new_transactions = null,
--RV 2305918       last_run_on  = to_date(settlement_date,'DD-MON-RR'),
       last_run_on  = trunc(settlement_date),
       last_run_by  = fnd_global.user_id,
       last_file_created = l_file_name
 where substr(script_name,1,4) = l_eft_script_name
 and script_type = 'SCRIPT';
Line: 506

   XTR_RISK_DEBUG_PKG.dlog('BNZ_EFT: ' || '>UPDATE dda table');
Line: 508

update XTR_DEAL_DATE_AMOUNTS d
 set d.SETTLEMENT_ACTIONED = 'Y',
       d.SETTLEMENT_ACTIONED_FILE  = l_file_name
-- RV 2305918 where d.actual_settlement_date = NVL(to_date(settlement_date,'DD-MON-RR'), d.actual_settlement_date)
 where d.actual_settlement_date = NVL(trunc(settlement_date), d.actual_settlement_date)
 and d.cashflow_amount <> 0
 and d.account_no = comp_acct
 and d.company_code = l_company
 and NVL(d.beneficiary_party,d.cparty_code) like nvl(l_cparty,'%')
 and d.trans_mts = 'Y'
 and d.settle = 'Y'
 and ((upper(sett) = 'Y') or (upper(sett) = 'N' and d.settlement_actioned is NULL))
 and d.account_no = (select distinct b.account_number
                                  from XTR_BANK_ACCOUNTS b,
                                       XTR_SETTLEMENT_SCRIPTS s
                                  where b.account_number = d.account_no
                                  and b.party_code = upper(l_company)
                                  and SUBSTR(b.eft_script_name,1,4) = l_eft_script_name --RV
                                  and s.script_name = b.eft_script_name
                                  and nvl(s.currency_code,b.currency) = b.currency
                                  and s.script_type = 'SCRIPT');
Line: 561

  DELETE from XTR_MTS_RECORDS
  WHERE file_name = mts_file_name
	AND transfer_details = mts_details;
Line: 653

 select distinct sw.company_acct_no
  from XTR_SWIFT_EFT_V sw,
       XTR_BANK_ACCOUNTS b,
       XTR_SETTLEMENT_SCRIPTS s
  where sw.settlement_date = NVL(trunc(settlement_date), sw.settlement_date)
  and sw.company = l_company
  and sw.cparty = nvl(l_cparty,sw.cparty)
  and sw.company_acct_no = NVL(l_account, sw.company_acct_no)
  and sw.currency = NVL(l_currency, sw.currency)
  and b.account_number = sw.company_acct_no
  and b.party_code = l_company
  and SUBSTR(b.eft_script_name,1,4) = l_eft_script_name --RV
  and s.script_name = b.eft_script_name
  and nvl(s.currency_code,b.currency) = b.currency
  and s.script_type = 'SCRIPT';
Line: 670

 select s.settlement_number, s.settlement_date, s.currency,
	abs(s.settlement_amount), comp_name, comp_address1,
	comp_address2, comp_address3, company_acct_no, comp_swift_id,
	comp_bank_name, comp_bank_street, comp_bank_location,
	cparty_acct_no, cp_swift_id, cp_bank_name, cp_bank_street,
	cp_bank_location, cp_name, cp_address1, cp_address2,
	cp_address3, cp_corr_bank_name,cp_corr_bank_no,
        s.settlement_summary_id, s.cparty
  from XTR_SWIFT_EFT_V s
  where trunc(s.settlement_date) = trunc(NVL(trunc(v_paydate), s.settlement_date))
  and s.company_acct_no = v_account_no
  and s.company = l_company
  and s.cparty = nvl(l_cparty,s.cparty);
Line: 685

  select count(*)
    from xtr_settlement_summary
    where net_id = v_settlement_summary_id;
Line: 691

    select count(*)
    from xtr_deal_date_amounts x
    where x.settlement_number = v_settlement_number
    and ((x.beneficiary_account_no is not null and v_cparty = x.beneficiary_party)
         or
         (x.beneficiary_account_no is null and v_cparty = x.cparty_code));
Line: 699

    select count(*)
    from xtr_deal_date_amounts x, xtr_settlement_summary s1,
    xtr_settlement_summary s2
    where s1.settlement_number = v_settlement_number
    and s1.settlement_summary_id = s2.net_id
    and s2.settlement_number = x.settlement_number
    and ((x.beneficiary_account_no is not null and v_cparty = x.beneficiary_party)
         or
         (x.beneficiary_account_no is null and v_cparty = x.cparty_code));
Line: 710

    select count(*)
    from xtr_deal_date_amounts x
    where x.settlement_number = v_settlement_number
    and ((upper(sett) = 'Y') OR (x.settlement_actioned is null));
Line: 716

    select count(*)
    from xtr_deal_date_amounts x, xtr_settlement_summary s1,
    xtr_settlement_summary s2
    where s1.settlement_number = v_settlement_number
    and s1.settlement_summary_id = s2.net_id
    and s2.settlement_number = x.settlement_number
    and ((upper(sett) = 'Y') OR (x.settlement_actioned is null));
Line: 726

    SELECT netoff_number
    FROM xtr_deal_date_amounts
    where settlement_number = (select settlement_number
                               from xtr_settlement_summary
                               WHERE net_id = p_netid
                               and ROWNUM=1);
Line: 879

  	  update XTR_DEAL_DATE_AMOUNTS d
          set d.SETTLEMENT_ACTIONED = 'Y',
    	     d.SETTLEMENT_ACTIONED_FILE  = l_file_name
  	  where SETTLEMENT_NUMBER in
            (select settlement_number from xtr_settlement_summary x
                    where x.net_id = v_settlement_summary_id);
Line: 886

          update XTR_DEAL_DATE_AMOUNTS d
  	   set d.SETTLEMENT_ACTIONED = 'Y',
    	     d.SETTLEMENT_ACTIONED_FILE  = l_file_name
  	  where SETTLEMENT_NUMBER = v_settlement_number;
Line: 971

 select distinct sw.company_acct_no
  from XTR_SWIFT_EFT_V sw,
       XTR_BANK_ACCOUNTS b,
       XTR_SETTLEMENT_SCRIPTS s
  where sw.settlement_date = NVL(trunc(settlement_date), sw.settlement_date)
  and sw.company = l_company
  and sw.cparty = nvl(l_cparty,sw.cparty)
  and sw.company_acct_no = NVL(l_account, sw.company_acct_no)
  and sw.currency = NVL(l_currency, sw.currency)
  and b.account_number = sw.company_acct_no
  and b.party_code = l_company
  and SUBSTR(b.eft_script_name,1,4) = l_eft_script_name --RV
  and s.script_name = b.eft_script_name
  and nvl(s.currency_code,b.currency) = b.currency
  and s.script_type = 'SCRIPT';
Line: 988

 select s.settlement_number, s.settlement_date, s.currency,
	abs(s.settlement_amount), comp_name, comp_address1,
	comp_address2, comp_address3, company_acct_no, comp_swift_id,
	comp_bank_name, comp_bank_street, comp_bank_location,
	cparty_acct_no, cp_swift_id, cp_bank_name, cp_bank_street,
	cp_bank_location, cp_name, cp_address1, cp_address2,
	cp_address3, s.company, s.cparty, s.settlement_summary_id
  from XTR_SWIFT_EFT_V s
  where trunc(s.settlement_date) = trunc(NVL(trunc(v_paydate), s.settlement_date))
  and s.company_acct_no = v_account_no
  and s.company = l_company
  and s.cparty = nvl(l_cparty,s.cparty);
Line: 1002

  select count(*)
    from xtr_settlement_summary x
    where x.net_id = v_settlement_summary_id;
Line: 1007

    select count(*)
    from xtr_deal_date_amounts x
    where x.settlement_number = v_settlement_number
    and ((upper(sett) = 'Y') OR (x.settlement_actioned is null));
Line: 1013

    select count(*)
    from xtr_deal_date_amounts x, xtr_settlement_summary s1,
    xtr_settlement_summary s2
    where s1.settlement_number = v_settlement_number
    and s1.settlement_summary_id = s2.net_id
    and s2.settlement_number = x.settlement_number
    and ((upper(sett) = 'Y') OR (x.settlement_actioned is null));
Line: 1022

    select count(*)
    from xtr_deal_date_amounts x
    where x.settlement_number = v_settlement_number
    and ((x.beneficiary_account_no is not null and v_cparty = x.beneficiary_party)
         or
         (x.beneficiary_account_no is null and v_cparty = x.cparty_code));
Line: 1030

    select count(*)
    from xtr_deal_date_amounts x, xtr_settlement_summary s1,
    xtr_settlement_summary s2
    where s1.settlement_number = v_settlement_number
    and s1.settlement_summary_id = s2.net_id
    and s2.settlement_number = x.settlement_number
    and ((x.beneficiary_account_no is not null and v_cparty = x.beneficiary_party)
         or
         (x.beneficiary_account_no is null and v_cparty = x.cparty_code));
Line: 1041

    SELECT text
    FROM xtr_sys_languages_tl
    WHERE module_name='XTRSECOM'
    AND item_name='PTY.ADDRESS_1'
    AND LANGUAGE=USERENV('lang');
Line: 1048

    SELECT text
    FROM xtr_sys_languages_tl
    WHERE module_name='XTRSECPY'
    AND item_name='PTY.P_ADDRESS_1'
    AND LANGUAGE=USERENV('lang');
Line: 1205

  	  update XTR_DEAL_DATE_AMOUNTS d
          set d.SETTLEMENT_ACTIONED = 'Y',
    	     d.SETTLEMENT_ACTIONED_FILE  = l_file_name
  	  where SETTLEMENT_NUMBER in
            (select settlement_number from xtr_settlement_summary x
                    where x.net_id = v_settlement_summary_id);
Line: 1212

          update XTR_DEAL_DATE_AMOUNTS d
  	   set d.SETTLEMENT_ACTIONED = 'Y',
    	     d.SETTLEMENT_ACTIONED_FILE  = l_file_name
  	  where SETTLEMENT_NUMBER = v_settlement_number;