DBA Data[Home] [Help]

APPS.HZ_PURGE_GEN dependencies on HZ_CUST_ACCOUNTS

Line 273: exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.PARTY_ID = temp.party_id

269: if(regid_proc = true) then
270: insert into hz_application_trans_gt(app_id,party_id) select 222, temp.party_id from hz_purge_gt temp where
271:
272:
273: exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.PARTY_ID = temp.party_id
274: and (nvl(STATUS, 'A') in ('A','I')))
275:
276: or exists (select 'Y' from HZ_PARTY_SITES
277: xx where xx.PARTY_ID = temp.party_id

Line 284: or exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.SELLING_PARTY_ID = temp.party_id

280: (select 'Y' from HZ_CUST_ACCT_SITES_ALL
281: yy where yy.PARTY_SITE_ID=xx.PARTY_SITE_ID
282: and nvl(STATUS, 'A') in ('A','I')))
283:
284: or exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.SELLING_PARTY_ID = temp.party_id
285: and (nvl(STATUS, 'A') in ('A','I')))
286:
287: or exists (select 'Y' from HZ_CUSTOMER_PROFILES xx where xx.PARTY_ID = temp.party_id
288: and (nvl(STATUS, 'A') in ('A','I')))

Line 304: exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.PARTY_ID = temp.party_id

300: else
301: delete from hz_purge_gt temp where
302:
303:
304: exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.PARTY_ID = temp.party_id
305: and (nvl(STATUS, 'A') in ('A','I')))
306:
307: or exists (select 'Y' from HZ_PARTY_SITES
308: xx where xx.PARTY_ID = temp.party_id

Line 315: or exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.SELLING_PARTY_ID = temp.party_id

311: (select 'Y' from HZ_CUST_ACCT_SITES_ALL
312: yy where yy.PARTY_SITE_ID=xx.PARTY_SITE_ID
313: and nvl(STATUS, 'A') in ('A','I')))
314:
315: or exists (select 'Y' from HZ_CUST_ACCOUNTS xx where xx.SELLING_PARTY_ID = temp.party_id
316: and (nvl(STATUS, 'A') in ('A','I')))
317:
318: or exists (select 'Y' from HZ_CUSTOMER_PROFILES xx where xx.PARTY_ID = temp.party_id
319: and (nvl(STATUS, 'A') in ('A','I')))

Line 1932: or exists (select 'Y' from HZ_CUST_ACCOUNTS

1928: and nvl(STATUS, 'A') in ('A','I')
1929: and exists
1930: (select 'Y' from OKL_CNSLD_AR_HDRS_ALL_B zz where zz.IBT_ID = yy.CUST_ACCT_SITE_ID )))
1931:
1932: or exists (select 'Y' from HZ_CUST_ACCOUNTS
1933: xx where xx.PARTY_ID = temp.party_id
1934: and (nvl(STATUS, 'A') in ('A','I'))
1935: and exists
1936: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B

Line 1939: or exists (select 'Y' from HZ_CUST_ACCOUNTS

1935: and exists
1936: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B
1937: yy where yy.ILE_ID=xx.CUST_ACCOUNT_ID
1938: ))
1939: or exists (select 'Y' from HZ_CUST_ACCOUNTS
1940: xx where xx.SELLING_PARTY_ID = temp.party_id
1941: and (nvl(STATUS, 'A') in ('A','I'))
1942: and exists
1943: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B

Line 2009: or exists (select 'Y' from HZ_CUST_ACCOUNTS

2005: and nvl(STATUS, 'A') in ('A','I')
2006: and exists
2007: (select 'Y' from OKL_CNSLD_AR_HDRS_ALL_B zz where zz.IBT_ID = yy.CUST_ACCT_SITE_ID )))
2008:
2009: or exists (select 'Y' from HZ_CUST_ACCOUNTS
2010: xx where xx.PARTY_ID = temp.party_id
2011: and (nvl(STATUS, 'A') in ('A','I'))
2012: and exists
2013: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B

Line 2016: or exists (select 'Y' from HZ_CUST_ACCOUNTS

2012: and exists
2013: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B
2014: yy where yy.ILE_ID=xx.CUST_ACCOUNT_ID
2015: ))
2016: or exists (select 'Y' from HZ_CUST_ACCOUNTS
2017: xx where xx.SELLING_PARTY_ID = temp.party_id
2018: and (nvl(STATUS, 'A') in ('A','I'))
2019: and exists
2020: (select 'Y' from OKL_TXL_RCPT_APPS_ALL_B

Line 4843: temp.party_id in (select /*+ parallel (xx)*/ xx.PARTY_ID from HZ_CUST_ACCOUNTS

4839: appid:=540;
4840: if(regid_proc = true) then
4841: insert into hz_application_trans_gt(app_id,party_id) select 540, temp.party_id from hz_purge_gt temp where not exists(select 'Y' from hz_application_trans_gt appl where appl.app_id = 540 and appl.party_id=temp.party_id) and
4842:
4843: temp.party_id in (select /*+ parallel (xx)*/ xx.PARTY_ID from HZ_CUST_ACCOUNTS
4844: xx
4845: where (nvl(STATUS, 'A') in ('A','I'))
4846: and xx.CUST_ACCOUNT_ID
4847: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B

Line 4850: or temp.party_id in (select /*+ parallel (xx)*/ xx.SELLING_PARTY_ID from HZ_CUST_ACCOUNTS

4846: and xx.CUST_ACCOUNT_ID
4847: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B
4848: yy
4849: ))
4850: or temp.party_id in (select /*+ parallel (xx)*/ xx.SELLING_PARTY_ID from HZ_CUST_ACCOUNTS
4851: xx
4852: where (nvl(STATUS, 'A') in ('A','I'))
4853: and xx.CUST_ACCOUNT_ID
4854: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B

Line 4859: temp.party_id in (select /*+ parallel (xx)*/ xx.PARTY_ID from HZ_CUST_ACCOUNTS

4855: yy
4856: ));
4857: else
4858: delete /*+ parallel(temp) */ from hz_purge_gt temp where
4859: temp.party_id in (select /*+ parallel (xx)*/ xx.PARTY_ID from HZ_CUST_ACCOUNTS
4860: xx
4861: where (nvl(STATUS, 'A') in ('A','I'))
4862: and xx.CUST_ACCOUNT_ID
4863: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B

Line 4866: or temp.party_id in (select /*+ parallel (xx)*/ xx.SELLING_PARTY_ID from HZ_CUST_ACCOUNTS

4862: and xx.CUST_ACCOUNT_ID
4863: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B
4864: yy
4865: ))
4866: or temp.party_id in (select /*+ parallel (xx)*/ xx.SELLING_PARTY_ID from HZ_CUST_ACCOUNTS
4867: xx
4868: where (nvl(STATUS, 'A') in ('A','I'))
4869: and xx.CUST_ACCOUNT_ID
4870: in (select /*+ parallel(yy)*/ yy.CUSTOMER_ID from OKL_EXT_SELL_INVS_ALL_B