DBA Data[Home] [Help]

APPS.ARP_CMERGE_ARCUS dependencies on HZ_CUSTOMER_PROFILES

Line 5890: FROM hz_customer_profiles

5886: cust_prof_rec.message_text_id,
5887: cust_prof_rec.multiple_interest_rates_flag,
5888: cust_prof_rec.charge_begin_date
5889:
5890: FROM hz_customer_profiles
5891: WHERE cust_account_id = l_duplicate_id
5892: AND site_use_id = l_duplicate_site_id
5893: AND ROWNUM = 1; -- in case of data problem: one site use has 2 profiles.
5894:

Line 6299: FROM hz_customer_profiles

6295:
6296: arp_message.set_line('create_same_sites:create_profile_amount');
6297:
6298: SELECT cust_account_profile_id INTO l_to_cust_account_profile_id
6299: FROM hz_customer_profiles
6300: WHERE cust_account_id = l_customer_id
6301: AND site_use_id = l_customer_site_id;
6302:
6303: -- Create Customer Profile Amts for customer id

Line 7012: ---------Insert into hz_customer_profiles_m--------------

7008: AND ar.role_type = 'CONTACT';
7009:
7010: arp_message.set_line(SQL%ROWCOUNT||' '|| 'Row(s) inserted in HZ_CUST_ACCOUNT_ROLES_M');
7011:
7012: ---------Insert into hz_customer_profiles_m--------------
7013: --Because profiles can be set up at acct and site use level, we need to select
7014: --distict duplicate and customer_merge_header_id if acct with multiple sites
7015: --have profiles set up at account level.
7016:

Line 7017: INSERT INTO hz_customer_profiles_m(

7013: --Because profiles can be set up at acct and site use level, we need to select
7014: --distict duplicate and customer_merge_header_id if acct with multiple sites
7015: --have profiles set up at account level.
7016:
7017: INSERT INTO hz_customer_profiles_m(
7018: customer_merge_header_id,
7019: cust_account_profile_id,
7020: last_updated_by ,
7021: last_update_date ,

Line 7241: and cm.duplicate_id <> cm.customer_id ), hz_customer_profiles cp

7237: from ra_customer_merges cm
7238: where cm.process_flag = 'N'
7239: and cm.request_id = req_id
7240: and cm.set_number = set_num
7241: and cm.duplicate_id <> cm.customer_id ), hz_customer_profiles cp
7242: WHERE ( cp.cust_account_id = duplicate_id AND cp.site_use_id is NULL)
7243: OR (cp.site_use_id = duplicate_site_id );
7244:
7245: arp_message.set_line(SQL%ROWCOUNT||' '|| 'Row(s) inserted in HZ_CUSTOMER_PROFILES_M');

Line 7245: arp_message.set_line(SQL%ROWCOUNT||' '|| 'Row(s) inserted in HZ_CUSTOMER_PROFILES_M');

7241: and cm.duplicate_id <> cm.customer_id ), hz_customer_profiles cp
7242: WHERE ( cp.cust_account_id = duplicate_id AND cp.site_use_id is NULL)
7243: OR (cp.site_use_id = duplicate_site_id );
7244:
7245: arp_message.set_line(SQL%ROWCOUNT||' '|| 'Row(s) inserted in HZ_CUSTOMER_PROFILES_M');
7246:
7247: ---------Insert into hz_cust_profile_amts_m--------------
7248: --Because profiles can be set up at acct and site use level, we need to select
7249: --distict duplicate and customer_merge_header_id if acct with multiple sites