DBA Data[Home] [Help]

APPS.BEN_PLAN_DESIGN_DELETE_API dependencies on BEN_COPY_ENTITY_RESULTS

Line 2382: select table_alias, datetrack_mode p_datetrack_mode, information1 p_pk_id, information2 p_effective_start_date, information3 p_effective_end_date,information5 entity_name, information265 p_object_version_number from ben_copy_entity_results

2378: where cet.copy_entity_txn_id = p_copy_entity_txn_id;
2379:
2380:
2381: cursor c_deleted_rows(p_effective_date date) is
2382: select table_alias, datetrack_mode p_datetrack_mode, information1 p_pk_id, information2 p_effective_start_date, information3 p_effective_end_date,information5 entity_name, information265 p_object_version_number from ben_copy_entity_results
2383: where copy_entity_txn_id = p_copy_entity_txn_id
2384: and dml_operation = 'DELETE'
2385: and p_effective_date between nvl(information2,p_effective_date) and nvl(information3,p_effective_date)
2386: group by order_in_hierarchy,table_alias,order_in_group,information1,datetrack_mode,information2,information3,information5, information265

Line 2392: l_datetrack_mode ben_copy_entity_results.datetrack_mode%type;

2388:
2389: l_effective_date pqh_copy_entity_txns.src_effective_date%type;
2390: l_date_to_use pqh_copy_entity_txns.src_effective_date%type;
2391: l_proc varchar2(72) := g_package||'call_delete_apis';
2392: l_datetrack_mode ben_copy_entity_results.datetrack_mode%type;
2393:
2394: begin
2395: hr_utility.set_location('Entering: '||l_proc,10);
2396: open c_copy_entity_txn;

Line 2443: select table_alias, datetrack_mode p_datetrack_mode, information1 p_pk_id, information2 p_effective_start_date, information3 p_effective_end_date,information5 entity_name, information265 p_object_version_number from ben_copy_entity_results

2439: where cet.copy_entity_txn_id = p_copy_entity_txn_id;
2440:
2441: -- we need to call delete api for all the dependents and the parent row itself.
2442: cursor c_deleted_rows(p_effective_date date) is
2443: select table_alias, datetrack_mode p_datetrack_mode, information1 p_pk_id, information2 p_effective_start_date, information3 p_effective_end_date,information5 entity_name, information265 p_object_version_number from ben_copy_entity_results
2444: where( copy_entity_txn_id = p_copy_entity_txn_id
2445: and pd_parent_entity_result_id = p_parent_entity_result_id
2446: and dml_operation = 'DELETE'
2447: and p_effective_date between nvl(information2,p_effective_date) and nvl(information3,p_effective_date))

Line 2454: select information5 parent_entity_name from ben_copy_entity_results

2450: group by order_in_hierarchy,table_alias,order_in_group,information1,datetrack_mode,information2,information3,information5, information265
2451: order by order_in_hierarchy desc, order_in_group desc ;
2452:
2453: cursor c_parent_entity_name is
2454: select information5 parent_entity_name from ben_copy_entity_results
2455: where copy_entity_result_id = p_parent_entity_result_id;
2456:
2457: l_effective_date pqh_copy_entity_txns.src_effective_date%type;
2458: l_date_to_use pqh_copy_entity_txns.src_effective_date%type;

Line 2460: l_datetrack_mode ben_copy_entity_results.datetrack_mode%type;

2456:
2457: l_effective_date pqh_copy_entity_txns.src_effective_date%type;
2458: l_date_to_use pqh_copy_entity_txns.src_effective_date%type;
2459: l_proc varchar2(72) := g_package||'call_delete_apis_for_hierarchy';
2460: l_datetrack_mode ben_copy_entity_results.datetrack_mode%type;
2461: l_parent_entity_name ben_copy_entity_results.information5%type;
2462: begin
2463: hr_utility.set_location('Entering: '||l_proc,10);
2464: open c_copy_entity_txn;

Line 2461: l_parent_entity_name ben_copy_entity_results.information5%type;

2457: l_effective_date pqh_copy_entity_txns.src_effective_date%type;
2458: l_date_to_use pqh_copy_entity_txns.src_effective_date%type;
2459: l_proc varchar2(72) := g_package||'call_delete_apis_for_hierarchy';
2460: l_datetrack_mode ben_copy_entity_results.datetrack_mode%type;
2461: l_parent_entity_name ben_copy_entity_results.information5%type;
2462: begin
2463: hr_utility.set_location('Entering: '||l_proc,10);
2464: open c_copy_entity_txn;
2465: fetch c_copy_entity_txn into l_effective_date;