DBA Data[Home] [Help]

APPS.BEN_PD_COPY_TO_BEN_THREE dependencies on BEN_PD_COPY_TO_BEN_ONE

Line 134: l_counter := nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl.LAST, 0);

130: --
131: else
132: */
133: --
134: l_counter := nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl.LAST, 0);
135: if l_counter > 0 and p_old_val is not null then
136: for i in 1..l_counter loop
137: if BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).pk_id_column = p_col_name and
138: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).old_value = p_old_val

Line 137: if BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).pk_id_column = p_col_name and

133: --
134: l_counter := nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl.LAST, 0);
135: if l_counter > 0 and p_old_val is not null then
136: for i in 1..l_counter loop
137: if BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).pk_id_column = p_col_name and
138: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).old_value = p_old_val
139: then
140: l_ret_id := BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).new_value;
141: exit;

Line 138: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).old_value = p_old_val

134: l_counter := nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl.LAST, 0);
135: if l_counter > 0 and p_old_val is not null then
136: for i in 1..l_counter loop
137: if BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).pk_id_column = p_col_name and
138: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).old_value = p_old_val
139: then
140: l_ret_id := BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).new_value;
141: exit;
142: end if;

Line 140: l_ret_id := BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).new_value;

136: for i in 1..l_counter loop
137: if BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).pk_id_column = p_col_name and
138: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).old_value = p_old_val
139: then
140: l_ret_id := BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(i).new_value;
141: exit;
142: end if;
143: end loop;
144: end if;

Line 214: procedure update_cer_with_target(c_pk_rec BEN_PD_COPY_TO_BEN_ONE.G_PK_REC_TYPE, p_copy_entity_txn_id in number) is

210:
211: --
212: -- Private procedure to update the cer with target details
213: --
214: procedure update_cer_with_target(c_pk_rec BEN_PD_COPY_TO_BEN_ONE.G_PK_REC_TYPE, p_copy_entity_txn_id in number) is
215: begin
216: hr_utility.set_location('Inside update_cer_with_target ',233);
217: update ben_copy_entity_results
218: set information9 = c_pk_rec.copy_reuse_type||'-'||c_pk_rec.new_value

Line 367: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

363: end if ;
364: -- End Prefix Sufix derivation
365: for r_JRT_unique in c_unique_JRT('JRT') loop
366:
367: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
368: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
369: r_JRT_unique.information3 >=
370: ben_pd_copy_to_ben_one.g_copy_effective_date)
371: ) then

Line 368: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

364: -- End Prefix Sufix derivation
365: for r_JRT_unique in c_unique_JRT('JRT') loop
366:
367: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
368: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
369: r_JRT_unique.information3 >=
370: ben_pd_copy_to_ben_one.g_copy_effective_date)
371: ) then
372: --

Line 370: ben_pd_copy_to_ben_one.g_copy_effective_date)

366:
367: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
368: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
369: r_JRT_unique.information3 >=
370: ben_pd_copy_to_ben_one.g_copy_effective_date)
371: ) then
372: --
373: hr_utility.set_location(' r_JRT_unique.table_route_id '||r_JRT_unique.table_route_id,10);
374: hr_utility.set_location(' r_JRT_unique.information1 '||r_JRT_unique.information1,10);

Line 388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

384: open c_JRT_min_max_dates(r_JRT_unique.table_route_id, r_JRT_unique.information1 ) ;
385: fetch c_JRT_min_max_dates into l_min_esd,l_max_eed ;
386: --
387:
388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
389: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
390: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
391: end if;
392:

Line 389: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

385: fetch c_JRT_min_max_dates into l_min_esd,l_max_eed ;
386: --
387:
388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
389: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
390: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
391: end if;
392:
393: l_min_esd := greatest(l_min_esd,r_JRT_unique.information2);

Line 390: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

386: --
387:
388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
389: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
390: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
391: end if;
392:
393: l_min_esd := greatest(l_min_esd,r_JRT_unique.information2);
394: open c_JRT(r_JRT_unique.table_route_id,

Line 405: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

401: close c_JRT ;
402: --
403: --l_JOB_ID := get_fk('JOB_ID', r_JRT.information176);
404: --
405: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
406: l_JOB_ID := r_JRT.information176;
407: --
408: if l_JOB_ID is null then
409: --

Line 440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or

436: l_object_found_in_target := TRUE;
437: --
438: if l_process_date between r_JRT_unique.information2 and r_JRT_unique.information3 then
439: l_update := true;
440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;

Line 441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then

437: --
438: if l_process_date between r_JRT_unique.information2 and r_JRT_unique.information3 then
439: l_update := true;
440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

Line 442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;

438: if l_process_date between r_JRT_unique.information2 and r_JRT_unique.information3 then
439: l_update := true;
440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;

Line 443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;

439: l_update := true;
440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;
447: --

Line 444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;

440: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;
447: --
448: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

441: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'JOB_RT_ID' then
442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;
447: --
448: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
449: --

Line 446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;

442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'JOB_RT_ID' ;
443: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_JRT_unique.information1 ;
444: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_JRT_unique.information1 ;
445: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;
447: --
448: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
449: --
450: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 450: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

446: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_JRT_unique.table_route_id;
447: --
448: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
449: --
450: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
451: --
452: -- log_data('JRT',l_new_value,l_prefix || r_JRT_unique.name|| l_suffix,'REUSED');
453: --
454: end if ;

Line 482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

478: p_from_date => l_min_esd,
479: p_to_date => l_max_eed );
480: if l_dt_rec_found THEN
481: --END TEMPIK
482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then

479: p_to_date => l_max_eed );
480: if l_dt_rec_found THEN
481: --END TEMPIK
482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;

480: if l_dt_rec_found THEN
481: --END TEMPIK
482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;

Line 485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;

481: --END TEMPIK
482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --

Line 486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

482: if r_JRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --
490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

483: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'JOB_RT_ID' then
484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --
490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
491: --

Line 488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;

484: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
485: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT_unique.information1 ;
486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --
490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
491: --
492: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

486: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
487: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --
490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
491: --
492: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
493: end if ;
494: --

Line 492: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

488: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
489: --
490: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
491: --
492: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
493: end if ;
494: --
495: l_object_found_in_target := true ;
496: --TEMPIK

Line 526: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

522: end if ;
523: --
524:
525: l_effective_date := r_JRT.information2;
526: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
527: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
528: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
529: end if;
530:

Line 527: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

523: --
524:
525: l_effective_date := r_JRT.information2;
526: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
527: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
528: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
529: end if;
530:
531: if l_first_rec and not l_update then

Line 528: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

524:
525: l_effective_date := r_JRT.information2;
526: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
527: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
528: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
529: end if;
530:
531: if l_first_rec and not l_update then
532: -- Call Create routine.

Line 585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;

581: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
582: -- Update all relevent cer records with new pk_id
583: hr_utility.set_location('Before plsql table ',222);
584: hr_utility.set_location('new_value id '||l_job_rt_id,222);
585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;
587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;
588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;

Line 586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;

582: -- Update all relevent cer records with new pk_id
583: hr_utility.set_location('Before plsql table ',222);
584: hr_utility.set_location('new_value id '||l_job_rt_id,222);
585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;
587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;
588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
590: hr_utility.set_location('After plsql table ',222);

Line 587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;

583: hr_utility.set_location('Before plsql table ',222);
584: hr_utility.set_location('new_value id '||l_job_rt_id,222);
585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;
587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;
588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
590: hr_utility.set_location('After plsql table ',222);
591: --

Line 588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

584: hr_utility.set_location('new_value id '||l_job_rt_id,222);
585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;
587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;
588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
590: hr_utility.set_location('After plsql table ',222);
591: --
592: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;

585: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'JOB_RT_ID' ;
586: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_JRT.information1 ;
587: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_JOB_RT_ID ;
588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
590: hr_utility.set_location('After plsql table ',222);
591: --
592: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
593: --

Line 592: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

588: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
589: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_JRT_unique.table_route_id;
590: hr_utility.set_location('After plsql table ',222);
591: --
592: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
593: --
594: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
595: --
596: else

Line 594: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

590: hr_utility.set_location('After plsql table ',222);
591: --
592: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
593: --
594: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
595: --
596: else
597: --
598: -- Call Update routine for the pk_id created in prev run .

Line 710: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'JRT',r_jrt.information5 );

706: end loop;
707: --
708: exception when others then
709: --
710: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'JRT',r_jrt.information5 );
711: --
712: end create_JRT_rows;
713:
714: --

Line 856: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

852: end if ;
853: -- End Prefix Sufix derivation
854: for r_HSR_unique in c_unique_HSR('HSR') loop
855:
856: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
857: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
858: r_HSR_unique.information3 >=
859: ben_pd_copy_to_ben_one.g_copy_effective_date)
860: ) then

Line 857: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

853: -- End Prefix Sufix derivation
854: for r_HSR_unique in c_unique_HSR('HSR') loop
855:
856: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
857: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
858: r_HSR_unique.information3 >=
859: ben_pd_copy_to_ben_one.g_copy_effective_date)
860: ) then
861: --

Line 859: ben_pd_copy_to_ben_one.g_copy_effective_date)

855:
856: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
857: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
858: r_HSR_unique.information3 >=
859: ben_pd_copy_to_ben_one.g_copy_effective_date)
860: ) then
861: --
862: hr_utility.set_location(' r_HSR_unique.table_route_id '||r_HSR_unique.table_route_id,10);
863: hr_utility.set_location(' r_HSR_unique.information1 '||r_HSR_unique.information1,10);

Line 877: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

873: open c_HSR_min_max_dates(r_HSR_unique.table_route_id, r_HSR_unique.information1 ) ;
874: fetch c_HSR_min_max_dates into l_min_esd,l_max_eed ;
875: --
876:
877: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
878: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
879: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
880: end if;
881: l_min_esd := greatest(l_min_esd,r_HSR_unique.information2);

Line 878: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

874: fetch c_HSR_min_max_dates into l_min_esd,l_max_eed ;
875: --
876:
877: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
878: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
879: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
880: end if;
881: l_min_esd := greatest(l_min_esd,r_HSR_unique.information2);
882: open c_HSR(r_HSR_unique.table_route_id,

Line 879: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

875: --
876:
877: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
878: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
879: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
880: end if;
881: l_min_esd := greatest(l_min_esd,r_HSR_unique.information2);
882: open c_HSR(r_HSR_unique.table_route_id,
883: r_HSR_unique.information1,

Line 906: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

902: l_object_found_in_target := TRUE;
903: --
904: if l_process_date between r_HSR_unique.information2 and r_HSR_unique.information3 then
905: l_update := true;
906: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'
908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;

Line 907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'

903: --
904: if l_process_date between r_HSR_unique.information2 and r_HSR_unique.information3 then
905: l_update := true;
906: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'
908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;

Line 909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;

905: l_update := true;
906: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'
908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;
912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;

Line 910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;

906: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'
908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;
912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;
914: --

Line 911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;

907: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID'
908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;
912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;
914: --
915: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

908: then
909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;
912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;
914: --
915: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
916: --

Line 913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;

909: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRLY_SLRD_RT_ID' ;
910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HSR_unique.information1 ;
911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HSR_unique.information1 ;
912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;
914: --
915: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
916: --
917: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 917: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HSR_unique.table_route_id;
914: --
915: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
916: --
917: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
918: --
919: -- log_data('HSR',l_new_value,l_prefix || r_HSR_unique.name|| l_suffix,'REUSED');
920: --
921: end if ;

Line 949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

945: p_from_date => l_min_esd,
946: p_to_date => l_max_eed );
947: if l_dt_rec_found THEN
948: --END TEMPIK
949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then

946: p_to_date => l_max_eed );
947: if l_dt_rec_found THEN
948: --END TEMPIK
949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;

947: if l_dt_rec_found THEN
948: --END TEMPIK
949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;

Line 952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;

948: --END TEMPIK
949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --

Line 953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

949: if r_HSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --
957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

950: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRLY_SLRD_RT_ID' then
951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --
957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
958: --

Line 955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;

951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
952: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR_unique.information1 ;
953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --
957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
958: --
959: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

953: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
954: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --
957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
958: --
959: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
960: end if ;
961: --

Line 959: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
956: --
957: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
958: --
959: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
960: end if ;
961: --
962: l_object_found_in_target := true ;
963: --TEMPIK

Line 993: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

989: end if ;
990: --
991:
992: l_effective_date := r_HSR.information2;
993: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
994: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
995: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
996: end if;
997:

Line 994: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

990: --
991:
992: l_effective_date := r_HSR.information2;
993: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
994: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
995: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
996: end if;
997:
998: if l_first_rec and not l_update then

Line 995: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

991:
992: l_effective_date := r_HSR.information2;
993: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
994: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
995: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
996: end if;
997:
998: if l_first_rec and not l_update then
999: -- Call Create routine.

Line 1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;

1048: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
1049: -- Update all relevent cer records with new pk_id
1050: hr_utility.set_location('Before plsql table ',222);
1051: hr_utility.set_location('new_value id '||l_hrly_slrd_rt_id,222);
1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;
1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;
1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;

Line 1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;

1049: -- Update all relevent cer records with new pk_id
1050: hr_utility.set_location('Before plsql table ',222);
1051: hr_utility.set_location('new_value id '||l_hrly_slrd_rt_id,222);
1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;
1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;
1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
1057: hr_utility.set_location('After plsql table ',222);

Line 1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;

1050: hr_utility.set_location('Before plsql table ',222);
1051: hr_utility.set_location('new_value id '||l_hrly_slrd_rt_id,222);
1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;
1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;
1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
1057: hr_utility.set_location('After plsql table ',222);
1058: --

Line 1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

1051: hr_utility.set_location('new_value id '||l_hrly_slrd_rt_id,222);
1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;
1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;
1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
1057: hr_utility.set_location('After plsql table ',222);
1058: --
1059: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;

1052: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRLY_SLRD_RT_ID' ;
1053: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HSR.information1 ;
1054: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRLY_SLRD_RT_ID ;
1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
1057: hr_utility.set_location('After plsql table ',222);
1058: --
1059: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1060: --

Line 1059: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

1055: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HSR_unique.table_route_id;
1057: hr_utility.set_location('After plsql table ',222);
1058: --
1059: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1060: --
1061: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1062: --
1063: else

Line 1061: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

1057: hr_utility.set_location('After plsql table ',222);
1058: --
1059: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1060: --
1061: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1062: --
1063: else
1064: --
1065: -- Call Update routine for the pk_id created in prev run .

Line 1175: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'HSR',r_hsr.information5 );

1171: end loop;
1172: --
1173: exception when others then
1174: --
1175: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'HSR',r_hsr.information5 );
1176: --
1177: end create_HSR_rows;
1178:
1179: --

Line 1321: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

1317: end if ;
1318: -- End Prefix Sufix derivation
1319: for r_GRR_unique in c_unique_GRR('GRR') loop
1320:
1321: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1322: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1323: r_GRR_unique.information3 >=
1324: ben_pd_copy_to_ben_one.g_copy_effective_date)
1325: ) then

Line 1322: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1318: -- End Prefix Sufix derivation
1319: for r_GRR_unique in c_unique_GRR('GRR') loop
1320:
1321: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1322: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1323: r_GRR_unique.information3 >=
1324: ben_pd_copy_to_ben_one.g_copy_effective_date)
1325: ) then
1326: --

Line 1324: ben_pd_copy_to_ben_one.g_copy_effective_date)

1320:
1321: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1322: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1323: r_GRR_unique.information3 >=
1324: ben_pd_copy_to_ben_one.g_copy_effective_date)
1325: ) then
1326: --
1327: hr_utility.set_location(' r_GRR_unique.table_route_id '||r_GRR_unique.table_route_id,10);
1328: hr_utility.set_location(' r_GRR_unique.information1 '||r_GRR_unique.information1,10);

Line 1342: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1338: open c_GRR_min_max_dates(r_GRR_unique.table_route_id, r_GRR_unique.information1 ) ;
1339: fetch c_GRR_min_max_dates into l_min_esd,l_max_eed ;
1340: --
1341:
1342: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1343: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1344: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1345: end if;
1346: l_min_esd := greatest(l_min_esd,r_GRR_unique.information2);

Line 1343: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

1339: fetch c_GRR_min_max_dates into l_min_esd,l_max_eed ;
1340: --
1341:
1342: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1343: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1344: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1345: end if;
1346: l_min_esd := greatest(l_min_esd,r_GRR_unique.information2);
1347: open c_GRR(r_GRR_unique.table_route_id,

Line 1344: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

1340: --
1341:
1342: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1343: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1344: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1345: end if;
1346: l_min_esd := greatest(l_min_esd,r_GRR_unique.information2);
1347: open c_GRR(r_GRR_unique.table_route_id,
1348: r_GRR_unique.information1,

Line 1356: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

1352: fetch c_GRR into r_GRR ;
1353: --
1354: close c_GRR ;
1355: --
1356: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
1357: l_GRADE_ID := r_GRR.information176;
1358: else
1359: l_GRADE_ID := r_GRR.information174;
1360: end if;

Line 1388: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

1384: l_object_found_in_target := TRUE;
1385: --
1386: if l_process_date between r_GRR_unique.information2 and r_GRR_unique.information3 then
1387: l_update := true;
1388: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'
1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;

Line 1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'

1385: --
1386: if l_process_date between r_GRR_unique.information2 and r_GRR_unique.information3 then
1387: l_update := true;
1388: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'
1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;

Line 1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;

1387: l_update := true;
1388: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'
1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;
1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;

Line 1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;

1388: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'
1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;
1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;
1396: --

Line 1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;

1389: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GRADE_RT_ID'
1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;
1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;
1396: --
1397: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

1390: then
1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;
1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;
1396: --
1397: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1398: --

Line 1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;

1391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GRADE_RT_ID' ;
1392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GRR_unique.information1 ;
1393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GRR_unique.information1 ;
1394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;
1396: --
1397: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1398: --
1399: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 1399: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

1395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GRR_unique.table_route_id;
1396: --
1397: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1398: --
1399: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
1400: --
1401: --log_data('GRR',l_new_value,l_prefix || r_GRR_unique.name|| l_suffix,'REUSED');
1402: --
1403: end if ;

Line 1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

1427: p_from_date => l_min_esd,
1428: p_to_date => l_max_eed );
1429: if l_dt_rec_found THEN
1430: --END TEMPIK
1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then

1428: p_to_date => l_max_eed );
1429: if l_dt_rec_found THEN
1430: --END TEMPIK
1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;

1429: if l_dt_rec_found THEN
1430: --END TEMPIK
1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;

Line 1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;

1430: --END TEMPIK
1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --

Line 1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

1431: if r_GRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --
1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

1432: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GRADE_RT_ID' then
1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --
1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1440: --

Line 1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;

1433: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1434: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR_unique.information1 ;
1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --
1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1440: --
1441: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

1435: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1436: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --
1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1440: --
1441: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1442: end if ;
1443: --

Line 1441: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

1437: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1438: --
1439: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1440: --
1441: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1442: end if ;
1443: --
1444: l_object_found_in_target := true ;
1445: --TEMPIK

Line 1475: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1471: end if ;
1472: --
1473:
1474: l_effective_date := r_GRR.information2;
1475: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1476: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1477: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1478: end if;
1479:

Line 1476: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

1472: --
1473:
1474: l_effective_date := r_GRR.information2;
1475: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1476: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1477: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1478: end if;
1479:
1480: if l_first_rec and not l_update then

Line 1477: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

1473:
1474: l_effective_date := r_GRR.information2;
1475: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1476: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1477: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1478: end if;
1479:
1480: if l_first_rec and not l_update then
1481: -- Call Create routine.

Line 1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;

1531: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
1532: -- Update all relevent cer records with new pk_id
1533: hr_utility.set_location('Before plsql table ',222);
1534: hr_utility.set_location('new_value id '||l_grade_rt_id,222);
1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;
1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;
1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;

Line 1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;

1532: -- Update all relevent cer records with new pk_id
1533: hr_utility.set_location('Before plsql table ',222);
1534: hr_utility.set_location('new_value id '||l_grade_rt_id,222);
1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;
1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;
1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1540: hr_utility.set_location('After plsql table ',222);

Line 1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;

1533: hr_utility.set_location('Before plsql table ',222);
1534: hr_utility.set_location('new_value id '||l_grade_rt_id,222);
1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;
1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;
1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1540: hr_utility.set_location('After plsql table ',222);
1541: --

Line 1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

1534: hr_utility.set_location('new_value id '||l_grade_rt_id,222);
1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;
1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;
1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1540: hr_utility.set_location('After plsql table ',222);
1541: --
1542: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;

1535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GRADE_RT_ID' ;
1536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GRR.information1 ;
1537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GRADE_RT_ID ;
1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1540: hr_utility.set_location('After plsql table ',222);
1541: --
1542: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1543: --

Line 1542: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

1538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
1539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GRR_unique.table_route_id;
1540: hr_utility.set_location('After plsql table ',222);
1541: --
1542: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1543: --
1544: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1545: --
1546: else

Line 1544: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

1540: hr_utility.set_location('After plsql table ',222);
1541: --
1542: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
1543: --
1544: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1545: --
1546: else
1547: --
1548: -- Call Update routine for the pk_id created in prev run .

Line 1660: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'GRR',r_grr.information5 );

1656: end loop;
1657: --
1658: exception when others then
1659: --
1660: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'GRR',r_grr.information5 );
1661: --
1662: end create_GRR_rows;
1663:
1664: --

Line 1806: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

1802: end if ;
1803: -- End Prefix Sufix derivation
1804: for r_FTR_unique in c_unique_FTR('FTR') loop
1805:
1806: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1807: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1808: r_FTR_unique.information3 >=
1809: ben_pd_copy_to_ben_one.g_copy_effective_date)
1810: ) then

Line 1807: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1803: -- End Prefix Sufix derivation
1804: for r_FTR_unique in c_unique_FTR('FTR') loop
1805:
1806: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1807: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1808: r_FTR_unique.information3 >=
1809: ben_pd_copy_to_ben_one.g_copy_effective_date)
1810: ) then
1811: --

Line 1809: ben_pd_copy_to_ben_one.g_copy_effective_date)

1805:
1806: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
1807: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1808: r_FTR_unique.information3 >=
1809: ben_pd_copy_to_ben_one.g_copy_effective_date)
1810: ) then
1811: --
1812: hr_utility.set_location(' r_FTR_unique.table_route_id '||r_FTR_unique.table_route_id,10);
1813: hr_utility.set_location(' r_FTR_unique.information1 '||r_FTR_unique.information1,10);

Line 1827: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1823: open c_FTR_min_max_dates(r_FTR_unique.table_route_id, r_FTR_unique.information1 ) ;
1824: fetch c_FTR_min_max_dates into l_min_esd,l_max_eed ;
1825: --
1826:
1827: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1828: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1829: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1830: end if;
1831: l_min_esd := greatest(l_min_esd,r_FTR_unique.information2);

Line 1828: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

1824: fetch c_FTR_min_max_dates into l_min_esd,l_max_eed ;
1825: --
1826:
1827: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1828: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1829: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1830: end if;
1831: l_min_esd := greatest(l_min_esd,r_FTR_unique.information2);
1832: open c_FTR(r_FTR_unique.table_route_id,

Line 1829: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

1825: --
1826:
1827: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1828: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1829: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
1830: end if;
1831: l_min_esd := greatest(l_min_esd,r_FTR_unique.information2);
1832: open c_FTR(r_FTR_unique.table_route_id,
1833: r_FTR_unique.information1,

Line 1857: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

1853: l_object_found_in_target := TRUE;
1854: --
1855: if l_process_date between r_FTR_unique.information2 and r_FTR_unique.information3 then
1856: l_update := true;
1857: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'
1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;

Line 1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'

1854: --
1855: if l_process_date between r_FTR_unique.information2 and r_FTR_unique.information3 then
1856: l_update := true;
1857: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'
1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;

Line 1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;

1856: l_update := true;
1857: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'
1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;
1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;

Line 1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;

1857: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'
1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;
1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;
1865: --

Line 1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;

1858: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID'
1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;
1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;
1865: --
1866: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

1859: then
1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;
1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;
1865: --
1866: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1867: --

Line 1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;

1860: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1861: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_FTR_unique.information1 ;
1862: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_FTR_unique.information1 ;
1863: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;
1865: --
1866: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1867: --
1868: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 1868: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

1864: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_FTR_unique.table_route_id;
1865: --
1866: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
1867: --
1868: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
1869: --
1870: --log_data('FTR',l_new_value,l_prefix || r_FTR_unique.name|| l_suffix,'REUSED');
1871: --
1872: end if ;

Line 1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

1896: p_from_date => l_min_esd,
1897: p_to_date => l_max_eed );
1898: if l_dt_rec_found THEN
1899: --END TEMPIK
1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then

1897: p_to_date => l_max_eed );
1898: if l_dt_rec_found THEN
1899: --END TEMPIK
1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;

1898: if l_dt_rec_found THEN
1899: --END TEMPIK
1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;

Line 1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;

1899: --END TEMPIK
1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --

Line 1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

1900: if r_FTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --
1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

1901: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'FL_TM_PT_TM_RT_ID' then
1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --
1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1909: --

Line 1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;

1902: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
1903: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR_unique.information1 ;
1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --
1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1909: --
1910: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

1904: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
1905: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --
1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1909: --
1910: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1911: end if ;
1912: --

Line 1910: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

1906: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
1907: --
1908: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
1909: --
1910: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
1911: end if ;
1912: --
1913: l_object_found_in_target := true ;
1914: --TEMPIK

Line 1944: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

1940: end if ;
1941: --
1942:
1943: l_effective_date := r_FTR.information2;
1944: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1945: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1946: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1947: end if;
1948:

Line 1945: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

1941: --
1942:
1943: l_effective_date := r_FTR.information2;
1944: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1945: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1946: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1947: end if;
1948:
1949: if l_first_rec and not l_update then

Line 1946: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

1942:
1943: l_effective_date := r_FTR.information2;
1944: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
1945: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
1946: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
1947: end if;
1948:
1949: if l_first_rec and not l_update then
1950: -- Call Create routine.

Line 2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;

1999: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
2000: -- Update all relevent cer records with new pk_id
2001: hr_utility.set_location('Before plsql table ',222);
2002: hr_utility.set_location('new_value id '||l_fl_tm_pt_tm_rt_id,222);
2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;
2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;
2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;

Line 2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;

2000: -- Update all relevent cer records with new pk_id
2001: hr_utility.set_location('Before plsql table ',222);
2002: hr_utility.set_location('new_value id '||l_fl_tm_pt_tm_rt_id,222);
2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;
2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;
2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
2008: hr_utility.set_location('After plsql table ',222);

Line 2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;

2001: hr_utility.set_location('Before plsql table ',222);
2002: hr_utility.set_location('new_value id '||l_fl_tm_pt_tm_rt_id,222);
2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;
2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;
2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
2008: hr_utility.set_location('After plsql table ',222);
2009: --

Line 2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

2002: hr_utility.set_location('new_value id '||l_fl_tm_pt_tm_rt_id,222);
2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;
2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;
2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
2008: hr_utility.set_location('After plsql table ',222);
2009: --
2010: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;

2003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'FL_TM_PT_TM_RT_ID' ;
2004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_FTR.information1 ;
2005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_FL_TM_PT_TM_RT_ID ;
2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
2008: hr_utility.set_location('After plsql table ',222);
2009: --
2010: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2011: --

Line 2010: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

2006: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2007: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_FTR_unique.table_route_id;
2008: hr_utility.set_location('After plsql table ',222);
2009: --
2010: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2011: --
2012: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2013: --
2014: else

Line 2012: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

2008: hr_utility.set_location('After plsql table ',222);
2009: --
2010: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2011: --
2012: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2013: --
2014: else
2015: --
2016: -- Call Update routine for the pk_id created in prev run .

Line 2126: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'FTR',r_ftr.information5 );

2122: end loop;
2123: --
2124: exception when others then
2125: --
2126: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'FTR',r_ftr.information5 );
2127: --
2128: end create_FTR_rows;
2129:
2130: --

Line 2271: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

2267: end if ;
2268: -- End Prefix Sufix derivation
2269: for r_BUR_unique in c_unique_BUR('BUR') loop
2270:
2271: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2272: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2273: r_BUR_unique.information3 >=
2274: ben_pd_copy_to_ben_one.g_copy_effective_date)
2275: ) then

Line 2272: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2268: -- End Prefix Sufix derivation
2269: for r_BUR_unique in c_unique_BUR('BUR') loop
2270:
2271: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2272: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2273: r_BUR_unique.information3 >=
2274: ben_pd_copy_to_ben_one.g_copy_effective_date)
2275: ) then
2276:

Line 2274: ben_pd_copy_to_ben_one.g_copy_effective_date)

2270:
2271: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2272: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2273: r_BUR_unique.information3 >=
2274: ben_pd_copy_to_ben_one.g_copy_effective_date)
2275: ) then
2276:
2277: --
2278: hr_utility.set_location(' r_BUR_unique.table_route_id '||r_BUR_unique.table_route_id,10);

Line 2293: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2289: open c_BUR_min_max_dates(r_BUR_unique.table_route_id, r_BUR_unique.information1 ) ;
2290: fetch c_BUR_min_max_dates into l_min_esd,l_max_eed ;
2291: --
2292:
2293: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2294: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2295: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2296: end if;
2297: l_min_esd := greatest(l_min_esd,r_BUR_unique.information2);

Line 2294: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

2290: fetch c_BUR_min_max_dates into l_min_esd,l_max_eed ;
2291: --
2292:
2293: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2294: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2295: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2296: end if;
2297: l_min_esd := greatest(l_min_esd,r_BUR_unique.information2);
2298: open c_BUR(r_BUR_unique.table_route_id,

Line 2295: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

2291: --
2292:
2293: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2294: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2295: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2296: end if;
2297: l_min_esd := greatest(l_min_esd,r_BUR_unique.information2);
2298: open c_BUR(r_BUR_unique.table_route_id,
2299: r_BUR_unique.information1,

Line 2321: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

2317: l_object_found_in_target := TRUE;
2318: --
2319: if l_process_date between r_BUR_unique.information2 and r_BUR_unique.information3 then
2320: l_update := true;
2321: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'
2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;

Line 2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'

2318: --
2319: if l_process_date between r_BUR_unique.information2 and r_BUR_unique.information3 then
2320: l_update := true;
2321: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'
2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;

Line 2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;

2320: l_update := true;
2321: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'
2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;
2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;

Line 2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;

2321: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'
2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;
2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;
2329: --

Line 2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;

2322: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID'
2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;
2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;
2329: --
2330: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

2323: then
2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;
2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;
2329: --
2330: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2331: --

Line 2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;

2324: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2325: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BUR_unique.information1 ;
2326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BUR_unique.information1 ;
2327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;
2329: --
2330: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2331: --
2332: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 2332: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

2328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BUR_unique.table_route_id;
2329: --
2330: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2331: --
2332: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
2333: --
2334: --log_data('BUR',l_new_value,l_prefix || r_BUR_unique.name|| l_suffix,'REUSED');
2335: --
2336: end if ;

Line 2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

2360: p_from_date => l_min_esd,
2361: p_to_date => l_max_eed );
2362: if l_dt_rec_found THEN
2363: --END TEMPIK
2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then

2361: p_to_date => l_max_eed );
2362: if l_dt_rec_found THEN
2363: --END TEMPIK
2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;

2362: if l_dt_rec_found THEN
2363: --END TEMPIK
2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;

Line 2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;

2363: --END TEMPIK
2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --

Line 2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

2364: if r_BUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --
2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

2365: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BRGNG_UNIT_RT_ID' then
2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --
2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2373: --

Line 2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;

2366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR_unique.information1 ;
2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --
2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2373: --
2374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

2368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --
2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2373: --
2374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2375: end if ;
2376: --

Line 2374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

2370: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2371: --
2372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2373: --
2374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2375: end if ;
2376: --
2377: l_object_found_in_target := true ;
2378: --TEMPIK

Line 2408: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2404: end if ;
2405: --
2406:
2407: l_effective_date := r_BUR.information2;
2408: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2409: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2410: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2411: end if;
2412:

Line 2409: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

2405: --
2406:
2407: l_effective_date := r_BUR.information2;
2408: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2409: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2410: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2411: end if;
2412:
2413: if l_first_rec and not l_update then

Line 2410: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

2406:
2407: l_effective_date := r_BUR.information2;
2408: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2409: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2410: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2411: end if;
2412:
2413: if l_first_rec and not l_update then
2414: -- Call Create routine.

Line 2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;

2463: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
2464: -- Update all relevent cer records with new pk_id
2465: hr_utility.set_location('Before plsql table ',222);
2466: hr_utility.set_location('new_value id '||l_brgng_unit_rt_id,222);
2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;
2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;
2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;

Line 2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;

2464: -- Update all relevent cer records with new pk_id
2465: hr_utility.set_location('Before plsql table ',222);
2466: hr_utility.set_location('new_value id '||l_brgng_unit_rt_id,222);
2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;
2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;
2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2472: hr_utility.set_location('After plsql table ',222);

Line 2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;

2465: hr_utility.set_location('Before plsql table ',222);
2466: hr_utility.set_location('new_value id '||l_brgng_unit_rt_id,222);
2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;
2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;
2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2472: hr_utility.set_location('After plsql table ',222);
2473: --

Line 2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

2466: hr_utility.set_location('new_value id '||l_brgng_unit_rt_id,222);
2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;
2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;
2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2472: hr_utility.set_location('After plsql table ',222);
2473: --
2474: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;

2467: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BRGNG_UNIT_RT_ID' ;
2468: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BUR.information1 ;
2469: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BRGNG_UNIT_RT_ID ;
2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2472: hr_utility.set_location('After plsql table ',222);
2473: --
2474: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2475: --

Line 2474: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

2470: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2471: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BUR_unique.table_route_id;
2472: hr_utility.set_location('After plsql table ',222);
2473: --
2474: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2475: --
2476: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2477: --
2478: else

Line 2476: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

2472: hr_utility.set_location('After plsql table ',222);
2473: --
2474: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2475: --
2476: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2477: --
2478: else
2479: --
2480: -- Call Update routine for the pk_id created in prev run .

Line 2590: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'BUR',r_bur.information5 );

2586: end loop;
2587: --
2588: exception when others then
2589: --
2590: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'BUR',r_bur.information5 );
2591: --
2592: end create_BUR_rows;
2593:
2594: --

Line 2736: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

2732: end if ;
2733: -- End Prefix Sufix derivation
2734: for r_ESR_unique in c_unique_ESR('ESR') loop
2735:
2736: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2737: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2738: r_ESR_unique.information3 >=
2739: ben_pd_copy_to_ben_one.g_copy_effective_date)
2740: ) then

Line 2737: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2733: -- End Prefix Sufix derivation
2734: for r_ESR_unique in c_unique_ESR('ESR') loop
2735:
2736: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2737: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2738: r_ESR_unique.information3 >=
2739: ben_pd_copy_to_ben_one.g_copy_effective_date)
2740: ) then
2741: --

Line 2739: ben_pd_copy_to_ben_one.g_copy_effective_date)

2735:
2736: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
2737: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2738: r_ESR_unique.information3 >=
2739: ben_pd_copy_to_ben_one.g_copy_effective_date)
2740: ) then
2741: --
2742: hr_utility.set_location(' r_ESR_unique.table_route_id '||r_ESR_unique.table_route_id,10);
2743: hr_utility.set_location(' r_ESR_unique.information1 '||r_ESR_unique.information1,10);

Line 2757: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2753: open c_ESR_min_max_dates(r_ESR_unique.table_route_id, r_ESR_unique.information1 ) ;
2754: fetch c_ESR_min_max_dates into l_min_esd,l_max_eed ;
2755: --
2756:
2757: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2758: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2759: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2760: end if;
2761: l_min_esd := greatest(l_min_esd,r_ESR_unique.information2);

Line 2758: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

2754: fetch c_ESR_min_max_dates into l_min_esd,l_max_eed ;
2755: --
2756:
2757: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2758: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2759: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2760: end if;
2761: l_min_esd := greatest(l_min_esd,r_ESR_unique.information2);
2762: open c_ESR(r_ESR_unique.table_route_id,

Line 2759: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

2755: --
2756:
2757: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2758: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2759: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
2760: end if;
2761: l_min_esd := greatest(l_min_esd,r_ESR_unique.information2);
2762: open c_ESR(r_ESR_unique.table_route_id,
2763: r_ESR_unique.information1,

Line 2771: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

2767: fetch c_ESR into r_ESR ;
2768: --
2769: close c_ESR ;
2770:
2771: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
2772: l_ASSIGNMENT_STATUS_TYPE_ID := r_ESR.information176;
2773: else
2774: l_ASSIGNMENT_STATUS_TYPE_ID := r_ESR.information174;
2775: end if;

Line 2800: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

2796: l_object_found_in_target := TRUE;
2797: --
2798: if l_process_date between r_ESR_unique.information2 and r_ESR_unique.information3 then
2799: l_update := true;
2800: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'
2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;

Line 2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'

2797: --
2798: if l_process_date between r_ESR_unique.information2 and r_ESR_unique.information3 then
2799: l_update := true;
2800: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'
2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;

Line 2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;

2799: l_update := true;
2800: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'
2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;
2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;

Line 2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;

2800: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'
2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;
2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;
2808: --

Line 2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;

2801: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'EE_STAT_RT_ID'
2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;
2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;
2808: --
2809: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

2802: then
2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;
2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;
2808: --
2809: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2810: --

Line 2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;

2803: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'EE_STAT_RT_ID' ;
2804: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ESR_unique.information1 ;
2805: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ESR_unique.information1 ;
2806: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;
2808: --
2809: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2810: --
2811: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 2811: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

2807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ESR_unique.table_route_id;
2808: --
2809: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
2810: --
2811: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
2812: --
2813: -- log_data('ESR',l_new_value,l_prefix || r_ESR_unique.name|| l_suffix,'REUSED');
2814: --
2815: end if ;

Line 2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

2840: p_from_date => l_min_esd,
2841: p_to_date => l_max_eed );
2842: if l_dt_rec_found THEN
2843: --END TEMPIK
2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then

2841: p_to_date => l_max_eed );
2842: if l_dt_rec_found THEN
2843: --END TEMPIK
2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;

2842: if l_dt_rec_found THEN
2843: --END TEMPIK
2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;

Line 2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;

2843: --END TEMPIK
2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --

Line 2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

2844: if r_ESR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --
2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

2845: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'EE_STAT_RT_ID' then
2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --
2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2853: --

Line 2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;

2846: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2847: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR_unique.information1 ;
2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --
2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2853: --
2854: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

2848: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
2849: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --
2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2853: --
2854: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2855: end if ;
2856: --

Line 2854: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

2850: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2851: --
2852: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
2853: --
2854: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2855: end if ;
2856: --
2857: l_object_found_in_target := true ;
2858: --TEMPIK

Line 2888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

2884: end if ;
2885: --
2886:
2887: l_effective_date := r_ESR.information2;
2888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2889: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2890: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2891: end if;
2892:

Line 2889: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

2885: --
2886:
2887: l_effective_date := r_ESR.information2;
2888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2889: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2890: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2891: end if;
2892:
2893: if l_first_rec and not l_update then

Line 2890: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

2886:
2887: l_effective_date := r_ESR.information2;
2888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
2889: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
2890: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
2891: end if;
2892:
2893: if l_first_rec and not l_update then
2894: -- Call Create routine.

Line 2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;

2943: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
2944: -- Update all relevent cer records with new pk_id
2945: hr_utility.set_location('Before plsql table ',222);
2946: hr_utility.set_location('new_value id '||l_ee_stat_rt_id,222);
2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;
2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;
2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;

Line 2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;

2944: -- Update all relevent cer records with new pk_id
2945: hr_utility.set_location('Before plsql table ',222);
2946: hr_utility.set_location('new_value id '||l_ee_stat_rt_id,222);
2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;
2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;
2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2952: hr_utility.set_location('After plsql table ',222);

Line 2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;

2945: hr_utility.set_location('Before plsql table ',222);
2946: hr_utility.set_location('new_value id '||l_ee_stat_rt_id,222);
2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;
2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;
2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2952: hr_utility.set_location('After plsql table ',222);
2953: --

Line 2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

2946: hr_utility.set_location('new_value id '||l_ee_stat_rt_id,222);
2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;
2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;
2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2952: hr_utility.set_location('After plsql table ',222);
2953: --
2954: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;

2947: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'EE_STAT_RT_ID' ;
2948: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ESR.information1 ;
2949: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_EE_STAT_RT_ID ;
2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2952: hr_utility.set_location('After plsql table ',222);
2953: --
2954: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2955: --

Line 2954: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

2950: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
2951: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ESR_unique.table_route_id;
2952: hr_utility.set_location('After plsql table ',222);
2953: --
2954: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2955: --
2956: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2957: --
2958: else

Line 2956: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

2952: hr_utility.set_location('After plsql table ',222);
2953: --
2954: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
2955: --
2956: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
2957: --
2958: else
2959: --
2960: -- Call Update routine for the pk_id created in prev run .

Line 3072: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ESR',r_esr.information5 );

3068: end loop;
3069: --
3070: exception when others then
3071: --
3072: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ESR',r_esr.information5 );
3073: --
3074: end create_ESR_rows;
3075:
3076: --

Line 3218: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

3214: end if ;
3215: -- End Prefix Sufix derivation
3216: for r_ASR_unique in c_unique_ASR('ASR') loop
3217:
3218: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3219: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3220: r_ASR_unique.information3 >=
3221: ben_pd_copy_to_ben_one.g_copy_effective_date)
3222: ) then

Line 3219: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3215: -- End Prefix Sufix derivation
3216: for r_ASR_unique in c_unique_ASR('ASR') loop
3217:
3218: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3219: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3220: r_ASR_unique.information3 >=
3221: ben_pd_copy_to_ben_one.g_copy_effective_date)
3222: ) then
3223: --

Line 3221: ben_pd_copy_to_ben_one.g_copy_effective_date)

3217:
3218: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3219: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3220: r_ASR_unique.information3 >=
3221: ben_pd_copy_to_ben_one.g_copy_effective_date)
3222: ) then
3223: --
3224: hr_utility.set_location(' r_ASR_unique.table_route_id '||r_ASR_unique.table_route_id,10);
3225: hr_utility.set_location(' r_ASR_unique.information1 '||r_ASR_unique.information1,10);

Line 3239: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3235: open c_ASR_min_max_dates(r_ASR_unique.table_route_id, r_ASR_unique.information1 ) ;
3236: fetch c_ASR_min_max_dates into l_min_esd,l_max_eed ;
3237: --
3238:
3239: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3240: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3241: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3242: end if;
3243: l_min_esd := greatest(l_min_esd,r_ASR_unique.information2);

Line 3240: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

3236: fetch c_ASR_min_max_dates into l_min_esd,l_max_eed ;
3237: --
3238:
3239: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3240: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3241: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3242: end if;
3243: l_min_esd := greatest(l_min_esd,r_ASR_unique.information2);
3244: open c_ASR(r_ASR_unique.table_route_id,

Line 3241: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

3237: --
3238:
3239: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3240: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3241: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3242: end if;
3243: l_min_esd := greatest(l_min_esd,r_ASR_unique.information2);
3244: open c_ASR(r_ASR_unique.table_route_id,
3245: r_ASR_unique.information1,

Line 3253: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

3249: fetch c_ASR into r_ASR ;
3250: --
3251: close c_ASR ;
3252: --
3253: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
3254: l_ASSIGNMENT_SET_ID := r_ASR.information176;
3255: else
3256: l_ASSIGNMENT_SET_ID := r_ASR.information174;
3257: end if;

Line 3282: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

3278: l_object_found_in_target := TRUE;
3279: --
3280: if l_process_date between r_ASR_unique.information2 and r_ASR_unique.information3 then
3281: l_update := true;
3282: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'
3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;

Line 3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'

3279: --
3280: if l_process_date between r_ASR_unique.information2 and r_ASR_unique.information3 then
3281: l_update := true;
3282: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'
3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;

Line 3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;

3281: l_update := true;
3282: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'
3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;
3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;

Line 3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;

3282: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'
3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;
3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;
3290: --

Line 3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;

3283: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID'
3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;
3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;
3290: --
3291: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

3284: then
3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;
3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;
3290: --
3291: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3292: --

Line 3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;

3285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ASNT_SET_RT_ID' ;
3286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ASR_unique.information1 ;
3287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ASR_unique.information1 ;
3288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;
3290: --
3291: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3292: --
3293: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 3293: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

3289: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ASR_unique.table_route_id;
3290: --
3291: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3292: --
3293: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
3294: --
3295: -- log_data('ASR',l_new_value,l_prefix || r_ASR_unique.name|| l_suffix,'REUSED');
3296: --
3297: end if ;

Line 3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

3321: p_from_date => l_min_esd,
3322: p_to_date => l_max_eed );
3323: if l_dt_rec_found THEN
3324: --END TEMPIK
3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then

3322: p_to_date => l_max_eed );
3323: if l_dt_rec_found THEN
3324: --END TEMPIK
3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;

3323: if l_dt_rec_found THEN
3324: --END TEMPIK
3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;

Line 3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;

3324: --END TEMPIK
3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --

Line 3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

3325: if r_ASR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --
3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

3326: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ASNT_SET_RT_ID' then
3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --
3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3334: --

Line 3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;

3327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR_unique.information1 ;
3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --
3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3334: --
3335: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

3329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --
3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3334: --
3335: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3336: end if ;
3337: --

Line 3335: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

3331: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3332: --
3333: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3334: --
3335: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3336: end if ;
3337: --
3338: l_object_found_in_target := true ;
3339: --TEMPIK

Line 3369: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3365: end if ;
3366: --
3367:
3368: l_effective_date := r_ASR.information2;
3369: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3370: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3371: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3372: end if;
3373:

Line 3370: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

3366: --
3367:
3368: l_effective_date := r_ASR.information2;
3369: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3370: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3371: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3372: end if;
3373:
3374: if l_first_rec and not l_update then

Line 3371: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

3367:
3368: l_effective_date := r_ASR.information2;
3369: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3370: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3371: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3372: end if;
3373:
3374: if l_first_rec and not l_update then
3375: -- Call Create routine.

Line 3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;

3424: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
3425: -- Update all relevent cer records with new pk_id
3426: hr_utility.set_location('Before plsql table ',222);
3427: hr_utility.set_location('new_value id '||l_asnt_set_rt_id,222);
3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;
3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;
3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;

Line 3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;

3425: -- Update all relevent cer records with new pk_id
3426: hr_utility.set_location('Before plsql table ',222);
3427: hr_utility.set_location('new_value id '||l_asnt_set_rt_id,222);
3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;
3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;
3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3433: hr_utility.set_location('After plsql table ',222);

Line 3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;

3426: hr_utility.set_location('Before plsql table ',222);
3427: hr_utility.set_location('new_value id '||l_asnt_set_rt_id,222);
3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;
3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;
3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3433: hr_utility.set_location('After plsql table ',222);
3434: --

Line 3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

3427: hr_utility.set_location('new_value id '||l_asnt_set_rt_id,222);
3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;
3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;
3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3433: hr_utility.set_location('After plsql table ',222);
3434: --
3435: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;

3428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ASNT_SET_RT_ID' ;
3429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ASR.information1 ;
3430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ASNT_SET_RT_ID ;
3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3433: hr_utility.set_location('After plsql table ',222);
3434: --
3435: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3436: --

Line 3435: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

3431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3432: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ASR_unique.table_route_id;
3433: hr_utility.set_location('After plsql table ',222);
3434: --
3435: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3436: --
3437: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3438: --
3439: else

Line 3437: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

3433: hr_utility.set_location('After plsql table ',222);
3434: --
3435: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3436: --
3437: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3438: --
3439: else
3440: --
3441: -- Call Update routine for the pk_id created in prev run .

Line 3553: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ASR',r_asr.information5 );

3549: end loop;
3550: --
3551: exception when others then
3552: --
3553: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ASR',r_asr.information5 );
3554: --
3555: end create_ASR_rows;
3556:
3557: --

Line 3699: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

3695: end if ;
3696: -- End Prefix Sufix derivation
3697: for r_TUR_unique in c_unique_TUR('TUR') loop
3698:
3699: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3700: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3701: r_TUR_unique.information3 >=
3702: ben_pd_copy_to_ben_one.g_copy_effective_date)
3703: ) then

Line 3700: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3696: -- End Prefix Sufix derivation
3697: for r_TUR_unique in c_unique_TUR('TUR') loop
3698:
3699: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3700: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3701: r_TUR_unique.information3 >=
3702: ben_pd_copy_to_ben_one.g_copy_effective_date)
3703: ) then
3704: --

Line 3702: ben_pd_copy_to_ben_one.g_copy_effective_date)

3698:
3699: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
3700: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3701: r_TUR_unique.information3 >=
3702: ben_pd_copy_to_ben_one.g_copy_effective_date)
3703: ) then
3704: --
3705: hr_utility.set_location(' r_TUR_unique.table_route_id '||r_TUR_unique.table_route_id,10);
3706: hr_utility.set_location(' r_TUR_unique.information1 '||r_TUR_unique.information1,10);

Line 3720: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3716: open c_TUR_min_max_dates(r_TUR_unique.table_route_id, r_TUR_unique.information1 ) ;
3717: fetch c_TUR_min_max_dates into l_min_esd,l_max_eed ;
3718: --
3719:
3720: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3721: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3722: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3723: end if;
3724: l_min_esd := greatest(l_min_esd,r_TUR_unique.information2);

Line 3721: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

3717: fetch c_TUR_min_max_dates into l_min_esd,l_max_eed ;
3718: --
3719:
3720: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3721: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3722: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3723: end if;
3724: l_min_esd := greatest(l_min_esd,r_TUR_unique.information2);
3725: open c_TUR(r_TUR_unique.table_route_id,

Line 3722: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

3718: --
3719:
3720: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3721: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3722: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
3723: end if;
3724: l_min_esd := greatest(l_min_esd,r_TUR_unique.information2);
3725: open c_TUR(r_TUR_unique.table_route_id,
3726: r_TUR_unique.information1,

Line 3750: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

3746: l_object_found_in_target := TRUE;
3747: --
3748: if l_process_date between r_TUR_unique.information2 and r_TUR_unique.information3 then
3749: l_update := true;
3750: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'
3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;

Line 3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'

3747: --
3748: if l_process_date between r_TUR_unique.information2 and r_TUR_unique.information3 then
3749: l_update := true;
3750: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'
3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;

Line 3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;

3749: l_update := true;
3750: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'
3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;
3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;

Line 3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;

3750: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'
3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;
3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;
3758: --

Line 3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;

3751: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID'
3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;
3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;
3758: --
3759: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

3752: then
3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;
3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;
3758: --
3759: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3760: --

Line 3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;

3753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TBCO_USE_RT_ID' ;
3754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TUR_unique.information1 ;
3755: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TUR_unique.information1 ;
3756: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;
3758: --
3759: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3760: --
3761: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 3761: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

3757: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TUR_unique.table_route_id;
3758: --
3759: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
3760: --
3761: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
3762: --
3763: -- log_data('TUR',l_new_value,l_prefix || r_TUR_unique.name|| l_suffix,'REUSED');
3764: --
3765: end if ;

Line 3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

3790: p_from_date => l_min_esd,
3791: p_to_date => l_max_eed );
3792: if l_dt_rec_found THEN
3793: --END TEMPIK
3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then

3791: p_to_date => l_max_eed );
3792: if l_dt_rec_found THEN
3793: --END TEMPIK
3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;

3792: if l_dt_rec_found THEN
3793: --END TEMPIK
3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;

Line 3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;

3793: --END TEMPIK
3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --

Line 3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

3794: if r_TUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --
3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

3795: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TBCO_USE_RT_ID' then
3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --
3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3803: --

Line 3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;

3796: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3797: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR_unique.information1 ;
3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --
3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3803: --
3804: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

3798: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
3799: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --
3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3803: --
3804: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3805: end if ;
3806: --

Line 3804: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

3800: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3801: --
3802: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
3803: --
3804: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3805: end if ;
3806: --
3807: l_object_found_in_target := true ;
3808: --TEMPIK

Line 3838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

3834: end if ;
3835: --
3836:
3837: l_effective_date := r_TUR.information2;
3838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3839: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3840: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3841: end if;
3842:

Line 3839: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

3835: --
3836:
3837: l_effective_date := r_TUR.information2;
3838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3839: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3840: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3841: end if;
3842:
3843: if l_first_rec and not l_update then

Line 3840: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

3836:
3837: l_effective_date := r_TUR.information2;
3838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
3839: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
3840: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
3841: end if;
3842:
3843: if l_first_rec and not l_update then
3844: -- Call Create routine.

Line 3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;

3893: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
3894: -- Update all relevent cer records with new pk_id
3895: hr_utility.set_location('Before plsql table ',222);
3896: hr_utility.set_location('new_value id '||l_tbco_use_rt_id,222);
3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;
3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;
3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;

Line 3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;

3894: -- Update all relevent cer records with new pk_id
3895: hr_utility.set_location('Before plsql table ',222);
3896: hr_utility.set_location('new_value id '||l_tbco_use_rt_id,222);
3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;
3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;
3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3902: hr_utility.set_location('After plsql table ',222);

Line 3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;

3895: hr_utility.set_location('Before plsql table ',222);
3896: hr_utility.set_location('new_value id '||l_tbco_use_rt_id,222);
3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;
3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;
3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3902: hr_utility.set_location('After plsql table ',222);
3903: --

Line 3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

3896: hr_utility.set_location('new_value id '||l_tbco_use_rt_id,222);
3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;
3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;
3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3902: hr_utility.set_location('After plsql table ',222);
3903: --
3904: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;

3897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TBCO_USE_RT_ID' ;
3898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TUR.information1 ;
3899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TBCO_USE_RT_ID ;
3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3902: hr_utility.set_location('After plsql table ',222);
3903: --
3904: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3905: --

Line 3904: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

3900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
3901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TUR_unique.table_route_id;
3902: hr_utility.set_location('After plsql table ',222);
3903: --
3904: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3905: --
3906: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3907: --
3908: else

Line 3906: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

3902: hr_utility.set_location('After plsql table ',222);
3903: --
3904: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
3905: --
3906: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
3907: --
3908: else
3909: --
3910: -- Call Update routine for the pk_id created in prev run .

Line 4020: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TUR',r_tur.information5 );

4016: end loop;
4017: --
4018: exception when others then
4019: --
4020: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TUR',r_tur.information5 );
4021: --
4022: end create_TUR_rows;
4023:
4024: --

Line 4166: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

4162: end if ;
4163: -- End Prefix Sufix derivation
4164: for r_SAR_unique in c_unique_SAR('SAR') loop
4165:
4166: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4167: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4168: r_SAR_unique.information3 >=
4169: ben_pd_copy_to_ben_one.g_copy_effective_date)
4170: ) then

Line 4167: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4163: -- End Prefix Sufix derivation
4164: for r_SAR_unique in c_unique_SAR('SAR') loop
4165:
4166: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4167: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4168: r_SAR_unique.information3 >=
4169: ben_pd_copy_to_ben_one.g_copy_effective_date)
4170: ) then
4171: --

Line 4169: ben_pd_copy_to_ben_one.g_copy_effective_date)

4165:
4166: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4167: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4168: r_SAR_unique.information3 >=
4169: ben_pd_copy_to_ben_one.g_copy_effective_date)
4170: ) then
4171: --
4172: hr_utility.set_location(' r_SAR_unique.table_route_id '||r_SAR_unique.table_route_id,10);
4173: hr_utility.set_location(' r_SAR_unique.information1 '||r_SAR_unique.information1,10);

Line 4187: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4183: open c_SAR_min_max_dates(r_SAR_unique.table_route_id, r_SAR_unique.information1 ) ;
4184: fetch c_SAR_min_max_dates into l_min_esd,l_max_eed ;
4185: --
4186:
4187: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4188: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4189: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4190: end if;
4191: l_min_esd := greatest(l_min_esd,r_SAR_unique.information2);

Line 4188: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

4184: fetch c_SAR_min_max_dates into l_min_esd,l_max_eed ;
4185: --
4186:
4187: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4188: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4189: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4190: end if;
4191: l_min_esd := greatest(l_min_esd,r_SAR_unique.information2);
4192: open c_SAR(r_SAR_unique.table_route_id,

Line 4189: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

4185: --
4186:
4187: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4188: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4189: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4190: end if;
4191: l_min_esd := greatest(l_min_esd,r_SAR_unique.information2);
4192: open c_SAR(r_SAR_unique.table_route_id,
4193: r_SAR_unique.information1,

Line 4216: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

4212: l_object_found_in_target := TRUE;
4213: --
4214: if l_process_date between r_SAR_unique.information2 and r_SAR_unique.information3 then
4215: l_update := true;
4216: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'
4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;

Line 4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'

4213: --
4214: if l_process_date between r_SAR_unique.information2 and r_SAR_unique.information3 then
4215: l_update := true;
4216: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'
4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;

Line 4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;

4215: l_update := true;
4216: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'
4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;
4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;

Line 4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;

4216: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'
4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;
4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;
4224: --

Line 4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;

4217: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID'
4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;
4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;
4224: --
4225: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

4218: then
4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;
4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;
4224: --
4225: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4226: --

Line 4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;

4219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SVC_AREA_RT_ID' ;
4220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SAR_unique.information1 ;
4221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SAR_unique.information1 ;
4222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;
4224: --
4225: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4226: --
4227: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 4227: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

4223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SAR_unique.table_route_id;
4224: --
4225: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4226: --
4227: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
4228: --
4229: -- log_data('SAR',l_new_value,l_prefix || r_SAR_unique.name|| l_suffix,'REUSED');
4230: --
4231: end if ;

Line 4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

4255: p_from_date => l_min_esd,
4256: p_to_date => l_max_eed );
4257: if l_dt_rec_found THEN
4258: --END TEMPIK
4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then

4256: p_to_date => l_max_eed );
4257: if l_dt_rec_found THEN
4258: --END TEMPIK
4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;

4257: if l_dt_rec_found THEN
4258: --END TEMPIK
4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;

Line 4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;

4258: --END TEMPIK
4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --

Line 4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

4259: if r_SAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --
4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

4260: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SVC_AREA_RT_ID' then
4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --
4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4268: --

Line 4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;

4261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR_unique.information1 ;
4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --
4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4268: --
4269: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

4263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4264: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --
4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4268: --
4269: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4270: end if ;
4271: --

Line 4269: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

4265: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4266: --
4267: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4268: --
4269: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4270: end if ;
4271: --
4272: l_object_found_in_target := true ;
4273: --TEMPIK

Line 4303: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4299: end if ;
4300: --
4301:
4302: l_effective_date := r_SAR.information2;
4303: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4304: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4305: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4306: end if;
4307:

Line 4304: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

4300: --
4301:
4302: l_effective_date := r_SAR.information2;
4303: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4304: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4305: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4306: end if;
4307:
4308: if l_first_rec and not l_update then

Line 4305: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

4301:
4302: l_effective_date := r_SAR.information2;
4303: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4304: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4305: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4306: end if;
4307:
4308: if l_first_rec and not l_update then
4309: -- Call Create routine.

Line 4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;

4358: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
4359: -- Update all relevent cer records with new pk_id
4360: hr_utility.set_location('Before plsql table ',222);
4361: hr_utility.set_location('new_value id '||l_svc_area_rt_id,222);
4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;
4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;
4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;

Line 4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;

4359: -- Update all relevent cer records with new pk_id
4360: hr_utility.set_location('Before plsql table ',222);
4361: hr_utility.set_location('new_value id '||l_svc_area_rt_id,222);
4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;
4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;
4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4367: hr_utility.set_location('After plsql table ',222);

Line 4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;

4360: hr_utility.set_location('Before plsql table ',222);
4361: hr_utility.set_location('new_value id '||l_svc_area_rt_id,222);
4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;
4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;
4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4367: hr_utility.set_location('After plsql table ',222);
4368: --

Line 4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

4361: hr_utility.set_location('new_value id '||l_svc_area_rt_id,222);
4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;
4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;
4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4367: hr_utility.set_location('After plsql table ',222);
4368: --
4369: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;

4362: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SVC_AREA_RT_ID' ;
4363: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SAR.information1 ;
4364: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SVC_AREA_RT_ID ;
4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4367: hr_utility.set_location('After plsql table ',222);
4368: --
4369: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4370: --

Line 4369: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

4365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SAR_unique.table_route_id;
4367: hr_utility.set_location('After plsql table ',222);
4368: --
4369: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4370: --
4371: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4372: --
4373: else

Line 4371: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

4367: hr_utility.set_location('After plsql table ',222);
4368: --
4369: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4370: --
4371: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4372: --
4373: else
4374: --
4375: -- Call Update routine for the pk_id created in prev run .

Line 4485: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'SAR',r_sar.information5 );

4481: end loop;
4482: --
4483: exception when others then
4484: --
4485: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'SAR',r_sar.information5 );
4486: --
4487: end create_SAR_rows;
4488:
4489: --

Line 4631: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

4627: end if ;
4628: -- End Prefix Sufix derivation
4629: for r_QTR_unique in c_unique_QTR('QTR') loop
4630:
4631: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4632: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4633: r_QTR_unique.information3 >=
4634: ben_pd_copy_to_ben_one.g_copy_effective_date)
4635: ) then

Line 4632: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4628: -- End Prefix Sufix derivation
4629: for r_QTR_unique in c_unique_QTR('QTR') loop
4630:
4631: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4632: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4633: r_QTR_unique.information3 >=
4634: ben_pd_copy_to_ben_one.g_copy_effective_date)
4635: ) then
4636: --

Line 4634: ben_pd_copy_to_ben_one.g_copy_effective_date)

4630:
4631: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
4632: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4633: r_QTR_unique.information3 >=
4634: ben_pd_copy_to_ben_one.g_copy_effective_date)
4635: ) then
4636: --
4637: hr_utility.set_location(' r_QTR_unique.table_route_id '||r_QTR_unique.table_route_id,10);
4638: hr_utility.set_location(' r_QTR_unique.information1 '||r_QTR_unique.information1,10);

Line 4652: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4648: open c_QTR_min_max_dates(r_QTR_unique.table_route_id, r_QTR_unique.information1 ) ;
4649: fetch c_QTR_min_max_dates into l_min_esd,l_max_eed ;
4650: --
4651:
4652: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4653: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4654: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4655: end if;
4656: l_min_esd := greatest(l_min_esd,r_QTR_unique.information2);

Line 4653: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

4649: fetch c_QTR_min_max_dates into l_min_esd,l_max_eed ;
4650: --
4651:
4652: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4653: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4654: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4655: end if;
4656: l_min_esd := greatest(l_min_esd,r_QTR_unique.information2);
4657: open c_QTR(r_QTR_unique.table_route_id,

Line 4654: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

4650: --
4651:
4652: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4653: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4654: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
4655: end if;
4656: l_min_esd := greatest(l_min_esd,r_QTR_unique.information2);
4657: open c_QTR(r_QTR_unique.table_route_id,
4658: r_QTR_unique.information1,

Line 4666: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

4662: fetch c_QTR into r_QTR ;
4663: --
4664: close c_QTR ;
4665: --
4666: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
4667: l_QUALIFICATION_TYPE_ID := r_QTR.information176;
4668: else
4669: l_QUALIFICATION_TYPE_ID := r_QTR.information174;
4670: end if;

Line 4694: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

4690: l_object_found_in_target := TRUE;
4691: --
4692: if l_process_date between r_QTR_unique.information2 and r_QTR_unique.information3 then
4693: l_update := true;
4694: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'
4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;

Line 4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'

4691: --
4692: if l_process_date between r_QTR_unique.information2 and r_QTR_unique.information3 then
4693: l_update := true;
4694: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'
4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;

Line 4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;

4693: l_update := true;
4694: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'
4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;
4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;

Line 4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;

4694: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'
4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;
4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;
4702: --

Line 4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;

4695: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID'
4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;
4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;
4702: --
4703: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

4696: then
4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;
4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;
4702: --
4703: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4704: --

Line 4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;

4697: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUAL_TITL_RT_ID' ;
4698: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QTR_unique.information1 ;
4699: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QTR_unique.information1 ;
4700: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;
4702: --
4703: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4704: --
4705: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 4705: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

4701: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QTR_unique.table_route_id;
4702: --
4703: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
4704: --
4705: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
4706: --
4707: -- log_data('QTR',l_new_value,l_prefix || r_QTR_unique.name|| l_suffix,'REUSED');
4708: --
4709: end if ;

Line 4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

4733: p_from_date => l_min_esd,
4734: p_to_date => l_max_eed );
4735: if l_dt_rec_found THEN
4736: --END TEMPIK
4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then

4734: p_to_date => l_max_eed );
4735: if l_dt_rec_found THEN
4736: --END TEMPIK
4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;

4735: if l_dt_rec_found THEN
4736: --END TEMPIK
4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;

Line 4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;

4736: --END TEMPIK
4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --

Line 4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

4737: if r_QTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --
4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

4738: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUAL_TITL_RT_ID' then
4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --
4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4746: --

Line 4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;

4739: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4740: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR_unique.information1 ;
4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --
4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4746: --
4747: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

4741: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
4742: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --
4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4746: --
4747: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4748: end if ;
4749: --

Line 4747: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

4743: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4744: --
4745: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
4746: --
4747: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4748: end if ;
4749: --
4750: l_object_found_in_target := true ;
4751: --TEMPIK

Line 4781: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

4777: end if ;
4778: --
4779:
4780: l_effective_date := r_QTR.information2;
4781: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4782: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4783: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4784: end if;
4785:

Line 4782: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

4778: --
4779:
4780: l_effective_date := r_QTR.information2;
4781: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4782: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4783: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4784: end if;
4785:
4786: if l_first_rec and not l_update then

Line 4783: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

4779:
4780: l_effective_date := r_QTR.information2;
4781: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
4782: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
4783: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
4784: end if;
4785:
4786: if l_first_rec and not l_update then
4787: -- Call Create routine.

Line 4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;

4837: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
4838: -- Update all relevent cer records with new pk_id
4839: hr_utility.set_location('Before plsql table ',222);
4840: hr_utility.set_location('new_value id '||l_qual_titl_rt_id,222);
4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;
4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;
4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;

Line 4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;

4838: -- Update all relevent cer records with new pk_id
4839: hr_utility.set_location('Before plsql table ',222);
4840: hr_utility.set_location('new_value id '||l_qual_titl_rt_id,222);
4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;
4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;
4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4846: hr_utility.set_location('After plsql table ',222);

Line 4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;

4839: hr_utility.set_location('Before plsql table ',222);
4840: hr_utility.set_location('new_value id '||l_qual_titl_rt_id,222);
4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;
4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;
4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4846: hr_utility.set_location('After plsql table ',222);
4847: --

Line 4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

4840: hr_utility.set_location('new_value id '||l_qual_titl_rt_id,222);
4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;
4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;
4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4846: hr_utility.set_location('After plsql table ',222);
4847: --
4848: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;

4841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUAL_TITL_RT_ID' ;
4842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QTR.information1 ;
4843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUAL_TITL_RT_ID ;
4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4846: hr_utility.set_location('After plsql table ',222);
4847: --
4848: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4849: --

Line 4848: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

4844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
4845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QTR_unique.table_route_id;
4846: hr_utility.set_location('After plsql table ',222);
4847: --
4848: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4849: --
4850: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4851: --
4852: else

Line 4850: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

4846: hr_utility.set_location('After plsql table ',222);
4847: --
4848: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
4849: --
4850: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
4851: --
4852: else
4853: --
4854: -- Call Update routine for the pk_id created in prev run .

Line 4967: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'QTR',r_qtr.information5 );

4963: end loop;
4964: --
4965: exception when others then
4966: --
4967: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'QTR',r_qtr.information5 );
4968: --
4969: end create_QTR_rows;
4970:
4971: --

Line 5113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

5109: end if ;
5110: -- End Prefix Sufix derivation
5111: for r_PZR_unique in c_unique_PZR('PZR') loop
5112:
5113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5115: r_PZR_unique.information3 >=
5116: ben_pd_copy_to_ben_one.g_copy_effective_date)
5117: ) then

Line 5114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5110: -- End Prefix Sufix derivation
5111: for r_PZR_unique in c_unique_PZR('PZR') loop
5112:
5113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5115: r_PZR_unique.information3 >=
5116: ben_pd_copy_to_ben_one.g_copy_effective_date)
5117: ) then
5118: --

Line 5116: ben_pd_copy_to_ben_one.g_copy_effective_date)

5112:
5113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5115: r_PZR_unique.information3 >=
5116: ben_pd_copy_to_ben_one.g_copy_effective_date)
5117: ) then
5118: --
5119: hr_utility.set_location(' r_PZR_unique.table_route_id '||r_PZR_unique.table_route_id,10);
5120: hr_utility.set_location(' r_PZR_unique.information1 '||r_PZR_unique.information1,10);

Line 5134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5130: open c_PZR_min_max_dates(r_PZR_unique.table_route_id, r_PZR_unique.information1 ) ;
5131: fetch c_PZR_min_max_dates into l_min_esd,l_max_eed ;
5132: --
5133:
5134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5137: end if;
5138: l_min_esd := greatest(l_min_esd,r_PZR_unique.information2);

Line 5135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

5131: fetch c_PZR_min_max_dates into l_min_esd,l_max_eed ;
5132: --
5133:
5134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5137: end if;
5138: l_min_esd := greatest(l_min_esd,r_PZR_unique.information2);
5139: open c_PZR(r_PZR_unique.table_route_id,

Line 5136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

5132: --
5133:
5134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5137: end if;
5138: l_min_esd := greatest(l_min_esd,r_PZR_unique.information2);
5139: open c_PZR(r_PZR_unique.table_route_id,
5140: r_PZR_unique.information1,

Line 5163: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

5159: l_object_found_in_target := TRUE;
5160: --
5161: if l_process_date between r_PZR_unique.information2 and r_PZR_unique.information3 then
5162: l_update := true;
5163: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'
5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;

Line 5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'

5160: --
5161: if l_process_date between r_PZR_unique.information2 and r_PZR_unique.information3 then
5162: l_update := true;
5163: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'
5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;

Line 5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;

5162: l_update := true;
5163: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'
5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;
5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;

Line 5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;

5163: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'
5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;
5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;
5171: --

Line 5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;

5164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID'
5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;
5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;
5171: --
5172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

5165: then
5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;
5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;
5171: --
5172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5173: --

Line 5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;

5166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PZR_unique.information1 ;
5168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PZR_unique.information1 ;
5169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;
5171: --
5172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5173: --
5174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 5174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

5170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PZR_unique.table_route_id;
5171: --
5172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5173: --
5174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
5175: --
5176: -- log_data('PZR',l_new_value,l_prefix || r_PZR_unique.name|| l_suffix,'REUSED');
5177: --
5178: end if ;

Line 5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

5202: p_from_date => l_min_esd,
5203: p_to_date => l_max_eed );
5204: if l_dt_rec_found THEN
5205: --END TEMPIK
5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then

5203: p_to_date => l_max_eed );
5204: if l_dt_rec_found THEN
5205: --END TEMPIK
5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;

5204: if l_dt_rec_found THEN
5205: --END TEMPIK
5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;

Line 5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;

5205: --END TEMPIK
5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --

Line 5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

5206: if r_PZR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --
5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

5207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTL_ZIP_RT_ID' then
5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --
5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5215: --

Line 5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;

5208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR_unique.information1 ;
5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --
5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5215: --
5216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

5210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --
5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5215: --
5216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5217: end if ;
5218: --

Line 5216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

5212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5213: --
5214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5215: --
5216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5217: end if ;
5218: --
5219: l_object_found_in_target := true ;
5220: --TEMPIK

Line 5250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5246: end if ;
5247: --
5248:
5249: l_effective_date := r_PZR.information2;
5250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5253: end if;
5254:

Line 5251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

5247: --
5248:
5249: l_effective_date := r_PZR.information2;
5250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5253: end if;
5254:
5255: if l_first_rec and not l_update then

Line 5252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

5248:
5249: l_effective_date := r_PZR.information2;
5250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5253: end if;
5254:
5255: if l_first_rec and not l_update then
5256: -- Call Create routine.

Line 5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;

5305: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
5306: -- Update all relevent cer records with new pk_id
5307: hr_utility.set_location('Before plsql table ',222);
5308: hr_utility.set_location('new_value id '||l_pstl_zip_rt_id,222);
5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;
5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;
5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;

Line 5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;

5306: -- Update all relevent cer records with new pk_id
5307: hr_utility.set_location('Before plsql table ',222);
5308: hr_utility.set_location('new_value id '||l_pstl_zip_rt_id,222);
5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;
5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;
5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5314: hr_utility.set_location('After plsql table ',222);

Line 5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;

5307: hr_utility.set_location('Before plsql table ',222);
5308: hr_utility.set_location('new_value id '||l_pstl_zip_rt_id,222);
5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;
5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;
5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5314: hr_utility.set_location('After plsql table ',222);
5315: --

Line 5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

5308: hr_utility.set_location('new_value id '||l_pstl_zip_rt_id,222);
5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;
5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;
5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5314: hr_utility.set_location('After plsql table ',222);
5315: --
5316: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;

5309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTL_ZIP_RT_ID' ;
5310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PZR.information1 ;
5311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTL_ZIP_RT_ID ;
5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5314: hr_utility.set_location('After plsql table ',222);
5315: --
5316: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5317: --

Line 5316: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

5312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PZR_unique.table_route_id;
5314: hr_utility.set_location('After plsql table ',222);
5315: --
5316: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5317: --
5318: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5319: --
5320: else

Line 5318: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

5314: hr_utility.set_location('After plsql table ',222);
5315: --
5316: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5317: --
5318: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5319: --
5320: else
5321: --
5322: -- Call Update routine for the pk_id created in prev run .

Line 5432: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PZR',r_pzr.information5 );

5428: end loop;
5429: --
5430: exception when others then
5431: --
5432: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PZR',r_pzr.information5 );
5433: --
5434: end create_PZR_rows;
5435:
5436: --

Line 5578: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

5574: end if ;
5575: -- End Prefix Sufix derivation
5576: for r_PTR_unique in c_unique_PTR('PTR') loop
5577:
5578: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5579: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5580: r_PTR_unique.information3 >=
5581: ben_pd_copy_to_ben_one.g_copy_effective_date)
5582: ) then

Line 5579: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5575: -- End Prefix Sufix derivation
5576: for r_PTR_unique in c_unique_PTR('PTR') loop
5577:
5578: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5579: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5580: r_PTR_unique.information3 >=
5581: ben_pd_copy_to_ben_one.g_copy_effective_date)
5582: ) then
5583: --

Line 5581: ben_pd_copy_to_ben_one.g_copy_effective_date)

5577:
5578: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
5579: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5580: r_PTR_unique.information3 >=
5581: ben_pd_copy_to_ben_one.g_copy_effective_date)
5582: ) then
5583: --
5584: hr_utility.set_location(' r_PTR_unique.table_route_id '||r_PTR_unique.table_route_id,10);
5585: hr_utility.set_location(' r_PTR_unique.information1 '||r_PTR_unique.information1,10);

Line 5599: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5595: open c_PTR_min_max_dates(r_PTR_unique.table_route_id, r_PTR_unique.information1 ) ;
5596: fetch c_PTR_min_max_dates into l_min_esd,l_max_eed ;
5597: --
5598:
5599: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5600: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5601: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5602: end if;
5603: l_min_esd := greatest(l_min_esd,r_PTR_unique.information2);

Line 5600: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

5596: fetch c_PTR_min_max_dates into l_min_esd,l_max_eed ;
5597: --
5598:
5599: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5600: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5601: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5602: end if;
5603: l_min_esd := greatest(l_min_esd,r_PTR_unique.information2);
5604: open c_PTR(r_PTR_unique.table_route_id,

Line 5601: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

5597: --
5598:
5599: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5600: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5601: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
5602: end if;
5603: l_min_esd := greatest(l_min_esd,r_PTR_unique.information2);
5604: open c_PTR(r_PTR_unique.table_route_id,
5605: r_PTR_unique.information1,

Line 5613: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

5609: fetch c_PTR into r_PTR ;
5610: --
5611: close c_PTR ;
5612: --
5613: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
5614: l_PERSON_TYPE_ID := r_PTR.information176;
5615: else
5616: l_PERSON_TYPE_ID := r_PTR.information174;
5617: end if;

Line 5643: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

5639: l_object_found_in_target := TRUE;
5640: --
5641: if l_process_date between r_PTR_unique.information2 and r_PTR_unique.information3 then
5642: l_update := true;
5643: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'
5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;

Line 5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'

5640: --
5641: if l_process_date between r_PTR_unique.information2 and r_PTR_unique.information3 then
5642: l_update := true;
5643: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'
5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;

Line 5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;

5642: l_update := true;
5643: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'
5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;
5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;

Line 5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;

5643: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'
5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;
5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;
5651: --

Line 5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;

5644: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PER_TYP_RT_ID'
5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;
5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;
5651: --
5652: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

5645: then
5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;
5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;
5651: --
5652: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5653: --

Line 5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;

5646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PER_TYP_RT_ID' ;
5647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PTR_unique.information1 ;
5648: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PTR_unique.information1 ;
5649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;
5651: --
5652: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5653: --
5654: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 5654: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

5650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PTR_unique.table_route_id;
5651: --
5652: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
5653: --
5654: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
5655: --
5656: -- log_data('PTR',l_new_value,l_prefix || r_PTR_unique.name|| l_suffix,'REUSED');
5657: --
5658: end if ;

Line 5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

5682: p_from_date => l_min_esd,
5683: p_to_date => l_max_eed );
5684: if l_dt_rec_found THEN
5685: --END TEMPIK
5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then

5683: p_to_date => l_max_eed );
5684: if l_dt_rec_found THEN
5685: --END TEMPIK
5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;

5684: if l_dt_rec_found THEN
5685: --END TEMPIK
5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;

Line 5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;

5685: --END TEMPIK
5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --

Line 5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

5686: if r_PTR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --
5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

5687: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PER_TYP_RT_ID' then
5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --
5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5695: --

Line 5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;

5688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5689: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR_unique.information1 ;
5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --
5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5695: --
5696: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

5690: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
5691: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --
5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5695: --
5696: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5697: end if ;
5698: --

Line 5696: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

5692: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5693: --
5694: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
5695: --
5696: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5697: end if ;
5698: --
5699: l_object_found_in_target := true ;
5700: --TEMPIK

Line 5730: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

5726: end if ;
5727: --
5728:
5729: l_effective_date := r_PTR.information2;
5730: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5731: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5732: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5733: end if;
5734:

Line 5731: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

5727: --
5728:
5729: l_effective_date := r_PTR.information2;
5730: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5731: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5732: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5733: end if;
5734:
5735: if l_first_rec and not l_update then

Line 5732: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

5728:
5729: l_effective_date := r_PTR.information2;
5730: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
5731: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
5732: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
5733: end if;
5734:
5735: if l_first_rec and not l_update then
5736: -- Call Create routine.

Line 5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;

5786: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
5787: -- Update all relevent cer records with new pk_id
5788: hr_utility.set_location('Before plsql table ',222);
5789: hr_utility.set_location('new_value id '||l_per_typ_rt_id,222);
5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;
5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;
5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;

Line 5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;

5787: -- Update all relevent cer records with new pk_id
5788: hr_utility.set_location('Before plsql table ',222);
5789: hr_utility.set_location('new_value id '||l_per_typ_rt_id,222);
5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;
5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;
5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5795: hr_utility.set_location('After plsql table ',222);

Line 5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;

5788: hr_utility.set_location('Before plsql table ',222);
5789: hr_utility.set_location('new_value id '||l_per_typ_rt_id,222);
5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;
5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;
5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5795: hr_utility.set_location('After plsql table ',222);
5796: --

Line 5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

5789: hr_utility.set_location('new_value id '||l_per_typ_rt_id,222);
5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;
5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;
5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5795: hr_utility.set_location('After plsql table ',222);
5796: --
5797: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;

5790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PER_TYP_RT_ID' ;
5791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PTR.information1 ;
5792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PER_TYP_RT_ID ;
5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5795: hr_utility.set_location('After plsql table ',222);
5796: --
5797: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5798: --

Line 5797: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

5793: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
5794: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PTR_unique.table_route_id;
5795: hr_utility.set_location('After plsql table ',222);
5796: --
5797: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5798: --
5799: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5800: --
5801: else

Line 5799: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

5795: hr_utility.set_location('After plsql table ',222);
5796: --
5797: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
5798: --
5799: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
5800: --
5801: else
5802: --
5803: -- Call Update routine for the pk_id created in prev run .

Line 5915: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PTR',r_ptr.information5 );

5911: end loop;
5912: --
5913: exception when others then
5914: --
5915: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PTR',r_ptr.information5 );
5916: --
5917: end create_PTR_rows;
5918:
5919: --

Line 6058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

6054: end if ;
6055: -- End Prefix Sufix derivation
6056: for r_GNR_unique in c_unique_GNR('GNR') loop
6057:
6058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6060: r_GNR_unique.information3 >=
6061: ben_pd_copy_to_ben_one.g_copy_effective_date)
6062: ) then

Line 6059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6055: -- End Prefix Sufix derivation
6056: for r_GNR_unique in c_unique_GNR('GNR') loop
6057:
6058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6060: r_GNR_unique.information3 >=
6061: ben_pd_copy_to_ben_one.g_copy_effective_date)
6062: ) then
6063: --

Line 6061: ben_pd_copy_to_ben_one.g_copy_effective_date)

6057:
6058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6060: r_GNR_unique.information3 >=
6061: ben_pd_copy_to_ben_one.g_copy_effective_date)
6062: ) then
6063: --
6064: hr_utility.set_location(' r_GNR_unique.table_route_id '||r_GNR_unique.table_route_id,10);
6065: hr_utility.set_location(' r_GNR_unique.information1 '||r_GNR_unique.information1,10);

Line 6079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6075: open c_GNR_min_max_dates(r_GNR_unique.table_route_id, r_GNR_unique.information1 ) ;
6076: fetch c_GNR_min_max_dates into l_min_esd,l_max_eed ;
6077: --
6078:
6079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6082: end if;
6083: l_min_esd := greatest(l_min_esd,r_GNR_unique.information2);

Line 6080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

6076: fetch c_GNR_min_max_dates into l_min_esd,l_max_eed ;
6077: --
6078:
6079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6082: end if;
6083: l_min_esd := greatest(l_min_esd,r_GNR_unique.information2);
6084: open c_GNR(r_GNR_unique.table_route_id,

Line 6081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

6077: --
6078:
6079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6082: end if;
6083: l_min_esd := greatest(l_min_esd,r_GNR_unique.information2);
6084: open c_GNR(r_GNR_unique.table_route_id,
6085: r_GNR_unique.information1,

Line 6108: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

6104: l_object_found_in_target := TRUE;
6105: --
6106: if l_process_date between r_GNR_unique.information2 and r_GNR_unique.information3 then
6107: l_update := true;
6108: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'
6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;

Line 6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'

6105: --
6106: if l_process_date between r_GNR_unique.information2 and r_GNR_unique.information3 then
6107: l_update := true;
6108: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'
6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;

Line 6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;

6107: l_update := true;
6108: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'
6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;
6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;

Line 6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;

6108: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'
6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;
6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;
6116: --

Line 6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;

6109: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'GNDR_RT_ID'
6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;
6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;
6116: --
6117: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

6110: then
6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;
6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;
6116: --
6117: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6118: --

Line 6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;

6111: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'GNDR_RT_ID' ;
6112: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_GNR_unique.information1 ;
6113: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_GNR_unique.information1 ;
6114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;
6116: --
6117: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6118: --
6119: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 6119: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

6115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_GNR_unique.table_route_id;
6116: --
6117: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6118: --
6119: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
6120: --
6121: --log_data('GNR',l_new_value,l_prefix || r_GNR_unique.name|| l_suffix,'REUSED');
6122: --
6123: end if ;

Line 6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

6147: p_from_date => l_min_esd,
6148: p_to_date => l_max_eed );
6149: if l_dt_rec_found THEN
6150: --END TEMPIK
6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then

6148: p_to_date => l_max_eed );
6149: if l_dt_rec_found THEN
6150: --END TEMPIK
6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;

6149: if l_dt_rec_found THEN
6150: --END TEMPIK
6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;

Line 6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;

6150: --END TEMPIK
6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --

Line 6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

6151: if r_GNR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --
6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

6152: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'GNDR_RT_ID' then
6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --
6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6160: --

Line 6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;

6153: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6154: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR_unique.information1 ;
6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --
6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6160: --
6161: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

6155: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6156: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --
6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6160: --
6161: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6162: end if ;
6163: --

Line 6161: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

6157: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6158: --
6159: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6160: --
6161: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6162: end if ;
6163: --
6164: l_object_found_in_target := true ;
6165: --TEMPIK

Line 6195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6191: end if ;
6192: --
6193:
6194: l_effective_date := r_GNR.information2;
6195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6196: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6197: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6198: end if;
6199:

Line 6196: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

6192: --
6193:
6194: l_effective_date := r_GNR.information2;
6195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6196: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6197: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6198: end if;
6199:
6200: if l_first_rec and not l_update then

Line 6197: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

6193:
6194: l_effective_date := r_GNR.information2;
6195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6196: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6197: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6198: end if;
6199:
6200: if l_first_rec and not l_update then
6201: -- Call Create routine.

Line 6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;

6250: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
6251: -- Update all relevent cer records with new pk_id
6252: hr_utility.set_location('Before plsql table ',222);
6253: hr_utility.set_location('new_value id '||l_gndr_rt_id,222);
6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;
6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;
6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;

Line 6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;

6251: -- Update all relevent cer records with new pk_id
6252: hr_utility.set_location('Before plsql table ',222);
6253: hr_utility.set_location('new_value id '||l_gndr_rt_id,222);
6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;
6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;
6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6259: hr_utility.set_location('After plsql table ',222);

Line 6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;

6252: hr_utility.set_location('Before plsql table ',222);
6253: hr_utility.set_location('new_value id '||l_gndr_rt_id,222);
6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;
6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;
6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6259: hr_utility.set_location('After plsql table ',222);
6260: --

Line 6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

6253: hr_utility.set_location('new_value id '||l_gndr_rt_id,222);
6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;
6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;
6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6259: hr_utility.set_location('After plsql table ',222);
6260: --
6261: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;

6254: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'GNDR_RT_ID' ;
6255: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_GNR.information1 ;
6256: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_GNDR_RT_ID ;
6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6259: hr_utility.set_location('After plsql table ',222);
6260: --
6261: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6262: --

Line 6261: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

6257: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6258: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_GNR_unique.table_route_id;
6259: hr_utility.set_location('After plsql table ',222);
6260: --
6261: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6262: --
6263: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6264: --
6265: else

Line 6263: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

6259: hr_utility.set_location('After plsql table ',222);
6260: --
6261: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6262: --
6263: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6264: --
6265: else
6266: --
6267: -- Call Update routine for the pk_id created in prev run .

Line 6377: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'GNR',r_gnr.information5 );

6373: end loop;
6374: --
6375: exception when others then
6376: --
6377: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'GNR',r_gnr.information5 );
6378: --
6379: end create_GNR_rows;
6380:
6381: --

Line 6523: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

6519: end if ;
6520: -- End Prefix Sufix derivation
6521: for r_DBR_unique in c_unique_DBR('DBR') loop
6522:
6523: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6524: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6525: r_DBR_unique.information3 >=
6526: ben_pd_copy_to_ben_one.g_copy_effective_date)
6527: ) then

Line 6524: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6520: -- End Prefix Sufix derivation
6521: for r_DBR_unique in c_unique_DBR('DBR') loop
6522:
6523: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6524: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6525: r_DBR_unique.information3 >=
6526: ben_pd_copy_to_ben_one.g_copy_effective_date)
6527: ) then
6528: --

Line 6526: ben_pd_copy_to_ben_one.g_copy_effective_date)

6522:
6523: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6524: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6525: r_DBR_unique.information3 >=
6526: ben_pd_copy_to_ben_one.g_copy_effective_date)
6527: ) then
6528: --
6529: hr_utility.set_location(' r_DBR_unique.table_route_id '||r_DBR_unique.table_route_id,10);
6530: hr_utility.set_location(' r_DBR_unique.information1 '||r_DBR_unique.information1,10);

Line 6544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6540: open c_DBR_min_max_dates(r_DBR_unique.table_route_id, r_DBR_unique.information1 ) ;
6541: fetch c_DBR_min_max_dates into l_min_esd,l_max_eed ;
6542: --
6543:
6544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6545: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6546: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6547: end if;
6548: l_min_esd := greatest(l_min_esd,r_DBR_unique.information2);

Line 6545: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

6541: fetch c_DBR_min_max_dates into l_min_esd,l_max_eed ;
6542: --
6543:
6544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6545: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6546: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6547: end if;
6548: l_min_esd := greatest(l_min_esd,r_DBR_unique.information2);
6549: open c_DBR(r_DBR_unique.table_route_id,

Line 6546: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

6542: --
6543:
6544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6545: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6546: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
6547: end if;
6548: l_min_esd := greatest(l_min_esd,r_DBR_unique.information2);
6549: open c_DBR(r_DBR_unique.table_route_id,
6550: r_DBR_unique.information1,

Line 6573: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

6569: l_object_found_in_target := TRUE;
6570: --
6571: if l_process_date between r_DBR_unique.information2 and r_DBR_unique.information3 then
6572: l_update := true;
6573: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'
6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;

Line 6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'

6570: --
6571: if l_process_date between r_DBR_unique.information2 and r_DBR_unique.information3 then
6572: l_update := true;
6573: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'
6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;

Line 6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;

6572: l_update := true;
6573: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'
6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;
6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;

Line 6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;

6573: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'
6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;
6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;
6581: --

Line 6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;

6574: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DSBLD_RT_ID'
6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;
6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;
6581: --
6582: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

6575: then
6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;
6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;
6581: --
6582: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6583: --

Line 6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;

6576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DSBLD_RT_ID' ;
6577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DBR_unique.information1 ;
6578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DBR_unique.information1 ;
6579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;
6581: --
6582: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6583: --
6584: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 6584: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

6580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DBR_unique.table_route_id;
6581: --
6582: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
6583: --
6584: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
6585: --
6586: --log_data('DBR',l_new_value,l_prefix || r_DBR_unique.name|| l_suffix,'REUSED');
6587: --
6588: end if ;

Line 6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

6612: p_from_date => l_min_esd,
6613: p_to_date => l_max_eed );
6614: if l_dt_rec_found THEN
6615: --END TEMPIK
6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then

6613: p_to_date => l_max_eed );
6614: if l_dt_rec_found THEN
6615: --END TEMPIK
6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;

6614: if l_dt_rec_found THEN
6615: --END TEMPIK
6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;

Line 6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;

6615: --END TEMPIK
6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --

Line 6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

6616: if r_DBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --
6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

6617: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DSBLD_RT_ID' then
6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --
6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6625: --

Line 6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;

6618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR_unique.information1 ;
6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --
6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6625: --
6626: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

6620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
6621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --
6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6625: --
6626: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6627: end if ;
6628: --

Line 6626: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

6622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6623: --
6624: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
6625: --
6626: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6627: end if ;
6628: --
6629: l_object_found_in_target := true ;
6630: --TEMPIK

Line 6660: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6656: end if ;
6657: --
6658:
6659: l_effective_date := r_DBR.information2;
6660: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6661: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6662: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6663: end if;
6664:

Line 6661: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

6657: --
6658:
6659: l_effective_date := r_DBR.information2;
6660: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6661: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6662: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6663: end if;
6664:
6665: if l_first_rec and not l_update then

Line 6662: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

6658:
6659: l_effective_date := r_DBR.information2;
6660: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6661: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
6662: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
6663: end if;
6664:
6665: if l_first_rec and not l_update then
6666: -- Call Create routine.

Line 6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;

6715: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
6716: -- Update all relevent cer records with new pk_id
6717: hr_utility.set_location('Before plsql table ',222);
6718: hr_utility.set_location('new_value id '||l_dsbld_rt_id,222);
6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;
6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;
6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;

Line 6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;

6716: -- Update all relevent cer records with new pk_id
6717: hr_utility.set_location('Before plsql table ',222);
6718: hr_utility.set_location('new_value id '||l_dsbld_rt_id,222);
6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;
6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;
6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6724: hr_utility.set_location('After plsql table ',222);

Line 6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;

6717: hr_utility.set_location('Before plsql table ',222);
6718: hr_utility.set_location('new_value id '||l_dsbld_rt_id,222);
6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;
6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;
6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6724: hr_utility.set_location('After plsql table ',222);
6725: --

Line 6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

6718: hr_utility.set_location('new_value id '||l_dsbld_rt_id,222);
6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;
6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;
6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6724: hr_utility.set_location('After plsql table ',222);
6725: --
6726: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;

6719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DSBLD_RT_ID' ;
6720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DBR.information1 ;
6721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DSBLD_RT_ID ;
6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6724: hr_utility.set_location('After plsql table ',222);
6725: --
6726: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6727: --

Line 6726: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

6722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
6723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DBR_unique.table_route_id;
6724: hr_utility.set_location('After plsql table ',222);
6725: --
6726: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6727: --
6728: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6729: --
6730: else

Line 6728: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

6724: hr_utility.set_location('After plsql table ',222);
6725: --
6726: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
6727: --
6728: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
6729: --
6730: else
6731: --
6732: -- Call Update routine for the pk_id created in prev run .

Line 6842: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DBR',r_dbr.information5 );

6838: end loop;
6839: --
6840: exception when others then
6841: --
6842: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DBR',r_dbr.information5 );
6843: --
6844: end create_DBR_rows;
6845:
6846: --

Line 6994: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

6990: end if ;
6991: -- End Prefix Sufix derivation
6992: for r_CTY_unique in c_unique_CTY('CTY') loop
6993:
6994: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6995: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6996: r_CTY_unique.information3 >=
6997: ben_pd_copy_to_ben_one.g_copy_effective_date)
6998: ) then

Line 6995: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

6991: -- End Prefix Sufix derivation
6992: for r_CTY_unique in c_unique_CTY('CTY') loop
6993:
6994: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6995: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6996: r_CTY_unique.information3 >=
6997: ben_pd_copy_to_ben_one.g_copy_effective_date)
6998: ) then
6999: --

Line 6997: ben_pd_copy_to_ben_one.g_copy_effective_date)

6993:
6994: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
6995: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
6996: r_CTY_unique.information3 >=
6997: ben_pd_copy_to_ben_one.g_copy_effective_date)
6998: ) then
6999: --
7000: hr_utility.set_location(' r_CTY_unique.table_route_id '||r_CTY_unique.table_route_id,10);
7001: hr_utility.set_location(' r_CTY_unique.information1 '||r_CTY_unique.information1,10);

Line 7015: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7011: open c_CTY_min_max_dates(r_CTY_unique.table_route_id, r_CTY_unique.information1 ) ;
7012: fetch c_CTY_min_max_dates into l_min_esd,l_max_eed ;
7013: --
7014:
7015: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7016: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7017: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7018: end if;
7019: l_min_esd := greatest(l_min_esd,r_CTY_unique.information2);

Line 7016: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

7012: fetch c_CTY_min_max_dates into l_min_esd,l_max_eed ;
7013: --
7014:
7015: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7016: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7017: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7018: end if;
7019: l_min_esd := greatest(l_min_esd,r_CTY_unique.information2);
7020: open c_CTY(r_CTY_unique.table_route_id,

Line 7017: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

7013: --
7014:
7015: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7016: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7017: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7018: end if;
7019: l_min_esd := greatest(l_min_esd,r_CTY_unique.information2);
7020: open c_CTY(r_CTY_unique.table_route_id,
7021: r_CTY_unique.information1,

Line 7031: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

7027: close c_CTY ;
7028: --
7029: --Mapping Related
7030: --
7031: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
7032: l_COMPETENCE_ID := r_CTY.information176;
7033: else
7034: l_COMPETENCE_ID := r_CTY.information174;
7035: end if;

Line 7037: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

7033: else
7034: l_COMPETENCE_ID := r_CTY.information174;
7035: end if;
7036: --
7037: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
7038: l_RATING_LEVEL_ID := r_CTY.information180;
7039: else
7040: l_RATING_LEVEL_ID := r_CTY.information178;
7041: end if;

Line 7069: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

7065: l_object_found_in_target := TRUE;
7066: --
7067: if l_process_date between r_CTY_unique.information2 and r_CTY_unique.information3 then
7068: l_update := true;
7069: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'
7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;

Line 7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'

7066: --
7067: if l_process_date between r_CTY_unique.information2 and r_CTY_unique.information3 then
7068: l_update := true;
7069: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'
7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;

Line 7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;

7068: l_update := true;
7069: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'
7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;
7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;

Line 7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;

7069: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'
7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;
7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;
7077: --

Line 7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;

7070: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID'
7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;
7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;
7077: --
7078: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

7071: then
7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;
7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;
7077: --
7078: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7079: --

Line 7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;

7072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMPTNCY_RT_ID' ;
7073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CTY_unique.information1 ;
7074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CTY_unique.information1 ;
7075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;
7077: --
7078: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7079: --
7080: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 7080: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

7076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CTY_unique.table_route_id;
7077: --
7078: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7079: --
7080: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
7081: --
7082: --log_data('CTY',l_new_value,l_prefix || r_CTY_unique.name|| l_suffix,'REUSED');
7083: --
7084: end if ;

Line 7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

7108: p_from_date => l_min_esd,
7109: p_to_date => l_max_eed );
7110: if l_dt_rec_found THEN
7111: --END TEMPIK
7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then

7109: p_to_date => l_max_eed );
7110: if l_dt_rec_found THEN
7111: --END TEMPIK
7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;

7110: if l_dt_rec_found THEN
7111: --END TEMPIK
7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;

Line 7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;

7111: --END TEMPIK
7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --

Line 7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

7112: if r_CTY_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --
7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

7113: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMPTNCY_RT_ID' then
7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --
7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7121: --

Line 7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;

7114: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY_unique.information1 ;
7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --
7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7121: --
7122: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

7116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --
7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7121: --
7122: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7123: end if ;
7124: --

Line 7122: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

7118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7119: --
7120: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7121: --
7122: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7123: end if ;
7124: --
7125: l_object_found_in_target := true ;
7126: --TEMPIK

Line 7156: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7152: end if ;
7153: --
7154:
7155: l_effective_date := r_CTY.information2;
7156: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7157: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7158: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7159: end if;
7160:

Line 7157: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

7153: --
7154:
7155: l_effective_date := r_CTY.information2;
7156: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7157: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7158: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7159: end if;
7160:
7161: if l_first_rec and not l_update then

Line 7158: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

7154:
7155: l_effective_date := r_CTY.information2;
7156: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7157: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7158: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7159: end if;
7160:
7161: if l_first_rec and not l_update then
7162: -- Call Create routine.

Line 7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;

7212: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
7213: -- Update all relevent cer records with new pk_id
7214: hr_utility.set_location('Before plsql table ',222);
7215: hr_utility.set_location('new_value id '||l_comptncy_rt_id,222);
7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;
7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;
7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;

Line 7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;

7213: -- Update all relevent cer records with new pk_id
7214: hr_utility.set_location('Before plsql table ',222);
7215: hr_utility.set_location('new_value id '||l_comptncy_rt_id,222);
7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;
7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;
7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7221: hr_utility.set_location('After plsql table ',222);

Line 7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;

7214: hr_utility.set_location('Before plsql table ',222);
7215: hr_utility.set_location('new_value id '||l_comptncy_rt_id,222);
7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;
7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;
7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7221: hr_utility.set_location('After plsql table ',222);
7222: --

Line 7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

7215: hr_utility.set_location('new_value id '||l_comptncy_rt_id,222);
7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;
7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;
7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7221: hr_utility.set_location('After plsql table ',222);
7222: --
7223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;

7216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMPTNCY_RT_ID' ;
7217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CTY.information1 ;
7218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMPTNCY_RT_ID ;
7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7221: hr_utility.set_location('After plsql table ',222);
7222: --
7223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7224: --

Line 7223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

7219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CTY_unique.table_route_id;
7221: hr_utility.set_location('After plsql table ',222);
7222: --
7223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7224: --
7225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7226: --
7227: else

Line 7225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

7221: hr_utility.set_location('After plsql table ',222);
7222: --
7223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7224: --
7225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7226: --
7227: else
7228: --
7229: -- Call Update routine for the pk_id created in prev run .

Line 7342: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CTY',r_cty.information5 );

7338: end loop;
7339: --
7340: exception when others then
7341: --
7342: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CTY',r_cty.information5 );
7343: --
7344: end create_CTY_rows;
7345:
7346: --

Line 7482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

7478: end if ;
7479: -- End Prefix Sufix derivation
7480: for r_LMM_unique in c_unique_LMM('LMM') loop
7481:
7482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7484: r_LMM_unique.information3 >=
7485: ben_pd_copy_to_ben_one.g_copy_effective_date)
7486: ) then

Line 7483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7479: -- End Prefix Sufix derivation
7480: for r_LMM_unique in c_unique_LMM('LMM') loop
7481:
7482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7484: r_LMM_unique.information3 >=
7485: ben_pd_copy_to_ben_one.g_copy_effective_date)
7486: ) then
7487: --

Line 7485: ben_pd_copy_to_ben_one.g_copy_effective_date)

7481:
7482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7484: r_LMM_unique.information3 >=
7485: ben_pd_copy_to_ben_one.g_copy_effective_date)
7486: ) then
7487: --
7488: hr_utility.set_location(' r_LMM_unique.table_route_id '||r_LMM_unique.table_route_id,10);
7489: hr_utility.set_location(' r_LMM_unique.information1 '||r_LMM_unique.information1,10);

Line 7503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7499: open c_LMM_min_max_dates(r_LMM_unique.table_route_id, r_LMM_unique.information1 ) ;
7500: fetch c_LMM_min_max_dates into l_min_esd,l_max_eed ;
7501: --
7502:
7503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7506: end if;
7507: l_min_esd := greatest(l_min_esd,r_LMM_unique.information2);

Line 7504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

7500: fetch c_LMM_min_max_dates into l_min_esd,l_max_eed ;
7501: --
7502:
7503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7506: end if;
7507: l_min_esd := greatest(l_min_esd,r_LMM_unique.information2);
7508: open c_LMM(r_LMM_unique.table_route_id,

Line 7505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

7501: --
7502:
7503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7506: end if;
7507: l_min_esd := greatest(l_min_esd,r_LMM_unique.information2);
7508: open c_LMM(r_LMM_unique.table_route_id,
7509: r_LMM_unique.information1,

Line 7531: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

7527: l_object_found_in_target := TRUE;
7528: --
7529: if l_process_date between r_LMM_unique.information2 and r_LMM_unique.information3 then
7530: l_update := true;
7531: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'
7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;

Line 7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'

7528: --
7529: if l_process_date between r_LMM_unique.information2 and r_LMM_unique.information3 then
7530: l_update := true;
7531: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'
7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;

Line 7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;

7530: l_update := true;
7531: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'
7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;
7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;

Line 7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;

7531: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'
7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;
7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;
7539: --

Line 7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;

7532: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID'
7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;
7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;
7539: --
7540: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

7533: then
7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;
7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;
7539: --
7540: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7541: --

Line 7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;

7534: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LBR_MMBR_RT_ID' ;
7535: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LMM_unique.information1 ;
7536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LMM_unique.information1 ;
7537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;
7539: --
7540: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7541: --
7542: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 7542: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

7538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LMM_unique.table_route_id;
7539: --
7540: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
7541: --
7542: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
7543: --
7544: -- log_data('LMM',l_new_value,l_prefix || r_LMM_unique.name|| l_suffix,'REUSED');
7545: --
7546: end if ;

Line 7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

7570: p_from_date => l_min_esd,
7571: p_to_date => l_max_eed );
7572: if l_dt_rec_found THEN
7573: --END TEMPIK
7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then

7571: p_to_date => l_max_eed );
7572: if l_dt_rec_found THEN
7573: --END TEMPIK
7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;

7572: if l_dt_rec_found THEN
7573: --END TEMPIK
7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;

Line 7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;

7573: --END TEMPIK
7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --

Line 7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

7574: if r_LMM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --
7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

7575: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LBR_MMBR_RT_ID' then
7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --
7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7583: --

Line 7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;

7576: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7577: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM_unique.information1 ;
7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --
7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7583: --
7584: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

7578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
7579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --
7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7583: --
7584: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7585: end if ;
7586: --

Line 7584: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

7580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7581: --
7582: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
7583: --
7584: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7585: end if ;
7586: --
7587: l_object_found_in_target := true ;
7588: --TEMPIK

Line 7618: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7614: end if ;
7615: --
7616:
7617: l_effective_date := r_LMM.information2;
7618: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7619: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7620: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7621: end if;
7622:

Line 7619: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

7615: --
7616:
7617: l_effective_date := r_LMM.information2;
7618: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7619: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7620: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7621: end if;
7622:
7623: if l_first_rec and not l_update then

Line 7620: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

7616:
7617: l_effective_date := r_LMM.information2;
7618: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7619: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7620: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
7621: end if;
7622:
7623: if l_first_rec and not l_update then
7624: -- Call Create routine.

Line 7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;

7673: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
7674: -- Update all relevent cer records with new pk_id
7675: hr_utility.set_location('Before plsql table ',222);
7676: hr_utility.set_location('new_value id '||l_lbr_mmbr_rt_id,222);
7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;
7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;
7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;

Line 7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;

7674: -- Update all relevent cer records with new pk_id
7675: hr_utility.set_location('Before plsql table ',222);
7676: hr_utility.set_location('new_value id '||l_lbr_mmbr_rt_id,222);
7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;
7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;
7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7682: hr_utility.set_location('After plsql table ',222);

Line 7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;

7675: hr_utility.set_location('Before plsql table ',222);
7676: hr_utility.set_location('new_value id '||l_lbr_mmbr_rt_id,222);
7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;
7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;
7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7682: hr_utility.set_location('After plsql table ',222);
7683: --

Line 7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

7676: hr_utility.set_location('new_value id '||l_lbr_mmbr_rt_id,222);
7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;
7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;
7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7682: hr_utility.set_location('After plsql table ',222);
7683: --
7684: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;

7677: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LBR_MMBR_RT_ID' ;
7678: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LMM.information1 ;
7679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LBR_MMBR_RT_ID ;
7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7682: hr_utility.set_location('After plsql table ',222);
7683: --
7684: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7685: --

Line 7684: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

7680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
7681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LMM_unique.table_route_id;
7682: hr_utility.set_location('After plsql table ',222);
7683: --
7684: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7685: --
7686: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7687: --
7688: else

Line 7686: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

7682: hr_utility.set_location('After plsql table ',222);
7683: --
7684: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
7685: --
7686: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
7687: --
7688: else
7689: --
7690: -- Call Update routine for the pk_id created in prev run .

Line 7800: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LMM',r_lmm.information5 );

7796: end loop;
7797: --
7798: exception when others then
7799: --
7800: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LMM',r_lmm.information5 );
7801: --
7802: end create_LMM_rows;
7803:
7804: --

Line 7944: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

7940: end if ;
7941: -- End Prefix Sufix derivation
7942: for r_LAR_unique in c_unique_LAR('LAR') loop
7943:
7944: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7945: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7946: r_LAR_unique.information3 >=
7947: ben_pd_copy_to_ben_one.g_copy_effective_date)
7948: ) then

Line 7945: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7941: -- End Prefix Sufix derivation
7942: for r_LAR_unique in c_unique_LAR('LAR') loop
7943:
7944: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7945: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7946: r_LAR_unique.information3 >=
7947: ben_pd_copy_to_ben_one.g_copy_effective_date)
7948: ) then
7949:

Line 7947: ben_pd_copy_to_ben_one.g_copy_effective_date)

7943:
7944: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
7945: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7946: r_LAR_unique.information3 >=
7947: ben_pd_copy_to_ben_one.g_copy_effective_date)
7948: ) then
7949:
7950: --
7951: hr_utility.set_location(' r_LAR_unique.table_route_id '||r_LAR_unique.table_route_id,10);

Line 7966: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

7962: open c_LAR_min_max_dates(r_LAR_unique.table_route_id, r_LAR_unique.information1 ) ;
7963: fetch c_LAR_min_max_dates into l_min_esd,l_max_eed ;
7964: --
7965:
7966: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7967: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7968: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7969: end if;
7970: l_min_esd := greatest(l_min_esd,r_LAR_unique.information2);

Line 7967: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

7963: fetch c_LAR_min_max_dates into l_min_esd,l_max_eed ;
7964: --
7965:
7966: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7967: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7968: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7969: end if;
7970: l_min_esd := greatest(l_min_esd,r_LAR_unique.information2);
7971: open c_LAR(r_LAR_unique.table_route_id,

Line 7968: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

7964: --
7965:
7966: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
7967: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
7968: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
7969: end if;
7970: l_min_esd := greatest(l_min_esd,r_LAR_unique.information2);
7971: open c_LAR(r_LAR_unique.table_route_id,
7972: r_LAR_unique.information1,

Line 7980: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

7976: fetch c_LAR into r_LAR ;
7977: --
7978: close c_LAR ;
7979: --
7980: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
7981: l_ABSENCE_ATTENDANCE_TYPE_ID := r_LAR.information176;
7982: else
7983: l_ABSENCE_ATTENDANCE_TYPE_ID := r_LAR.information174;
7984: end if;

Line 7986: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

7982: else
7983: l_ABSENCE_ATTENDANCE_TYPE_ID := r_LAR.information174;
7984: end if;
7985: --
7986: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
7987: l_ABS_ATTENDANCE_REASON_ID := r_LAR.information180;
7988: else
7989: l_ABS_ATTENDANCE_REASON_ID := r_LAR.information178;
7990: end if ;

Line 8016: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

8012: l_object_found_in_target := TRUE;
8013: --
8014: if l_process_date between r_LAR_unique.information2 and r_LAR_unique.information3 then
8015: l_update := true;
8016: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'
8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;

Line 8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'

8013: --
8014: if l_process_date between r_LAR_unique.information2 and r_LAR_unique.information3 then
8015: l_update := true;
8016: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'
8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;

Line 8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;

8015: l_update := true;
8016: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'
8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;
8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;

Line 8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;

8016: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'
8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;
8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;
8024: --

Line 8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;

8017: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID'
8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;
8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;
8024: --
8025: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

8018: then
8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;
8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;
8024: --
8025: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8026: --

Line 8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;

8019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LOA_RSN_RT_ID' ;
8020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LAR_unique.information1 ;
8021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LAR_unique.information1 ;
8022: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;
8024: --
8025: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8026: --
8027: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 8027: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

8023: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LAR_unique.table_route_id;
8024: --
8025: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8026: --
8027: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
8028: --
8029: -- log_data('LAR',l_new_value,l_prefix || r_LAR_unique.name|| l_suffix,'REUSED');
8030: --
8031: end if ;

Line 8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

8055: p_from_date => l_min_esd,
8056: p_to_date => l_max_eed );
8057: if l_dt_rec_found THEN
8058: --END TEMPIK
8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then

8056: p_to_date => l_max_eed );
8057: if l_dt_rec_found THEN
8058: --END TEMPIK
8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;

8057: if l_dt_rec_found THEN
8058: --END TEMPIK
8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;

Line 8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;

8058: --END TEMPIK
8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --

Line 8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

8059: if r_LAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --
8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

8060: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOA_RSN_RT_ID' then
8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --
8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8068: --

Line 8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;

8061: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8062: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR_unique.information1 ;
8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --
8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8068: --
8069: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

8063: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8064: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --
8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8068: --
8069: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8070: end if ;
8071: --

Line 8069: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

8065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8066: --
8067: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8068: --
8069: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8070: end if ;
8071: --
8072: l_object_found_in_target := true ;
8073: --TEMPIK

Line 8103: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8099: end if ;
8100: --
8101:
8102: l_effective_date := r_LAR.information2;
8103: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8104: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8105: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8106: end if;
8107:

Line 8104: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

8100: --
8101:
8102: l_effective_date := r_LAR.information2;
8103: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8104: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8105: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8106: end if;
8107:
8108: if l_first_rec and not l_update then

Line 8105: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

8101:
8102: l_effective_date := r_LAR.information2;
8103: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8104: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8105: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8106: end if;
8107:
8108: if l_first_rec and not l_update then
8109: -- Call Create routine.

Line 8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;

8160: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
8161: -- Update all relevent cer records with new pk_id
8162: hr_utility.set_location('Before plsql table ',222);
8163: hr_utility.set_location('new_value id '||l_loa_rsn_rt_id,222);
8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;
8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;
8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;

Line 8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;

8161: -- Update all relevent cer records with new pk_id
8162: hr_utility.set_location('Before plsql table ',222);
8163: hr_utility.set_location('new_value id '||l_loa_rsn_rt_id,222);
8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;
8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;
8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8169: hr_utility.set_location('After plsql table ',222);

Line 8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;

8162: hr_utility.set_location('Before plsql table ',222);
8163: hr_utility.set_location('new_value id '||l_loa_rsn_rt_id,222);
8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;
8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;
8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8169: hr_utility.set_location('After plsql table ',222);
8170: --

Line 8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

8163: hr_utility.set_location('new_value id '||l_loa_rsn_rt_id,222);
8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;
8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;
8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8169: hr_utility.set_location('After plsql table ',222);
8170: --
8171: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;

8164: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOA_RSN_RT_ID' ;
8165: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LAR.information1 ;
8166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOA_RSN_RT_ID ;
8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8169: hr_utility.set_location('After plsql table ',222);
8170: --
8171: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8172: --

Line 8171: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

8167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LAR_unique.table_route_id;
8169: hr_utility.set_location('After plsql table ',222);
8170: --
8171: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8172: --
8173: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8174: --
8175: else

Line 8173: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

8169: hr_utility.set_location('After plsql table ',222);
8170: --
8171: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8172: --
8173: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8174: --
8175: else
8176: --
8177: -- Call Update routine for the pk_id created in prev run .

Line 8291: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LAR',r_lar.information5 );

8287: end loop;
8288: --
8289: exception when others then
8290: --
8291: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LAR',r_lar.information5 );
8292: --
8293: end create_LAR_rows;
8294:
8295: --

Line 8432: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

8428: end if ;
8429: -- End Prefix Sufix derivation
8430: for r_OUR_unique in c_unique_OUR('OUR') loop
8431:
8432: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8433: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8434: r_OUR_unique.information3 >=
8435: ben_pd_copy_to_ben_one.g_copy_effective_date)
8436: ) then

Line 8433: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8429: -- End Prefix Sufix derivation
8430: for r_OUR_unique in c_unique_OUR('OUR') loop
8431:
8432: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8433: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8434: r_OUR_unique.information3 >=
8435: ben_pd_copy_to_ben_one.g_copy_effective_date)
8436: ) then
8437: --

Line 8435: ben_pd_copy_to_ben_one.g_copy_effective_date)

8431:
8432: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8433: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8434: r_OUR_unique.information3 >=
8435: ben_pd_copy_to_ben_one.g_copy_effective_date)
8436: ) then
8437: --
8438: hr_utility.set_location(' r_OUR_unique.table_route_id '||r_OUR_unique.table_route_id,10);
8439: hr_utility.set_location(' r_OUR_unique.information1 '||r_OUR_unique.information1,10);

Line 8453: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8449: open c_OUR_min_max_dates(r_OUR_unique.table_route_id, r_OUR_unique.information1 ) ;
8450: fetch c_OUR_min_max_dates into l_min_esd,l_max_eed ;
8451: --
8452:
8453: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8454: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8455: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8456: end if;
8457: l_min_esd := greatest(l_min_esd,r_OUR_unique.information2);

Line 8454: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

8450: fetch c_OUR_min_max_dates into l_min_esd,l_max_eed ;
8451: --
8452:
8453: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8454: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8455: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8456: end if;
8457: l_min_esd := greatest(l_min_esd,r_OUR_unique.information2);
8458: open c_OUR(r_OUR_unique.table_route_id,

Line 8455: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

8451: --
8452:
8453: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8454: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8455: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8456: end if;
8457: l_min_esd := greatest(l_min_esd,r_OUR_unique.information2);
8458: open c_OUR(r_OUR_unique.table_route_id,
8459: r_OUR_unique.information1,

Line 8467: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

8463: fetch c_OUR into r_OUR ;
8464: --
8465: close c_OUR ;
8466: --
8467: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
8468: l_ORGANIZATION_ID := r_OUR.information176;
8469: else
8470: l_ORGANIZATION_ID := r_OUR.information174;
8471: end if;

Line 8497: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

8493: l_object_found_in_target := TRUE;
8494: --
8495: if l_process_date between r_OUR_unique.information2 and r_OUR_unique.information3 then
8496: l_update := true;
8497: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'
8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;

Line 8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'

8494: --
8495: if l_process_date between r_OUR_unique.information2 and r_OUR_unique.information3 then
8496: l_update := true;
8497: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'
8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;

Line 8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;

8496: l_update := true;
8497: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'
8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;
8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;

Line 8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;

8497: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'
8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;
8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;
8505: --

Line 8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;

8498: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID'
8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;
8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;
8505: --
8506: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

8499: then
8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;
8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;
8505: --
8506: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8507: --

Line 8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;

8500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ORG_UNIT_RT_ID' ;
8501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OUR_unique.information1 ;
8502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OUR_unique.information1 ;
8503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;
8505: --
8506: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8507: --
8508: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 8508: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

8504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OUR_unique.table_route_id;
8505: --
8506: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8507: --
8508: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
8509: --
8510: -- log_data('OUR',l_new_value,l_prefix || r_OUR_unique.name|| l_suffix,'REUSED');
8511: --
8512: end if ;

Line 8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

8536: p_from_date => l_min_esd,
8537: p_to_date => l_max_eed );
8538: if l_dt_rec_found THEN
8539: --END TEMPIK
8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then

8537: p_to_date => l_max_eed );
8538: if l_dt_rec_found THEN
8539: --END TEMPIK
8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;

8538: if l_dt_rec_found THEN
8539: --END TEMPIK
8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;

Line 8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;

8539: --END TEMPIK
8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --

Line 8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

8540: if r_OUR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --
8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

8541: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ORG_UNIT_RT_ID' then
8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --
8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8549: --

Line 8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;

8542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR_unique.information1 ;
8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --
8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8549: --
8550: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

8544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
8545: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --
8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8549: --
8550: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8551: end if ;
8552: --

Line 8550: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

8546: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8547: --
8548: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
8549: --
8550: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8551: end if ;
8552: --
8553: l_object_found_in_target := true ;
8554: --TEMPIK

Line 8584: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8580: end if ;
8581: --
8582:
8583: l_effective_date := r_OUR.information2;
8584: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8585: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8586: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8587: end if;
8588:

Line 8585: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

8581: --
8582:
8583: l_effective_date := r_OUR.information2;
8584: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8585: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8586: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8587: end if;
8588:
8589: if l_first_rec and not l_update then

Line 8586: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

8582:
8583: l_effective_date := r_OUR.information2;
8584: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8585: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8586: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
8587: end if;
8588:
8589: if l_first_rec and not l_update then
8590: -- Call Create routine.

Line 8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;

8639: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
8640: -- Update all relevent cer records with new pk_id
8641: hr_utility.set_location('Before plsql table ',222);
8642: hr_utility.set_location('new_value id '||l_org_unit_rt_id,222);
8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;
8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;
8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;

Line 8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;

8640: -- Update all relevent cer records with new pk_id
8641: hr_utility.set_location('Before plsql table ',222);
8642: hr_utility.set_location('new_value id '||l_org_unit_rt_id,222);
8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;
8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;
8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8648: hr_utility.set_location('After plsql table ',222);

Line 8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;

8641: hr_utility.set_location('Before plsql table ',222);
8642: hr_utility.set_location('new_value id '||l_org_unit_rt_id,222);
8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;
8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;
8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8648: hr_utility.set_location('After plsql table ',222);
8649: --

Line 8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

8642: hr_utility.set_location('new_value id '||l_org_unit_rt_id,222);
8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;
8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;
8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8648: hr_utility.set_location('After plsql table ',222);
8649: --
8650: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;

8643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ORG_UNIT_RT_ID' ;
8644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OUR.information1 ;
8645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ORG_UNIT_RT_ID ;
8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8648: hr_utility.set_location('After plsql table ',222);
8649: --
8650: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8651: --

Line 8650: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

8646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
8647: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OUR_unique.table_route_id;
8648: hr_utility.set_location('After plsql table ',222);
8649: --
8650: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8651: --
8652: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8653: --
8654: else

Line 8652: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

8648: hr_utility.set_location('After plsql table ',222);
8649: --
8650: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
8651: --
8652: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
8653: --
8654: else
8655: --
8656: -- Call Update routine for the pk_id created in prev run .

Line 8768: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OUR',r_our.information5 );

8764: end loop;
8765: --
8766: exception when others then
8767: --
8768: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OUR',r_our.information5 );
8769: --
8770: end create_OUR_rows;
8771:
8772: ---------------------------------------------------------------

Line 8907: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

8903: end if ;
8904: -- End Prefix Sufix derivation
8905: for r_LER1_unique in c_unique_LER1('LER1') loop
8906:
8907: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8908: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8909: r_LER1_unique.information3 >=
8910: ben_pd_copy_to_ben_one.g_copy_effective_date)
8911: ) then

Line 8908: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8904: -- End Prefix Sufix derivation
8905: for r_LER1_unique in c_unique_LER1('LER1') loop
8906:
8907: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8908: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8909: r_LER1_unique.information3 >=
8910: ben_pd_copy_to_ben_one.g_copy_effective_date)
8911: ) then
8912: --

Line 8910: ben_pd_copy_to_ben_one.g_copy_effective_date)

8906:
8907: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
8908: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8909: r_LER1_unique.information3 >=
8910: ben_pd_copy_to_ben_one.g_copy_effective_date)
8911: ) then
8912: --
8913: hr_utility.set_location(' r_LER1_unique.table_route_id '||r_LER1_unique.table_route_id,10);
8914: hr_utility.set_location(' r_LER1_unique.information1 '||r_LER1_unique.information1,10);

Line 8928: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

8924: open c_LER1_min_max_dates(r_LER1_unique.table_route_id, r_LER1_unique.information1 ) ;
8925: fetch c_LER1_min_max_dates into l_min_esd,l_max_eed ;
8926: --
8927:
8928: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8929: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8930: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8931: end if;
8932: l_min_esd := greatest(l_min_esd,r_LER1_unique.information2);

Line 8929: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

8925: fetch c_LER1_min_max_dates into l_min_esd,l_max_eed ;
8926: --
8927:
8928: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8929: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8930: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8931: end if;
8932: l_min_esd := greatest(l_min_esd,r_LER1_unique.information2);
8933: open c_LER1(r_LER1_unique.table_route_id,

Line 8930: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

8926: --
8927:
8928: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
8929: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
8930: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
8931: end if;
8932: l_min_esd := greatest(l_min_esd,r_LER1_unique.information2);
8933: open c_LER1(r_LER1_unique.table_route_id,
8934: r_LER1_unique.information1,

Line 8942: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

8938: fetch c_LER1 into r_LER1 ;
8939: --
8940: close c_LER1 ;
8941: --
8942: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
8943: l_ORGANIZATION_ID := r_LER1.information176;
8944: else
8945: l_ORGANIZATION_ID := r_LER1.information174;
8946: end if;

Line 8972: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

8968: l_object_found_in_target := TRUE;
8969: --
8970: if l_process_date between r_LER1_unique.information2 and r_LER1_unique.information3 then
8971: l_update := true;
8972: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'
8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;

Line 8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'

8969: --
8970: if l_process_date between r_LER1_unique.information2 and r_LER1_unique.information3 then
8971: l_update := true;
8972: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'
8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;

Line 8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;

8971: l_update := true;
8972: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'
8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;
8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;

Line 8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;

8972: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'
8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;
8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;
8980: --

Line 8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;

8973: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID'
8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;
8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;
8980: --
8981: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

8974: then
8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;
8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;
8980: --
8981: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8982: --

Line 8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;

8975: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LGL_ENTY_RT_ID' ;
8976: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LER1_unique.information1 ;
8977: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LER1_unique.information1 ;
8978: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;
8980: --
8981: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8982: --
8983: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 8983: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

8979: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LER1_unique.table_route_id;
8980: --
8981: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
8982: --
8983: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
8984: --
8985: -- log_data('LER1',l_new_value,l_prefix || r_LER1_unique.name|| l_suffix,'REUSED');
8986: --
8987: end if ;

Line 9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

9011: p_from_date => l_min_esd,
9012: p_to_date => l_max_eed );
9013: if l_dt_rec_found THEN
9014: --END TEMPIK
9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then

9012: p_to_date => l_max_eed );
9013: if l_dt_rec_found THEN
9014: --END TEMPIK
9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;

9013: if l_dt_rec_found THEN
9014: --END TEMPIK
9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;

Line 9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;

9014: --END TEMPIK
9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --

Line 9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

9015: if r_LER1_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --
9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

9016: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LGL_ENTY_RT_ID' then
9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --
9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9024: --

Line 9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;

9017: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9018: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1_unique.information1 ;
9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --
9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9024: --
9025: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

9019: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9020: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --
9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9024: --
9025: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9026: end if ;
9027: --

Line 9025: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

9021: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9022: --
9023: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9024: --
9025: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9026: end if ;
9027: --
9028: l_object_found_in_target := true ;
9029: --TEMPIK

Line 9059: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9055: end if ;
9056: --
9057:
9058: l_effective_date := r_LER1.information2;
9059: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9060: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9061: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9062: end if;
9063:

Line 9060: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

9056: --
9057:
9058: l_effective_date := r_LER1.information2;
9059: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9060: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9061: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9062: end if;
9063:
9064: if l_first_rec and not l_update then

Line 9061: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

9057:
9058: l_effective_date := r_LER1.information2;
9059: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9060: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9061: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9062: end if;
9063:
9064: if l_first_rec and not l_update then
9065: -- Call Create routine.

Line 9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;

9114: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
9115: -- Update all relevent cer records with new pk_id
9116: hr_utility.set_location('Before plsql table ',222);
9117: hr_utility.set_location('new_value id '||l_lgl_enty_rt_id,222);
9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;
9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;
9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;

Line 9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;

9115: -- Update all relevent cer records with new pk_id
9116: hr_utility.set_location('Before plsql table ',222);
9117: hr_utility.set_location('new_value id '||l_lgl_enty_rt_id,222);
9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;
9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;
9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9123: hr_utility.set_location('After plsql table ',222);

Line 9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;

9116: hr_utility.set_location('Before plsql table ',222);
9117: hr_utility.set_location('new_value id '||l_lgl_enty_rt_id,222);
9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;
9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;
9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9123: hr_utility.set_location('After plsql table ',222);
9124: --

Line 9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

9117: hr_utility.set_location('new_value id '||l_lgl_enty_rt_id,222);
9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;
9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;
9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9123: hr_utility.set_location('After plsql table ',222);
9124: --
9125: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;

9118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LGL_ENTY_RT_ID' ;
9119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LER1.information1 ;
9120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LGL_ENTY_RT_ID ;
9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9123: hr_utility.set_location('After plsql table ',222);
9124: --
9125: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9126: --

Line 9125: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

9121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9122: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LER1_unique.table_route_id;
9123: hr_utility.set_location('After plsql table ',222);
9124: --
9125: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9126: --
9127: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9128: --
9129: else

Line 9127: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

9123: hr_utility.set_location('After plsql table ',222);
9124: --
9125: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9126: --
9127: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9128: --
9129: else
9130: --
9131: -- Call Update routine for the pk_id created in prev run .

Line 9243: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LER1',r_ler1.information5 );

9239: end loop;
9240: --
9241: exception when others then
9242: --
9243: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LER1',r_ler1.information5 );
9244: --
9245: end create_LER1_rows;
9246:
9247: --

Line 9382: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

9378: end if ;
9379: -- End Prefix Sufix derivation
9380: for r_PR__unique in c_unique_PR_('PR_') loop
9381:
9382: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9383: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9384: r_PR__unique.information3 >=
9385: ben_pd_copy_to_ben_one.g_copy_effective_date)
9386: ) then

Line 9383: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9379: -- End Prefix Sufix derivation
9380: for r_PR__unique in c_unique_PR_('PR_') loop
9381:
9382: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9383: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9384: r_PR__unique.information3 >=
9385: ben_pd_copy_to_ben_one.g_copy_effective_date)
9386: ) then
9387: --

Line 9385: ben_pd_copy_to_ben_one.g_copy_effective_date)

9381:
9382: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9383: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9384: r_PR__unique.information3 >=
9385: ben_pd_copy_to_ben_one.g_copy_effective_date)
9386: ) then
9387: --
9388: hr_utility.set_location(' r_PR__unique.table_route_id '||r_PR__unique.table_route_id,10);
9389: hr_utility.set_location(' r_PR__unique.information1 '||r_PR__unique.information1,10);

Line 9403: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9399: open c_PR__min_max_dates(r_PR__unique.table_route_id, r_PR__unique.information1 ) ;
9400: fetch c_PR__min_max_dates into l_min_esd,l_max_eed ;
9401: --
9402:
9403: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9404: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9405: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9406: end if;
9407: l_min_esd := greatest(l_min_esd,r_PR__unique.information2);

Line 9404: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

9400: fetch c_PR__min_max_dates into l_min_esd,l_max_eed ;
9401: --
9402:
9403: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9404: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9405: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9406: end if;
9407: l_min_esd := greatest(l_min_esd,r_PR__unique.information2);
9408: open c_PR_(r_PR__unique.table_route_id,

Line 9405: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

9401: --
9402:
9403: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9404: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9405: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9406: end if;
9407: l_min_esd := greatest(l_min_esd,r_PR__unique.information2);
9408: open c_PR_(r_PR__unique.table_route_id,
9409: r_PR__unique.information1,

Line 9417: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

9413: fetch c_PR_ into r_PR_ ;
9414: --
9415: close c_PR_ ;
9416: --
9417: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
9418: l_PAYROLL_ID := r_PR_.information176;
9419: else
9420: l_PAYROLL_ID := r_PR_.information174;
9421: end if;

Line 9447: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

9443: l_object_found_in_target := TRUE;
9444: --
9445: if l_process_date between r_PR__unique.information2 and r_PR__unique.information3 then
9446: l_update := true;
9447: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'
9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;

Line 9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'

9444: --
9445: if l_process_date between r_PR__unique.information2 and r_PR__unique.information3 then
9446: l_update := true;
9447: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'
9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;

Line 9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;

9446: l_update := true;
9447: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'
9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;
9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;

Line 9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;

9447: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'
9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;
9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;
9455: --

Line 9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;

9448: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PYRL_RT_ID'
9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;
9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;
9455: --
9456: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

9449: then
9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;
9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;
9455: --
9456: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9457: --

Line 9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;

9450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PYRL_RT_ID' ;
9451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PR__unique.information1 ;
9452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PR__unique.information1 ;
9453: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;
9455: --
9456: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9457: --
9458: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 9458: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

9454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PR__unique.table_route_id;
9455: --
9456: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9457: --
9458: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
9459: --
9460: -- log_data('PR_',l_new_value,l_prefix || r_PR__unique.name|| l_suffix,'REUSED');
9461: --
9462: end if ;

Line 9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

9485: p_from_date => l_min_esd,
9486: p_to_date => l_max_eed );
9487: if l_dt_rec_found THEN
9488: --END TEMPIK
9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then

9486: p_to_date => l_max_eed );
9487: if l_dt_rec_found THEN
9488: --END TEMPIK
9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;

9487: if l_dt_rec_found THEN
9488: --END TEMPIK
9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;

Line 9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;

9488: --END TEMPIK
9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --

Line 9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

9489: if r_PR__unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --
9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

9490: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PYRL_RT_ID' then
9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --
9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9498: --

Line 9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;

9491: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9492: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR__unique.information1 ;
9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --
9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9498: --
9499: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

9493: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9494: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --
9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9498: --
9499: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9500: end if ;
9501: --

Line 9499: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

9495: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9496: --
9497: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9498: --
9499: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9500: end if ;
9501: --
9502: l_object_found_in_target := true ;
9503: --TEMPIK

Line 9533: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9529: end if ;
9530: --
9531:
9532: l_effective_date := r_PR_.information2;
9533: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9534: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9535: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9536: end if;
9537:

Line 9534: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

9530: --
9531:
9532: l_effective_date := r_PR_.information2;
9533: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9534: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9535: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9536: end if;
9537:
9538: if l_first_rec and not l_update then

Line 9535: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

9531:
9532: l_effective_date := r_PR_.information2;
9533: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9534: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9535: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
9536: end if;
9537:
9538: if l_first_rec and not l_update then
9539: -- Call Create routine.

Line 9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;

9588: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
9589: -- Update all relevent cer records with new pk_id
9590: hr_utility.set_location('Before plsql table ',222);
9591: hr_utility.set_location('new_value id '||l_pyrl_rt_id,222);
9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;
9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;
9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;

Line 9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;

9589: -- Update all relevent cer records with new pk_id
9590: hr_utility.set_location('Before plsql table ',222);
9591: hr_utility.set_location('new_value id '||l_pyrl_rt_id,222);
9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;
9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;
9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9597: hr_utility.set_location('After plsql table ',222);

Line 9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;

9590: hr_utility.set_location('Before plsql table ',222);
9591: hr_utility.set_location('new_value id '||l_pyrl_rt_id,222);
9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;
9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;
9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9597: hr_utility.set_location('After plsql table ',222);
9598: --

Line 9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

9591: hr_utility.set_location('new_value id '||l_pyrl_rt_id,222);
9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;
9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;
9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9597: hr_utility.set_location('After plsql table ',222);
9598: --
9599: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;

9592: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PYRL_RT_ID' ;
9593: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PR_.information1 ;
9594: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PYRL_RT_ID ;
9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9597: hr_utility.set_location('After plsql table ',222);
9598: --
9599: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9600: --

Line 9599: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

9595: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
9596: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PR__unique.table_route_id;
9597: hr_utility.set_location('After plsql table ',222);
9598: --
9599: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9600: --
9601: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9602: --
9603: else

Line 9601: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

9597: hr_utility.set_location('After plsql table ',222);
9598: --
9599: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
9600: --
9601: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9602: --
9603: else
9604: --
9605: -- Call Update routine for the pk_id created in prev run .

Line 9717: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PR_',r_pr_.information5 );

9713: end loop;
9714: --
9715: exception when others then
9716: --
9717: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PR_',r_pr_.information5 );
9718: --
9719: end create_PR__rows;
9720:
9721: --

Line 9857: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

9853: end if ;
9854: -- End Prefix Sufix derivation
9855: for r_PBR_unique in c_unique_PBR('PBR') loop
9856:
9857: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9858: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9859: r_PBR_unique.information3 >=
9860: ben_pd_copy_to_ben_one.g_copy_effective_date)
9861: ) then

Line 9858: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9854: -- End Prefix Sufix derivation
9855: for r_PBR_unique in c_unique_PBR('PBR') loop
9856:
9857: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9858: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9859: r_PBR_unique.information3 >=
9860: ben_pd_copy_to_ben_one.g_copy_effective_date)
9861: ) then
9862: --

Line 9860: ben_pd_copy_to_ben_one.g_copy_effective_date)

9856:
9857: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
9858: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9859: r_PBR_unique.information3 >=
9860: ben_pd_copy_to_ben_one.g_copy_effective_date)
9861: ) then
9862: --
9863: hr_utility.set_location(' r_PBR_unique.table_route_id '||r_PBR_unique.table_route_id,10);
9864: hr_utility.set_location(' r_PBR_unique.information1 '||r_PBR_unique.information1,10);

Line 9878: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

9874: open c_PBR_min_max_dates(r_PBR_unique.table_route_id, r_PBR_unique.information1 ) ;
9875: fetch c_PBR_min_max_dates into l_min_esd,l_max_eed ;
9876: --
9877:
9878: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9879: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9880: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9881: end if;
9882: l_min_esd := greatest(l_min_esd,r_PBR_unique.information2);

Line 9879: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

9875: fetch c_PBR_min_max_dates into l_min_esd,l_max_eed ;
9876: --
9877:
9878: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9879: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9880: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9881: end if;
9882: l_min_esd := greatest(l_min_esd,r_PBR_unique.information2);
9883: open c_PBR(r_PBR_unique.table_route_id,

Line 9880: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

9876: --
9877:
9878: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
9879: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
9880: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
9881: end if;
9882: l_min_esd := greatest(l_min_esd,r_PBR_unique.information2);
9883: open c_PBR(r_PBR_unique.table_route_id,
9884: r_PBR_unique.information1,

Line 9892: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

9888: fetch c_PBR into r_PBR ;
9889: --
9890: close c_PBR ;
9891: --
9892: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
9893: l_PAY_BASIS_ID := r_PBR.information176;
9894: else
9895: l_PAY_BASIS_ID := r_PBR.information174;
9896: end if;

Line 9922: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

9918: l_object_found_in_target := TRUE;
9919: --
9920: if l_process_date between r_PBR_unique.information2 and r_PBR_unique.information3 then
9921: l_update := true;
9922: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'
9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;

Line 9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'

9919: --
9920: if l_process_date between r_PBR_unique.information2 and r_PBR_unique.information3 then
9921: l_update := true;
9922: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'
9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;

Line 9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;

9921: l_update := true;
9922: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'
9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;
9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;

Line 9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;

9922: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'
9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;
9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;
9930: --

Line 9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;

9923: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PY_BSS_RT_ID'
9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;
9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;
9930: --
9931: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

9924: then
9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;
9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;
9930: --
9931: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9932: --

Line 9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;

9925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PY_BSS_RT_ID' ;
9926: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PBR_unique.information1 ;
9927: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PBR_unique.information1 ;
9928: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;
9930: --
9931: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9932: --
9933: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 9933: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

9929: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PBR_unique.table_route_id;
9930: --
9931: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
9932: --
9933: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
9934: --
9935: -- log_data('PBR',l_new_value,l_prefix || r_PBR_unique.name|| l_suffix,'REUSED');
9936: --
9937: end if ;

Line 9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

9961: p_from_date => l_min_esd,
9962: p_to_date => l_max_eed );
9963: if l_dt_rec_found THEN
9964: --END TEMPIK
9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then

9962: p_to_date => l_max_eed );
9963: if l_dt_rec_found THEN
9964: --END TEMPIK
9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;

9963: if l_dt_rec_found THEN
9964: --END TEMPIK
9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;

Line 9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;

9964: --END TEMPIK
9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --

Line 9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

9965: if r_PBR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --
9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

9966: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PY_BSS_RT_ID' then
9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --
9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9974: --

Line 9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;

9967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
9968: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR_unique.information1 ;
9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --
9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9974: --
9975: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

9969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
9970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --
9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9974: --
9975: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9976: end if ;
9977: --

Line 9975: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

9971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
9972: --
9973: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
9974: --
9975: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
9976: end if ;
9977: --
9978: l_object_found_in_target := true ;
9979: --TEMPIK

Line 10009: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10005: end if ;
10006: --
10007:
10008: l_effective_date := r_PBR.information2;
10009: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10010: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10011: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10012: end if;
10013:

Line 10010: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

10006: --
10007:
10008: l_effective_date := r_PBR.information2;
10009: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10010: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10011: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10012: end if;
10013:
10014: if l_first_rec and not l_update then

Line 10011: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

10007:
10008: l_effective_date := r_PBR.information2;
10009: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10010: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10011: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10012: end if;
10013:
10014: if l_first_rec and not l_update then
10015: -- Call Create routine.

Line 10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;

10064: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
10065: -- Update all relevent cer records with new pk_id
10066: hr_utility.set_location('Before plsql table ',222);
10067: hr_utility.set_location('new_value id '||l_py_bss_rt_id,222);
10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;
10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;
10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;

Line 10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;

10065: -- Update all relevent cer records with new pk_id
10066: hr_utility.set_location('Before plsql table ',222);
10067: hr_utility.set_location('new_value id '||l_py_bss_rt_id,222);
10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;
10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;
10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
10073: hr_utility.set_location('After plsql table ',222);

Line 10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;

10066: hr_utility.set_location('Before plsql table ',222);
10067: hr_utility.set_location('new_value id '||l_py_bss_rt_id,222);
10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;
10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;
10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
10073: hr_utility.set_location('After plsql table ',222);
10074: --

Line 10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

10067: hr_utility.set_location('new_value id '||l_py_bss_rt_id,222);
10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;
10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;
10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
10073: hr_utility.set_location('After plsql table ',222);
10074: --
10075: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;

10068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PY_BSS_RT_ID' ;
10069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PBR.information1 ;
10070: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PY_BSS_RT_ID ;
10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
10073: hr_utility.set_location('After plsql table ',222);
10074: --
10075: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10076: --

Line 10075: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

10071: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10072: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PBR_unique.table_route_id;
10073: hr_utility.set_location('After plsql table ',222);
10074: --
10075: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10076: --
10077: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10078: --
10079: else

Line 10077: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

10073: hr_utility.set_location('After plsql table ',222);
10074: --
10075: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10076: --
10077: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10078: --
10079: else
10080: --
10081: -- Call Update routine for the pk_id created in prev run .

Line 10192: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PBR',r_pbr.information5 );

10188: end loop;
10189: --
10190: exception when others then
10191: --
10192: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PBR',r_pbr.information5 );
10193: --
10194: end create_PBR_rows;
10195:
10196: --

Line 10338: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

10334: end if ;
10335: -- End Prefix Sufix derivation
10336: for r_CQR_unique in c_unique_CQR('CQR') loop
10337:
10338: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10339: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10340: r_CQR_unique.information3 >=
10341: ben_pd_copy_to_ben_one.g_copy_effective_date)
10342: ) then

Line 10339: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10335: -- End Prefix Sufix derivation
10336: for r_CQR_unique in c_unique_CQR('CQR') loop
10337:
10338: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10339: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10340: r_CQR_unique.information3 >=
10341: ben_pd_copy_to_ben_one.g_copy_effective_date)
10342: ) then
10343: --

Line 10341: ben_pd_copy_to_ben_one.g_copy_effective_date)

10337:
10338: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10339: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10340: r_CQR_unique.information3 >=
10341: ben_pd_copy_to_ben_one.g_copy_effective_date)
10342: ) then
10343: --
10344: hr_utility.set_location(' r_CQR_unique.table_route_id '||r_CQR_unique.table_route_id,10);
10345: hr_utility.set_location(' r_CQR_unique.information1 '||r_CQR_unique.information1,10);

Line 10359: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10355: open c_CQR_min_max_dates(r_CQR_unique.table_route_id, r_CQR_unique.information1 ) ;
10356: fetch c_CQR_min_max_dates into l_min_esd,l_max_eed ;
10357: --
10358:
10359: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10360: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10361: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10362: end if;
10363: l_min_esd := greatest(l_min_esd,r_CQR_unique.information2);

Line 10360: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

10356: fetch c_CQR_min_max_dates into l_min_esd,l_max_eed ;
10357: --
10358:
10359: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10360: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10361: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10362: end if;
10363: l_min_esd := greatest(l_min_esd,r_CQR_unique.information2);
10364: open c_CQR(r_CQR_unique.table_route_id,

Line 10361: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

10357: --
10358:
10359: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10360: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10361: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10362: end if;
10363: l_min_esd := greatest(l_min_esd,r_CQR_unique.information2);
10364: open c_CQR(r_CQR_unique.table_route_id,
10365: r_CQR_unique.information1,

Line 10393: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

10389: l_object_found_in_target := TRUE;
10390: --
10391: if l_process_date between r_CQR_unique.information2 and r_CQR_unique.information3 then
10392: l_update := true;
10393: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'
10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;

Line 10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'

10390: --
10391: if l_process_date between r_CQR_unique.information2 and r_CQR_unique.information3 then
10392: l_update := true;
10393: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'
10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;

Line 10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;

10392: l_update := true;
10393: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'
10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;
10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;

Line 10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;

10393: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'
10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;
10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;
10401: --

Line 10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;

10394: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID'
10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;
10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;
10401: --
10402: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

10395: then
10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;
10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;
10401: --
10402: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10403: --

Line 10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;

10396: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10397: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CQR_unique.information1 ;
10398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CQR_unique.information1 ;
10399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;
10401: --
10402: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10403: --
10404: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 10404: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

10400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CQR_unique.table_route_id;
10401: --
10402: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10403: --
10404: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
10405: --
10406: -- log_data('CQR',l_new_value,l_prefix || r_CQR_unique.name|| l_suffix,'REUSED');
10407: --
10408: end if ;

Line 10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

10432: p_from_date => l_min_esd,
10433: p_to_date => l_max_eed );
10434: if l_dt_rec_found THEN
10435: --END TEMPIK
10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then

10433: p_to_date => l_max_eed );
10434: if l_dt_rec_found THEN
10435: --END TEMPIK
10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;

10434: if l_dt_rec_found THEN
10435: --END TEMPIK
10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;

Line 10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;

10435: --END TEMPIK
10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --

Line 10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

10436: if r_CQR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --
10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

10437: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CBR_QUALD_BNF_RT_ID' then
10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --
10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10445: --

Line 10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;

10438: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10439: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR_unique.information1 ;
10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --
10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10445: --
10446: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

10440: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10441: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --
10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10445: --
10446: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10447: end if ;
10448: --

Line 10446: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

10442: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10443: --
10444: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10445: --
10446: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10447: end if ;
10448: --
10449: l_object_found_in_target := true ;
10450: --TEMPIK

Line 10480: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10476: end if ;
10477: --
10478:
10479: l_effective_date := r_CQR.information2;
10480: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10481: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10482: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10483: end if;
10484:

Line 10481: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

10477: --
10478:
10479: l_effective_date := r_CQR.information2;
10480: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10481: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10482: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10483: end if;
10484:
10485: if l_first_rec and not l_update then

Line 10482: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

10478:
10479: l_effective_date := r_CQR.information2;
10480: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10481: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10482: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10483: end if;
10484:
10485: if l_first_rec and not l_update then
10486: -- Call Create routine.

Line 10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;

10536: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
10537: -- Update all relevent cer records with new pk_id
10538: hr_utility.set_location('Before plsql table ',222);
10539: hr_utility.set_location('new_value id '||l_cbr_quald_bnf_rt_id,222);
10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;
10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;
10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;

Line 10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;

10537: -- Update all relevent cer records with new pk_id
10538: hr_utility.set_location('Before plsql table ',222);
10539: hr_utility.set_location('new_value id '||l_cbr_quald_bnf_rt_id,222);
10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;
10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;
10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10545: hr_utility.set_location('After plsql table ',222);

Line 10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;

10538: hr_utility.set_location('Before plsql table ',222);
10539: hr_utility.set_location('new_value id '||l_cbr_quald_bnf_rt_id,222);
10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;
10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;
10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10545: hr_utility.set_location('After plsql table ',222);
10546: --

Line 10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

10539: hr_utility.set_location('new_value id '||l_cbr_quald_bnf_rt_id,222);
10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;
10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;
10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10545: hr_utility.set_location('After plsql table ',222);
10546: --
10547: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;

10540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CBR_QUALD_BNF_RT_ID' ;
10541: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CQR.information1 ;
10542: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CBR_QUALD_BNF_RT_ID ;
10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10545: hr_utility.set_location('After plsql table ',222);
10546: --
10547: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10548: --

Line 10547: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

10543: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
10544: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CQR_unique.table_route_id;
10545: hr_utility.set_location('After plsql table ',222);
10546: --
10547: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10548: --
10549: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10550: --
10551: else

Line 10549: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

10545: hr_utility.set_location('After plsql table ',222);
10546: --
10547: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
10548: --
10549: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10550: --
10551: else
10552: --
10553: -- Call Update routine for the pk_id created in prev run .

Line 10664: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CQR',r_cqr.information5 );

10660: end loop;
10661: --
10662: exception when others then
10663: --
10664: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CQR',r_cqr.information5 );
10665: --
10666: end create_CQR_rows;
10667:
10668: ---------------------------------------------------------------

Line 10803: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

10799: end if ;
10800: -- End Prefix Sufix derivation
10801: for r_BRG_unique in c_unique_BRG('BRG') loop
10802:
10803: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10804: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10805: r_BRG_unique.information3 >=
10806: ben_pd_copy_to_ben_one.g_copy_effective_date)
10807: ) then

Line 10804: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10800: -- End Prefix Sufix derivation
10801: for r_BRG_unique in c_unique_BRG('BRG') loop
10802:
10803: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10804: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10805: r_BRG_unique.information3 >=
10806: ben_pd_copy_to_ben_one.g_copy_effective_date)
10807: ) then
10808: --

Line 10806: ben_pd_copy_to_ben_one.g_copy_effective_date)

10802:
10803: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
10804: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10805: r_BRG_unique.information3 >=
10806: ben_pd_copy_to_ben_one.g_copy_effective_date)
10807: ) then
10808: --
10809: hr_utility.set_location(' r_BRG_unique.table_route_id '||r_BRG_unique.table_route_id,10);
10810: hr_utility.set_location(' r_BRG_unique.information1 '||r_BRG_unique.information1,10);

Line 10824: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10820: open c_BRG_min_max_dates(r_BRG_unique.table_route_id, r_BRG_unique.information1 ) ;
10821: fetch c_BRG_min_max_dates into l_min_esd,l_max_eed ;
10822: --
10823:
10824: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10825: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10826: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10827: end if;
10828: l_min_esd := greatest(l_min_esd,r_BRG_unique.information2);

Line 10825: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

10821: fetch c_BRG_min_max_dates into l_min_esd,l_max_eed ;
10822: --
10823:
10824: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10825: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10826: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10827: end if;
10828: l_min_esd := greatest(l_min_esd,r_BRG_unique.information2);
10829: open c_BRG(r_BRG_unique.table_route_id,

Line 10826: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

10822: --
10823:
10824: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10825: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10826: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
10827: end if;
10828: l_min_esd := greatest(l_min_esd,r_BRG_unique.information2);
10829: open c_BRG(r_BRG_unique.table_route_id,
10830: r_BRG_unique.information1,

Line 10851: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

10847: l_object_found_in_target := TRUE;
10848: --
10849: if l_process_date between r_BRG_unique.information2 and r_BRG_unique.information3 then
10850: l_update := true;
10851: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'
10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;

Line 10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'

10848: --
10849: if l_process_date between r_BRG_unique.information2 and r_BRG_unique.information3 then
10850: l_update := true;
10851: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'
10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;

Line 10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;

10850: l_update := true;
10851: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'
10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;
10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;

Line 10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;

10851: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'
10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;
10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;
10859: --

Line 10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;

10852: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID'
10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;
10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;
10859: --
10860: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

10853: then
10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;
10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;
10859: --
10860: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10861: --

Line 10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;

10854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_BRG_unique.information1 ;
10856: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_BRG_unique.information1 ;
10857: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;
10859: --
10860: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10861: --
10862: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 10862: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

10858: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_BRG_unique.table_route_id;
10859: --
10860: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
10861: --
10862: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
10863: --
10864: -- log_data('BRG',l_new_value,l_prefix || r_BRG_unique.name|| l_suffix,'REUSED');
10865: --
10866: end if ;

Line 10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

10891: p_from_date => l_min_esd,
10892: p_to_date => l_max_eed );
10893: if l_dt_rec_found THEN
10894: --END TEMPIK
10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then

10892: p_to_date => l_max_eed );
10893: if l_dt_rec_found THEN
10894: --END TEMPIK
10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;

10893: if l_dt_rec_found THEN
10894: --END TEMPIK
10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;

Line 10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;

10894: --END TEMPIK
10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --

Line 10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

10895: if r_BRG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --
10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

10896: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'BENFTS_GRP_RT_ID' then
10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --
10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10904: --

Line 10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;

10897: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10898: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG_unique.information1 ;
10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --
10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10904: --
10905: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

10899: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
10900: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --
10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10904: --
10905: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10906: end if ;
10907: --

Line 10905: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

10901: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
10902: --
10903: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
10904: --
10905: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
10906: end if ;
10907: --
10908: l_object_found_in_target := true ;
10909: --TEMPIK

Line 10939: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

10935: end if ;
10936: --
10937:
10938: l_effective_date := r_BRG.information2;
10939: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10940: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10941: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10942: end if;
10943:

Line 10940: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

10936: --
10937:
10938: l_effective_date := r_BRG.information2;
10939: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10940: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10941: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10942: end if;
10943:
10944: if l_first_rec and not l_update then

Line 10941: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

10937:
10938: l_effective_date := r_BRG.information2;
10939: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
10940: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
10941: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
10942: end if;
10943:
10944: if l_first_rec and not l_update then
10945: -- Call Create routine.

Line 10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;

10994: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
10995: -- Update all relevent cer records with new pk_id
10996: hr_utility.set_location('Before plsql table ',222);
10997: hr_utility.set_location('new_value id '||l_benfts_grp_rt_id,222);
10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;
11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;
11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;

Line 10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;

10995: -- Update all relevent cer records with new pk_id
10996: hr_utility.set_location('Before plsql table ',222);
10997: hr_utility.set_location('new_value id '||l_benfts_grp_rt_id,222);
10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;
11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;
11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
11003: hr_utility.set_location('After plsql table ',222);

Line 11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;

10996: hr_utility.set_location('Before plsql table ',222);
10997: hr_utility.set_location('new_value id '||l_benfts_grp_rt_id,222);
10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;
11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;
11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
11003: hr_utility.set_location('After plsql table ',222);
11004: --

Line 11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

10997: hr_utility.set_location('new_value id '||l_benfts_grp_rt_id,222);
10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;
11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;
11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
11003: hr_utility.set_location('After plsql table ',222);
11004: --
11005: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;

10998: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'BENFTS_GRP_RT_ID' ;
10999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_BRG.information1 ;
11000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_BENFTS_GRP_RT_ID ;
11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
11003: hr_utility.set_location('After plsql table ',222);
11004: --
11005: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11006: --

Line 11005: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

11001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_BRG_unique.table_route_id;
11003: hr_utility.set_location('After plsql table ',222);
11004: --
11005: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11006: --
11007: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11008: --
11009: else

Line 11007: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

11003: hr_utility.set_location('After plsql table ',222);
11004: --
11005: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11006: --
11007: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11008: --
11009: else
11010: --
11011: -- Call Update routine for the pk_id created in prev run .

Line 11121: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'BRG',r_brg.information5 );

11117: end loop;
11118: --
11119: exception when others then
11120: --
11121: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'BRG',r_brg.information5 );
11122: --
11123: end create_BRG_rows;
11124:
11125: ---------------------------------------------------------------

Line 11260: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

11256: end if ;
11257: -- End Prefix Sufix derivation
11258: for r_CMR_unique in c_unique_CMR('CMR') loop
11259:
11260: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11261: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11262: r_CMR_unique.information3 >=
11263: ben_pd_copy_to_ben_one.g_copy_effective_date)
11264: ) then

Line 11261: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11257: -- End Prefix Sufix derivation
11258: for r_CMR_unique in c_unique_CMR('CMR') loop
11259:
11260: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11261: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11262: r_CMR_unique.information3 >=
11263: ben_pd_copy_to_ben_one.g_copy_effective_date)
11264: ) then
11265: --

Line 11263: ben_pd_copy_to_ben_one.g_copy_effective_date)

11259:
11260: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11261: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11262: r_CMR_unique.information3 >=
11263: ben_pd_copy_to_ben_one.g_copy_effective_date)
11264: ) then
11265: --
11266: hr_utility.set_location(' r_CMR_unique.table_route_id '||r_CMR_unique.table_route_id,10);
11267: hr_utility.set_location(' r_CMR_unique.information1 '||r_CMR_unique.information1,10);

Line 11281: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11277: open c_CMR_min_max_dates(r_CMR_unique.table_route_id, r_CMR_unique.information1 ) ;
11278: fetch c_CMR_min_max_dates into l_min_esd,l_max_eed ;
11279: --
11280:
11281: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11282: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11283: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11284: end if;
11285: l_min_esd := greatest(l_min_esd,r_CMR_unique.information2);

Line 11282: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

11278: fetch c_CMR_min_max_dates into l_min_esd,l_max_eed ;
11279: --
11280:
11281: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11282: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11283: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11284: end if;
11285: l_min_esd := greatest(l_min_esd,r_CMR_unique.information2);
11286: open c_CMR(r_CMR_unique.table_route_id,

Line 11283: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

11279: --
11280:
11281: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11282: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11283: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11284: end if;
11285: l_min_esd := greatest(l_min_esd,r_CMR_unique.information2);
11286: open c_CMR(r_CMR_unique.table_route_id,
11287: r_CMR_unique.information1,

Line 11308: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

11304: l_object_found_in_target := TRUE;
11305: --
11306: if l_process_date between r_CMR_unique.information2 and r_CMR_unique.information3 then
11307: l_update := true;
11308: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'
11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;

Line 11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'

11305: --
11306: if l_process_date between r_CMR_unique.information2 and r_CMR_unique.information3 then
11307: l_update := true;
11308: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'
11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;

Line 11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;

11307: l_update := true;
11308: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'
11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;
11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;

Line 11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;

11308: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'
11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;
11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;
11316: --

Line 11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;

11309: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID'
11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;
11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;
11316: --
11317: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

11310: then
11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;
11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;
11316: --
11317: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11318: --

Line 11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;

11311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11312: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CMR_unique.information1 ;
11313: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CMR_unique.information1 ;
11314: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;
11316: --
11317: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11318: --
11319: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 11319: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

11315: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CMR_unique.table_route_id;
11316: --
11317: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11318: --
11319: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
11320: --
11321: -- log_data('CMR',l_new_value,l_prefix || r_CMR_unique.name|| l_suffix,'REUSED');
11322: --
11323: end if ;

Line 11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

11347: p_from_date => l_min_esd,
11348: p_to_date => l_max_eed );
11349: if l_dt_rec_found THEN
11350: --END TEMPIK
11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then

11348: p_to_date => l_max_eed );
11349: if l_dt_rec_found THEN
11350: --END TEMPIK
11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;

11349: if l_dt_rec_found THEN
11350: --END TEMPIK
11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;

Line 11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;

11350: --END TEMPIK
11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --

Line 11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

11351: if r_CMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --
11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

11352: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CMBN_AGE_LOS_RT_ID' then
11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --
11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11360: --

Line 11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;

11353: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11354: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR_unique.information1 ;
11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --
11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11360: --
11361: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

11355: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --
11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11360: --
11361: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11362: end if ;
11363: --

Line 11361: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

11357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11358: --
11359: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11360: --
11361: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11362: end if ;
11363: --
11364: l_object_found_in_target := true ;
11365: --TEMPIK

Line 11395: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11391: end if ;
11392: --
11393:
11394: l_effective_date := r_CMR.information2;
11395: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11396: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11397: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11398: end if;
11399:

Line 11396: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

11392: --
11393:
11394: l_effective_date := r_CMR.information2;
11395: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11396: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11397: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11398: end if;
11399:
11400: if l_first_rec and not l_update then

Line 11397: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

11393:
11394: l_effective_date := r_CMR.information2;
11395: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11396: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11397: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11398: end if;
11399:
11400: if l_first_rec and not l_update then
11401: -- Call Create routine.

Line 11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;

11450: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
11451: -- Update all relevent cer records with new pk_id
11452: hr_utility.set_location('Before plsql table ',222);
11453: hr_utility.set_location('new_value id '||l_cmbn_age_los_rt_id,222);
11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;
11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;
11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;

Line 11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;

11451: -- Update all relevent cer records with new pk_id
11452: hr_utility.set_location('Before plsql table ',222);
11453: hr_utility.set_location('new_value id '||l_cmbn_age_los_rt_id,222);
11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;
11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;
11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11459: hr_utility.set_location('After plsql table ',222);

Line 11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;

11452: hr_utility.set_location('Before plsql table ',222);
11453: hr_utility.set_location('new_value id '||l_cmbn_age_los_rt_id,222);
11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;
11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;
11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11459: hr_utility.set_location('After plsql table ',222);
11460: --

Line 11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

11453: hr_utility.set_location('new_value id '||l_cmbn_age_los_rt_id,222);
11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;
11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;
11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11459: hr_utility.set_location('After plsql table ',222);
11460: --
11461: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;

11454: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CMBN_AGE_LOS_RT_ID' ;
11455: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CMR.information1 ;
11456: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CMBN_AGE_LOS_RT_ID ;
11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11459: hr_utility.set_location('After plsql table ',222);
11460: --
11461: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11462: --

Line 11461: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

11457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CMR_unique.table_route_id;
11459: hr_utility.set_location('After plsql table ',222);
11460: --
11461: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11462: --
11463: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11464: --
11465: else

Line 11463: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

11459: hr_utility.set_location('After plsql table ',222);
11460: --
11461: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11462: --
11463: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11464: --
11465: else
11466: --
11467: -- Call Update routine for the pk_id created in prev run .

Line 11577: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CMR',r_cmr.information5 );

11573: end loop;
11574: --
11575: exception when others then
11576: --
11577: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CMR',r_cmr.information5 );
11578: --
11579: end create_CMR_rows;
11580:
11581: --

Line 11717: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

11713: end if ;
11714: -- End Prefix Sufix derivation
11715: for r_VMR_unique in c_unique_VMR('VMR') loop
11716:
11717: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11718: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11719: r_VMR_unique.information3 >=
11720: ben_pd_copy_to_ben_one.g_copy_effective_date)
11721: ) then

Line 11718: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11714: -- End Prefix Sufix derivation
11715: for r_VMR_unique in c_unique_VMR('VMR') loop
11716:
11717: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11718: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11719: r_VMR_unique.information3 >=
11720: ben_pd_copy_to_ben_one.g_copy_effective_date)
11721: ) then
11722: --

Line 11720: ben_pd_copy_to_ben_one.g_copy_effective_date)

11716:
11717: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
11718: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11719: r_VMR_unique.information3 >=
11720: ben_pd_copy_to_ben_one.g_copy_effective_date)
11721: ) then
11722: --
11723: hr_utility.set_location(' r_VMR_unique.table_route_id '||r_VMR_unique.table_route_id,10);
11724: hr_utility.set_location(' r_VMR_unique.information1 '||r_VMR_unique.information1,10);

Line 11738: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11734: open c_VMR_min_max_dates(r_VMR_unique.table_route_id, r_VMR_unique.information1 ) ;
11735: fetch c_VMR_min_max_dates into l_min_esd,l_max_eed ;
11736: --
11737:
11738: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11739: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11740: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11741: end if;
11742: l_min_esd := greatest(l_min_esd,r_VMR_unique.information2);

Line 11739: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

11735: fetch c_VMR_min_max_dates into l_min_esd,l_max_eed ;
11736: --
11737:
11738: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11739: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11740: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11741: end if;
11742: l_min_esd := greatest(l_min_esd,r_VMR_unique.information2);
11743: open c_VMR(r_VMR_unique.table_route_id,

Line 11740: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

11736: --
11737:
11738: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11739: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11740: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
11741: end if;
11742: l_min_esd := greatest(l_min_esd,r_VMR_unique.information2);
11743: open c_VMR(r_VMR_unique.table_route_id,
11744: r_VMR_unique.information1,

Line 11765: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

11761: l_object_found_in_target := TRUE;
11762: --
11763: if l_process_date between r_VMR_unique.information2 and r_VMR_unique.information3 then
11764: l_update := true;
11765: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'
11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;

Line 11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'

11762: --
11763: if l_process_date between r_VMR_unique.information2 and r_VMR_unique.information3 then
11764: l_update := true;
11765: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'
11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;

Line 11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;

11764: l_update := true;
11765: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'
11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;
11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;

Line 11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;

11765: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'
11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;
11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;
11773: --

Line 11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;

11766: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID'
11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;
11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;
11773: --
11774: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

11767: then
11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;
11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;
11773: --
11774: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11775: --

Line 11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;

11768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VMR_unique.information1 ;
11770: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VMR_unique.information1 ;
11771: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;
11773: --
11774: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11775: --
11776: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 11776: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

11772: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VMR_unique.table_route_id;
11773: --
11774: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
11775: --
11776: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
11777: --
11778: -- log_data('VMR',l_new_value,l_prefix || r_VMR_unique.name|| l_suffix,'REUSED');
11779: --
11780: end if ;

Line 11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

11804: p_from_date => l_min_esd,
11805: p_to_date => l_max_eed );
11806: if l_dt_rec_found THEN
11807: --END TEMPIK
11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then

11805: p_to_date => l_max_eed );
11806: if l_dt_rec_found THEN
11807: --END TEMPIK
11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;

11806: if l_dt_rec_found THEN
11807: --END TEMPIK
11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;

Line 11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;

11807: --END TEMPIK
11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --

Line 11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

11808: if r_VMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --
11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

11809: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_MTCHG_RT_ID' then
11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --
11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11817: --

Line 11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;

11810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR_unique.information1 ;
11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --
11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11817: --
11818: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

11812: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
11813: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --
11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11817: --
11818: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11819: end if ;
11820: --

Line 11818: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

11814: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11815: --
11816: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
11817: --
11818: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11819: end if ;
11820: --
11821: l_object_found_in_target := true ;
11822: --TEMPIK

Line 11852: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

11848: end if ;
11849: --
11850:
11851: l_effective_date := r_VMR.information2;
11852: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11853: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11854: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11855: end if;
11856:

Line 11853: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

11849: --
11850:
11851: l_effective_date := r_VMR.information2;
11852: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11853: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11854: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11855: end if;
11856:
11857: if l_first_rec and not l_update then

Line 11854: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

11850:
11851: l_effective_date := r_VMR.information2;
11852: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
11853: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
11854: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
11855: end if;
11856:
11857: if l_first_rec and not l_update then
11858: -- Call Create routine.

Line 11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;

11917: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
11918: -- Update all relevent cer records with new pk_id
11919: hr_utility.set_location('Before plsql table ',222);
11920: hr_utility.set_location('new_value id '||l_vrbl_mtchg_rt_id,222);
11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;
11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;
11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;

Line 11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;

11918: -- Update all relevent cer records with new pk_id
11919: hr_utility.set_location('Before plsql table ',222);
11920: hr_utility.set_location('new_value id '||l_vrbl_mtchg_rt_id,222);
11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;
11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;
11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11926: hr_utility.set_location('After plsql table ',222);

Line 11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;

11919: hr_utility.set_location('Before plsql table ',222);
11920: hr_utility.set_location('new_value id '||l_vrbl_mtchg_rt_id,222);
11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;
11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;
11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11926: hr_utility.set_location('After plsql table ',222);
11927: --

Line 11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

11920: hr_utility.set_location('new_value id '||l_vrbl_mtchg_rt_id,222);
11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;
11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;
11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11926: hr_utility.set_location('After plsql table ',222);
11927: --
11928: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;

11921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_MTCHG_RT_ID' ;
11922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VMR.information1 ;
11923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_MTCHG_RT_ID ;
11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11926: hr_utility.set_location('After plsql table ',222);
11927: --
11928: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11929: --

Line 11928: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

11924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
11925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VMR_unique.table_route_id;
11926: hr_utility.set_location('After plsql table ',222);
11927: --
11928: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11929: --
11930: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11931: --
11932: else

Line 11930: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

11926: hr_utility.set_location('After plsql table ',222);
11927: --
11928: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
11929: --
11930: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
11931: --
11932: else
11933: --
11934: -- Call Update routine for the pk_id created in prev run .

Line 12054: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'VMR',r_vmr.information5 );

12050: end loop;
12051: --
12052: exception when others then
12053: --
12054: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'VMR',r_vmr.information5 );
12055: --
12056: end create_VMR_rows;
12057:
12058: ---------------------------------------------------------------

Line 12193: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

12189: end if ;
12190: -- End Prefix Sufix derivation
12191: for r_PAP_unique in c_unique_PAP('PAP') loop
12192:
12193: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12194: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12195: r_PAP_unique.information3 >=
12196: ben_pd_copy_to_ben_one.g_copy_effective_date)
12197: ) then

Line 12194: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12190: -- End Prefix Sufix derivation
12191: for r_PAP_unique in c_unique_PAP('PAP') loop
12192:
12193: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12194: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12195: r_PAP_unique.information3 >=
12196: ben_pd_copy_to_ben_one.g_copy_effective_date)
12197: ) then
12198: --

Line 12196: ben_pd_copy_to_ben_one.g_copy_effective_date)

12192:
12193: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12194: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12195: r_PAP_unique.information3 >=
12196: ben_pd_copy_to_ben_one.g_copy_effective_date)
12197: ) then
12198: --
12199: hr_utility.set_location(' r_PAP_unique.table_route_id '||r_PAP_unique.table_route_id,10);
12200: hr_utility.set_location(' r_PAP_unique.information1 '||r_PAP_unique.information1,10);

Line 12214: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12210: open c_PAP_min_max_dates(r_PAP_unique.table_route_id, r_PAP_unique.information1 ) ;
12211: fetch c_PAP_min_max_dates into l_min_esd,l_max_eed ;
12212: --
12213:
12214: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12215: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12216: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12217: end if;
12218: l_min_esd := greatest(l_min_esd,r_PAP_unique.information2);

Line 12215: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

12211: fetch c_PAP_min_max_dates into l_min_esd,l_max_eed ;
12212: --
12213:
12214: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12215: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12216: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12217: end if;
12218: l_min_esd := greatest(l_min_esd,r_PAP_unique.information2);
12219: open c_PAP(r_PAP_unique.table_route_id,

Line 12216: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

12212: --
12213:
12214: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12215: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12216: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12217: end if;
12218: l_min_esd := greatest(l_min_esd,r_PAP_unique.information2);
12219: open c_PAP(r_PAP_unique.table_route_id,
12220: r_PAP_unique.information1,

Line 12245: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

12241: l_object_found_in_target := TRUE;
12242: --
12243: if l_process_date between r_PAP_unique.information2 and r_PAP_unique.information3 then
12244: l_update := true;
12245: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'
12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;

Line 12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'

12242: --
12243: if l_process_date between r_PAP_unique.information2 and r_PAP_unique.information3 then
12244: l_update := true;
12245: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'
12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;

Line 12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;

12244: l_update := true;
12245: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'
12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;
12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;

Line 12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;

12245: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'
12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;
12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;
12253: --

Line 12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;

12246: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID'
12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;
12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;
12253: --
12254: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

12247: then
12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;
12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;
12253: --
12254: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12255: --

Line 12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;

12248: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12249: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PAP_unique.information1 ;
12250: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PAP_unique.information1 ;
12251: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;
12253: --
12254: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12255: --
12256: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 12256: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

12252: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PAP_unique.table_route_id;
12253: --
12254: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12255: --
12256: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
12257: --
12258: -- log_data('PAP',l_new_value,l_prefix || r_PAP_unique.name|| l_suffix,'REUSED');
12259: --
12260: end if ;

Line 12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

12284: p_from_date => l_min_esd,
12285: p_to_date => l_max_eed );
12286: if l_dt_rec_found THEN
12287: --END TEMPIK
12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then

12285: p_to_date => l_max_eed );
12286: if l_dt_rec_found THEN
12287: --END TEMPIK
12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;

12286: if l_dt_rec_found THEN
12287: --END TEMPIK
12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;

Line 12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;

12287: --END TEMPIK
12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --

Line 12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

12288: if r_PAP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --
12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

12289: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PRTT_ANTHR_PL_RT_ID' then
12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --
12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12297: --

Line 12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;

12290: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12291: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP_unique.information1 ;
12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --
12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12297: --
12298: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

12292: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12293: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --
12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12297: --
12298: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12299: end if ;
12300: --

Line 12298: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

12294: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12295: --
12296: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12297: --
12298: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12299: end if ;
12300: --
12301: l_object_found_in_target := true ;
12302: --TEMPIK

Line 12332: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12328: end if ;
12329: --
12330:
12331: l_effective_date := r_PAP.information2;
12332: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12333: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12334: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12335: end if;
12336:

Line 12333: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

12329: --
12330:
12331: l_effective_date := r_PAP.information2;
12332: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12333: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12334: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12335: end if;
12336:
12337: if l_first_rec and not l_update then

Line 12334: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

12330:
12331: l_effective_date := r_PAP.information2;
12332: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12333: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12334: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12335: end if;
12336:
12337: if l_first_rec and not l_update then
12338: -- Call Create routine.

Line 12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;

12387: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
12388: -- Update all relevent cer records with new pk_id
12389: hr_utility.set_location('Before plsql table ',222);
12390: hr_utility.set_location('new_value id '||l_prtt_anthr_pl_rt_id,222);
12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;
12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;
12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;

Line 12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;

12388: -- Update all relevent cer records with new pk_id
12389: hr_utility.set_location('Before plsql table ',222);
12390: hr_utility.set_location('new_value id '||l_prtt_anthr_pl_rt_id,222);
12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;
12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;
12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12396: hr_utility.set_location('After plsql table ',222);

Line 12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;

12389: hr_utility.set_location('Before plsql table ',222);
12390: hr_utility.set_location('new_value id '||l_prtt_anthr_pl_rt_id,222);
12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;
12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;
12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12396: hr_utility.set_location('After plsql table ',222);
12397: --

Line 12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

12390: hr_utility.set_location('new_value id '||l_prtt_anthr_pl_rt_id,222);
12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;
12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;
12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12396: hr_utility.set_location('After plsql table ',222);
12397: --
12398: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;

12391: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PRTT_ANTHR_PL_RT_ID' ;
12392: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PAP.information1 ;
12393: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PRTT_ANTHR_PL_RT_ID ;
12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12396: hr_utility.set_location('After plsql table ',222);
12397: --
12398: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12399: --

Line 12398: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

12394: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12395: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PAP_unique.table_route_id;
12396: hr_utility.set_location('After plsql table ',222);
12397: --
12398: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12399: --
12400: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12401: --
12402: else

Line 12400: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

12396: hr_utility.set_location('After plsql table ',222);
12397: --
12398: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12399: --
12400: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12401: --
12402: else
12403: --
12404: -- Call Update routine for the pk_id created in prev run .

Line 12514: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PAP',r_pap.information5 );

12510: end loop;
12511: --
12512: exception when others then
12513: --
12514: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PAP',r_pap.information5 );
12515: --
12516: end create_PAP_rows;
12517:
12518: ---------------------------------------------------------------

Line 12653: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

12649: end if ;
12650: -- End Prefix Sufix derivation
12651: for r_OPR_unique in c_unique_OPR('OPR') loop
12652:
12653: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12654: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12655: r_OPR_unique.information3 >=
12656: ben_pd_copy_to_ben_one.g_copy_effective_date)
12657: ) then

Line 12654: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12650: -- End Prefix Sufix derivation
12651: for r_OPR_unique in c_unique_OPR('OPR') loop
12652:
12653: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12654: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12655: r_OPR_unique.information3 >=
12656: ben_pd_copy_to_ben_one.g_copy_effective_date)
12657: ) then
12658: --

Line 12656: ben_pd_copy_to_ben_one.g_copy_effective_date)

12652:
12653: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
12654: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12655: r_OPR_unique.information3 >=
12656: ben_pd_copy_to_ben_one.g_copy_effective_date)
12657: ) then
12658: --
12659: hr_utility.set_location(' r_OPR_unique.table_route_id '||r_OPR_unique.table_route_id,10);
12660: hr_utility.set_location(' r_OPR_unique.information1 '||r_OPR_unique.information1,10);

Line 12674: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12670: open c_OPR_min_max_dates(r_OPR_unique.table_route_id, r_OPR_unique.information1 ) ;
12671: fetch c_OPR_min_max_dates into l_min_esd,l_max_eed ;
12672: --
12673:
12674: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12675: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12676: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12677: end if;
12678: l_min_esd := greatest(l_min_esd,r_OPR_unique.information2);

Line 12675: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

12671: fetch c_OPR_min_max_dates into l_min_esd,l_max_eed ;
12672: --
12673:
12674: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12675: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12676: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12677: end if;
12678: l_min_esd := greatest(l_min_esd,r_OPR_unique.information2);
12679: open c_OPR(r_OPR_unique.table_route_id,

Line 12676: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

12672: --
12673:
12674: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12675: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12676: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
12677: end if;
12678: l_min_esd := greatest(l_min_esd,r_OPR_unique.information2);
12679: open c_OPR(r_OPR_unique.table_route_id,
12680: r_OPR_unique.information1,

Line 12704: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

12700: l_object_found_in_target := TRUE;
12701: --
12702: if l_process_date between r_OPR_unique.information2 and r_OPR_unique.information3 then
12703: l_update := true;
12704: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'
12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;

Line 12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'

12701: --
12702: if l_process_date between r_OPR_unique.information2 and r_OPR_unique.information3 then
12703: l_update := true;
12704: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'
12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;

Line 12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;

12703: l_update := true;
12704: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'
12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;
12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;

Line 12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;

12704: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'
12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;
12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;
12712: --

Line 12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;

12705: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID'
12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;
12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;
12712: --
12713: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

12706: then
12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;
12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;
12712: --
12713: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12714: --

Line 12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;

12707: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12708: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OPR_unique.information1 ;
12709: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OPR_unique.information1 ;
12710: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;
12712: --
12713: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12714: --
12715: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 12715: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

12711: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OPR_unique.table_route_id;
12712: --
12713: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
12714: --
12715: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
12716: --
12717: -- log_data('OPR',l_new_value,l_prefix || r_OPR_unique.name|| l_suffix,'REUSED');
12718: --
12719: end if ;

Line 12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

12743: p_from_date => l_min_esd,
12744: p_to_date => l_max_eed );
12745: if l_dt_rec_found THEN
12746: --END TEMPIK
12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then

12744: p_to_date => l_max_eed );
12745: if l_dt_rec_found THEN
12746: --END TEMPIK
12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;

12745: if l_dt_rec_found THEN
12746: --END TEMPIK
12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;

Line 12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;

12746: --END TEMPIK
12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --

Line 12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

12747: if r_OPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --
12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

12748: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'OTHR_PTIP_RT_ID' then
12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --
12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12756: --

Line 12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;

12749: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR_unique.information1 ;
12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --
12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12756: --
12757: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

12751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
12752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --
12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12756: --
12757: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12758: end if ;
12759: --

Line 12757: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

12753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12754: --
12755: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
12756: --
12757: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12758: end if ;
12759: --
12760: l_object_found_in_target := true ;
12761: --TEMPIK

Line 12791: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

12787: end if ;
12788: --
12789:
12790: l_effective_date := r_OPR.information2;
12791: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12792: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12793: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12794: end if;
12795:

Line 12792: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

12788: --
12789:
12790: l_effective_date := r_OPR.information2;
12791: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12792: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12793: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12794: end if;
12795:
12796: if l_first_rec and not l_update then

Line 12793: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

12789:
12790: l_effective_date := r_OPR.information2;
12791: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
12792: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
12793: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
12794: end if;
12795:
12796: if l_first_rec and not l_update then
12797: -- Call Create routine.

Line 12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;

12847: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
12848: -- Update all relevent cer records with new pk_id
12849: hr_utility.set_location('Before plsql table ',222);
12850: hr_utility.set_location('new_value id '||l_othr_ptip_rt_id,222);
12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;
12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;
12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;

Line 12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;

12848: -- Update all relevent cer records with new pk_id
12849: hr_utility.set_location('Before plsql table ',222);
12850: hr_utility.set_location('new_value id '||l_othr_ptip_rt_id,222);
12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;
12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;
12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12856: hr_utility.set_location('After plsql table ',222);

Line 12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;

12849: hr_utility.set_location('Before plsql table ',222);
12850: hr_utility.set_location('new_value id '||l_othr_ptip_rt_id,222);
12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;
12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;
12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12856: hr_utility.set_location('After plsql table ',222);
12857: --

Line 12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

12850: hr_utility.set_location('new_value id '||l_othr_ptip_rt_id,222);
12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;
12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;
12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12856: hr_utility.set_location('After plsql table ',222);
12857: --
12858: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;

12851: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'OTHR_PTIP_RT_ID' ;
12852: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_OPR.information1 ;
12853: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_OTHR_PTIP_RT_ID ;
12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12856: hr_utility.set_location('After plsql table ',222);
12857: --
12858: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12859: --

Line 12858: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

12854: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
12855: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_OPR_unique.table_route_id;
12856: hr_utility.set_location('After plsql table ',222);
12857: --
12858: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12859: --
12860: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12861: --
12862: else

Line 12860: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

12856: hr_utility.set_location('After plsql table ',222);
12857: --
12858: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
12859: --
12860: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
12861: --
12862: else
12863: --
12864: -- Call Update routine for the pk_id created in prev run .

Line 12975: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OPR',r_opr.information5 );

12971: end loop;
12972: --
12973: exception when others then
12974: --
12975: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OPR',r_opr.information5 );
12976: --
12977: end create_OPR_rows;
12978:
12979: ---------------------------------------------------------------

Line 13114: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

13110: end if ;
13111: -- End Prefix Sufix derivation
13112: for r_NOC_unique in c_unique_NOC('NOC') loop
13113:
13114: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13115: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13116: r_NOC_unique.information3 >=
13117: ben_pd_copy_to_ben_one.g_copy_effective_date)
13118: ) then

Line 13115: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13111: -- End Prefix Sufix derivation
13112: for r_NOC_unique in c_unique_NOC('NOC') loop
13113:
13114: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13115: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13116: r_NOC_unique.information3 >=
13117: ben_pd_copy_to_ben_one.g_copy_effective_date)
13118: ) then
13119:

Line 13117: ben_pd_copy_to_ben_one.g_copy_effective_date)

13113:
13114: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13115: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13116: r_NOC_unique.information3 >=
13117: ben_pd_copy_to_ben_one.g_copy_effective_date)
13118: ) then
13119:
13120: --
13121: hr_utility.set_location(' r_NOC_unique.table_route_id '||r_NOC_unique.table_route_id,10);

Line 13136: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13132: open c_NOC_min_max_dates(r_NOC_unique.table_route_id, r_NOC_unique.information1 ) ;
13133: fetch c_NOC_min_max_dates into l_min_esd,l_max_eed ;
13134: --
13135:
13136: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13137: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13138: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13139: end if;
13140: l_min_esd := greatest(l_min_esd,r_NOC_unique.information2);

Line 13137: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

13133: fetch c_NOC_min_max_dates into l_min_esd,l_max_eed ;
13134: --
13135:
13136: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13137: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13138: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13139: end if;
13140: l_min_esd := greatest(l_min_esd,r_NOC_unique.information2);
13141: open c_NOC(r_NOC_unique.table_route_id,

Line 13138: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

13134: --
13135:
13136: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13137: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13138: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13139: end if;
13140: l_min_esd := greatest(l_min_esd,r_NOC_unique.information2);
13141: open c_NOC(r_NOC_unique.table_route_id,
13142: r_NOC_unique.information1,

Line 13163: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

13159: l_object_found_in_target := TRUE;
13160: --
13161: if l_process_date between r_NOC_unique.information2 and r_NOC_unique.information3 then
13162: l_update := true;
13163: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'
13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;

Line 13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'

13160: --
13161: if l_process_date between r_NOC_unique.information2 and r_NOC_unique.information3 then
13162: l_update := true;
13163: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'
13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;

Line 13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;

13162: l_update := true;
13163: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'
13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;
13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;

Line 13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;

13163: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'
13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;
13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;
13171: --

Line 13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;

13164: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID'
13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;
13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;
13171: --
13172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

13165: then
13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;
13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;
13171: --
13172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13173: --

Line 13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;

13166: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13167: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_NOC_unique.information1 ;
13168: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_NOC_unique.information1 ;
13169: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;
13171: --
13172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13173: --
13174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 13174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

13170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_NOC_unique.table_route_id;
13171: --
13172: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13173: --
13174: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13175: --
13176: -- log_data('NOC',l_new_value,l_prefix || r_NOC_unique.name|| l_suffix,'REUSED');
13177: --
13178: end if ;

Line 13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

13202: p_from_date => l_min_esd,
13203: p_to_date => l_max_eed );
13204: if l_dt_rec_found THEN
13205: --END TEMPIK
13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then

13203: p_to_date => l_max_eed );
13204: if l_dt_rec_found THEN
13205: --END TEMPIK
13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;

13204: if l_dt_rec_found THEN
13205: --END TEMPIK
13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;

Line 13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;

13205: --END TEMPIK
13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --

Line 13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

13206: if r_NOC_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --
13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

13207: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'NO_OTHR_CVG_RT_ID' then
13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --
13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
13215: --

Line 13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;

13208: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13209: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC_unique.information1 ;
13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --
13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
13215: --
13216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

13210: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
13211: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --
13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
13215: --
13216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
13217: end if ;
13218: --

Line 13216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

13212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13213: --
13214: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
13215: --
13216: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
13217: end if ;
13218: --
13219: l_object_found_in_target := true ;
13220: --TEMPIK

Line 13250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13246: end if ;
13247: --
13248:
13249: l_effective_date := r_NOC.information2;
13250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13253: end if;
13254:

Line 13251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

13247: --
13248:
13249: l_effective_date := r_NOC.information2;
13250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13253: end if;
13254:
13255: if l_first_rec and not l_update then

Line 13252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

13248:
13249: l_effective_date := r_NOC.information2;
13250: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13251: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13252: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13253: end if;
13254:
13255: if l_first_rec and not l_update then
13256: -- Call Create routine.

Line 13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;

13303: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
13304: -- Update all relevent cer records with new pk_id
13305: hr_utility.set_location('Before plsql table ',222);
13306: hr_utility.set_location('new_value id '||l_no_othr_cvg_rt_id,222);
13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;
13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;
13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;

Line 13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;

13304: -- Update all relevent cer records with new pk_id
13305: hr_utility.set_location('Before plsql table ',222);
13306: hr_utility.set_location('new_value id '||l_no_othr_cvg_rt_id,222);
13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;
13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;
13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13312: hr_utility.set_location('After plsql table ',222);

Line 13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;

13305: hr_utility.set_location('Before plsql table ',222);
13306: hr_utility.set_location('new_value id '||l_no_othr_cvg_rt_id,222);
13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;
13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;
13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13312: hr_utility.set_location('After plsql table ',222);
13313: --

Line 13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

13306: hr_utility.set_location('new_value id '||l_no_othr_cvg_rt_id,222);
13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;
13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;
13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13312: hr_utility.set_location('After plsql table ',222);
13313: --
13314: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;

13307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'NO_OTHR_CVG_RT_ID' ;
13308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_NOC.information1 ;
13309: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_NO_OTHR_CVG_RT_ID ;
13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13312: hr_utility.set_location('After plsql table ',222);
13313: --
13314: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
13315: --

Line 13314: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

13310: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
13311: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_NOC_unique.table_route_id;
13312: hr_utility.set_location('After plsql table ',222);
13313: --
13314: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
13315: --
13316: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
13317: --
13318: else

Line 13316: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

13312: hr_utility.set_location('After plsql table ',222);
13313: --
13314: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
13315: --
13316: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
13317: --
13318: else
13319: --
13320: -- Call Update routine for the pk_id created in prev run .

Line 13428: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'NOC',r_noc.information5 );

13424: end loop;
13425: --
13426: exception when others then
13427: --
13428: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'NOC',r_noc.information5 );
13429: --
13430: end create_NOC_rows;
13431:
13432: --

Line 13567: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

13563: end if ;
13564: -- End Prefix Sufix derivation
13565: for r_OMR_unique in c_unique_OMR('OMR') loop
13566:
13567: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13568: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13569: r_OMR_unique.information3 >=
13570: ben_pd_copy_to_ben_one.g_copy_effective_date)
13571: ) then

Line 13568: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13564: -- End Prefix Sufix derivation
13565: for r_OMR_unique in c_unique_OMR('OMR') loop
13566:
13567: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13568: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13569: r_OMR_unique.information3 >=
13570: ben_pd_copy_to_ben_one.g_copy_effective_date)
13571: ) then
13572: --

Line 13570: ben_pd_copy_to_ben_one.g_copy_effective_date)

13566:
13567: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
13568: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13569: r_OMR_unique.information3 >=
13570: ben_pd_copy_to_ben_one.g_copy_effective_date)
13571: ) then
13572: --
13573: hr_utility.set_location(' r_OMR_unique.table_route_id '||r_OMR_unique.table_route_id,10);
13574: hr_utility.set_location(' r_OMR_unique.information1 '||r_OMR_unique.information1,10);

Line 13588: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13584: open c_OMR_min_max_dates(r_OMR_unique.table_route_id, r_OMR_unique.information1 ) ;
13585: fetch c_OMR_min_max_dates into l_min_esd,l_max_eed ;
13586: --
13587:
13588: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13589: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13590: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13591: end if;
13592: l_min_esd := greatest(l_min_esd,r_OMR_unique.information2);

Line 13589: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

13585: fetch c_OMR_min_max_dates into l_min_esd,l_max_eed ;
13586: --
13587:
13588: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13589: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13590: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13591: end if;
13592: l_min_esd := greatest(l_min_esd,r_OMR_unique.information2);
13593: open c_OMR(r_OMR_unique.table_route_id,

Line 13590: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

13586: --
13587:
13588: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13589: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13590: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
13591: end if;
13592: l_min_esd := greatest(l_min_esd,r_OMR_unique.information2);
13593: open c_OMR(r_OMR_unique.table_route_id,
13594: r_OMR_unique.information1,

Line 13615: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

13611: l_object_found_in_target := TRUE;
13612: --
13613: if l_process_date between r_OMR_unique.information2 and r_OMR_unique.information3 then
13614: l_update := true;
13615: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'
13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;

Line 13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'

13612: --
13613: if l_process_date between r_OMR_unique.information2 and r_OMR_unique.information3 then
13614: l_update := true;
13615: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'
13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;

Line 13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;

13614: l_update := true;
13615: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'
13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;
13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

Line 13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;

13615: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'
13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;
13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13623: --

Line 13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;

13616: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID'
13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;
13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13623: --
13624: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

13617: then
13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;
13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13623: --
13624: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13625: --

Line 13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

13618: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13619: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13620: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_OMR_unique.information1 ;
13621: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13623: --
13624: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13625: --
13626: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 13626: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

13622: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13623: --
13624: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
13625: --
13626: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13627: --
13628: -- log_data('OMR',l_new_value,l_prefix || r_OMR_unique.name|| l_suffix,'REUSED');
13629: --
13630: end if ;

Line 13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or

13654: p_from_date => l_min_esd,
13655: p_to_date => l_max_eed );
13656: if l_dt_rec_found THEN
13657: --END TEMPIK
13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;

Line 13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then

13655: p_to_date => l_max_eed );
13656: if l_dt_rec_found THEN
13657: --END TEMPIK
13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

Line 13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;

13656: if l_dt_rec_found THEN
13657: --END TEMPIK
13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

Line 13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;

13657: --END TEMPIK
13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --

Line 13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;

13658: if r_OMR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --
13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;

Line 13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

13659: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'OPTD_MDCR_RT_ID' then
13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --
13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
13667: --

Line 13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

13660: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13661: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR_unique.information1 ;
13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --
13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
13667: --
13668: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;

13662: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
13663: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --
13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
13667: --
13668: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13669: end if ;
13670: --

Line 13668: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

13664: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13665: --
13666: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
13667: --
13668: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13669: end if ;
13670: --
13671: l_object_found_in_target := true ;
13672: --TEMPIK

Line 13702: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

13698: end if ;
13699: --
13700:
13701: l_effective_date := r_OMR.information2;
13702: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13703: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13704: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13705: end if;
13706:

Line 13703: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

13699: --
13700:
13701: l_effective_date := r_OMR.information2;
13702: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13703: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13704: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13705: end if;
13706:
13707: if l_first_rec and not l_update then

Line 13704: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

13700:
13701: l_effective_date := r_OMR.information2;
13702: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
13703: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
13704: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
13705: end if;
13706:
13707: if l_first_rec and not l_update then
13708: -- Call Create routine.

Line 13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;

13756: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
13757: -- Update all relevent cer records with new pk_id
13758: hr_utility.set_location('Before plsql table ',222);
13759: hr_utility.set_location('new_value id '||l_optd_mdcr_rt_id,222);
13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;
13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;
13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

Line 13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;

13757: -- Update all relevent cer records with new pk_id
13758: hr_utility.set_location('Before plsql table ',222);
13759: hr_utility.set_location('new_value id '||l_optd_mdcr_rt_id,222);
13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;
13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;
13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13765: hr_utility.set_location('After plsql table ',222);

Line 13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;

13758: hr_utility.set_location('Before plsql table ',222);
13759: hr_utility.set_location('new_value id '||l_optd_mdcr_rt_id,222);
13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;
13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;
13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13765: hr_utility.set_location('After plsql table ',222);
13766: --

Line 13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';

13759: hr_utility.set_location('new_value id '||l_optd_mdcr_rt_id,222);
13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;
13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;
13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13765: hr_utility.set_location('After plsql table ',222);
13766: --
13767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;

Line 13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;

13760: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'OPTD_MDCR_RT_ID' ;
13761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_OMR.information1 ;
13762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_OPTD_MDCR_RT_ID ;
13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13765: hr_utility.set_location('After plsql table ',222);
13766: --
13767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
13768: --

Line 13767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;

13763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
13764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_OMR_unique.table_route_id;
13765: hr_utility.set_location('After plsql table ',222);
13766: --
13767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
13768: --
13769: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13770: --
13771: else

Line 13769: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

13765: hr_utility.set_location('After plsql table ',222);
13766: --
13767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
13768: --
13769: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
13770: --
13771: else
13772: --
13773: -- Call Update routine for the pk_id created in prev run .

Line 13882: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OMR',r_omr.information5 );

13878: end loop;
13879: --
13880: exception when others then
13881: --
13882: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'OMR',r_omr.information5 );
13883: --
13884: end create_OMR_rows;
13885:
13886: ---------------------------------------------------------------

Line 14021: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

14017: end if ;
14018: -- End Prefix Sufix derivation
14019: for r_EPM_unique in c_unique_EPM('EPM') loop
14020:
14021: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14022: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14023: r_EPM_unique.information3 >=
14024: ben_pd_copy_to_ben_one.g_copy_effective_date)
14025: ) then

Line 14022: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14018: -- End Prefix Sufix derivation
14019: for r_EPM_unique in c_unique_EPM('EPM') loop
14020:
14021: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14022: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14023: r_EPM_unique.information3 >=
14024: ben_pd_copy_to_ben_one.g_copy_effective_date)
14025: ) then
14026: --

Line 14024: ben_pd_copy_to_ben_one.g_copy_effective_date)

14020:
14021: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14022: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14023: r_EPM_unique.information3 >=
14024: ben_pd_copy_to_ben_one.g_copy_effective_date)
14025: ) then
14026: --
14027: hr_utility.set_location(' r_EPM_unique.table_route_id '||r_EPM_unique.table_route_id,10);
14028: hr_utility.set_location(' r_EPM_unique.information1 '||r_EPM_unique.information1,10);

Line 14042: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14038: open c_EPM_min_max_dates(r_EPM_unique.table_route_id, r_EPM_unique.information1 ) ;
14039: fetch c_EPM_min_max_dates into l_min_esd,l_max_eed ;
14040: --
14041:
14042: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14043: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14044: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14045: end if;
14046: l_min_esd := greatest(l_min_esd,r_EPM_unique.information2);

Line 14043: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

14039: fetch c_EPM_min_max_dates into l_min_esd,l_max_eed ;
14040: --
14041:
14042: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14043: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14044: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14045: end if;
14046: l_min_esd := greatest(l_min_esd,r_EPM_unique.information2);
14047: open c_EPM(r_EPM_unique.table_route_id,

Line 14044: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

14040: --
14041:
14042: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14043: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14044: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14045: end if;
14046: l_min_esd := greatest(l_min_esd,r_EPM_unique.information2);
14047: open c_EPM(r_EPM_unique.table_route_id,
14048: r_EPM_unique.information1,

Line 14072: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

14068: l_object_found_in_target := TRUE;
14069: --
14070: if l_process_date between r_EPM_unique.information2 and r_EPM_unique.information3 then
14071: l_update := true;
14072: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'
14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;

Line 14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'

14069: --
14070: if l_process_date between r_EPM_unique.information2 and r_EPM_unique.information3 then
14071: l_update := true;
14072: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'
14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;

Line 14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;

14071: l_update := true;
14072: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'
14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;
14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;

Line 14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;

14072: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'
14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;
14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;
14080: --

Line 14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;

14073: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID'
14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;
14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;
14080: --
14081: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

14074: then
14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;
14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;
14080: --
14081: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14082: --

Line 14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;

14075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EPM_unique.information1 ;
14077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EPM_unique.information1 ;
14078: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;
14080: --
14081: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14082: --
14083: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 14083: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

14079: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EPM_unique.table_route_id;
14080: --
14081: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14082: --
14083: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
14084: --
14085: -- log_data('EPM',l_new_value,l_prefix || r_EPM_unique.name|| l_suffix,'REUSED');
14086: --
14087: end if ;

Line 14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

14111: p_from_date => l_min_esd,
14112: p_to_date => l_max_eed );
14113: if l_dt_rec_found THEN
14114: --END TEMPIK
14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then

14112: p_to_date => l_max_eed );
14113: if l_dt_rec_found THEN
14114: --END TEMPIK
14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;

14113: if l_dt_rec_found THEN
14114: --END TEMPIK
14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;

Line 14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;

14114: --END TEMPIK
14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --

Line 14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

14115: if r_EPM_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --
14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

14116: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PGM_RT_ID' then
14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --
14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14124: --

Line 14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;

14117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM_unique.information1 ;
14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --
14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14124: --
14125: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

14119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14120: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --
14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14124: --
14125: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14126: end if ;
14127: --

Line 14125: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

14121: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14122: --
14123: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14124: --
14125: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14126: end if ;
14127: --
14128: l_object_found_in_target := true ;
14129: --TEMPIK

Line 14159: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14155: end if ;
14156: --
14157:
14158: l_effective_date := r_EPM.information2;
14159: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14160: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14161: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14162: end if;
14163:

Line 14160: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

14156: --
14157:
14158: l_effective_date := r_EPM.information2;
14159: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14160: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14161: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14162: end if;
14163:
14164: if l_first_rec and not l_update then

Line 14161: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

14157:
14158: l_effective_date := r_EPM.information2;
14159: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14160: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14161: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14162: end if;
14163:
14164: if l_first_rec and not l_update then
14165: -- Call Create routine.

Line 14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;

14215: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
14216: -- Update all relevent cer records with new pk_id
14217: hr_utility.set_location('Before plsql table ',222);
14218: hr_utility.set_location('new_value id '||l_enrld_anthr_pgm_rt_id,222);
14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;
14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;
14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;

Line 14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;

14216: -- Update all relevent cer records with new pk_id
14217: hr_utility.set_location('Before plsql table ',222);
14218: hr_utility.set_location('new_value id '||l_enrld_anthr_pgm_rt_id,222);
14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;
14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;
14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14224: hr_utility.set_location('After plsql table ',222);

Line 14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;

14217: hr_utility.set_location('Before plsql table ',222);
14218: hr_utility.set_location('new_value id '||l_enrld_anthr_pgm_rt_id,222);
14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;
14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;
14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14224: hr_utility.set_location('After plsql table ',222);
14225: --

Line 14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

14218: hr_utility.set_location('new_value id '||l_enrld_anthr_pgm_rt_id,222);
14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;
14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;
14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14224: hr_utility.set_location('After plsql table ',222);
14225: --
14226: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;

14219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PGM_RT_ID' ;
14220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EPM.information1 ;
14221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PGM_RT_ID ;
14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14224: hr_utility.set_location('After plsql table ',222);
14225: --
14226: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14227: --

Line 14226: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

14222: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14223: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EPM_unique.table_route_id;
14224: hr_utility.set_location('After plsql table ',222);
14225: --
14226: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14227: --
14228: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14229: --
14230: else

Line 14228: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

14224: hr_utility.set_location('After plsql table ',222);
14225: --
14226: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14227: --
14228: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14229: --
14230: else
14231: --
14232: -- Call Update routine for the pk_id created in prev run .

Line 14343: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EPM',r_epm.information5 );

14339: end loop;
14340: --
14341: exception when others then
14342: --
14343: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EPM',r_epm.information5 );
14344: --
14345: end create_EPM_rows;
14346:
14347: ---------------------------------------------------------------

Line 14482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

14478: end if ;
14479: -- End Prefix Sufix derivation
14480: for r_ENT_unique in c_unique_ENT('ENT') loop
14481:
14482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14484: r_ENT_unique.information3 >=
14485: ben_pd_copy_to_ben_one.g_copy_effective_date)
14486: ) then

Line 14483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14479: -- End Prefix Sufix derivation
14480: for r_ENT_unique in c_unique_ENT('ENT') loop
14481:
14482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14484: r_ENT_unique.information3 >=
14485: ben_pd_copy_to_ben_one.g_copy_effective_date)
14486: ) then
14487: --

Line 14485: ben_pd_copy_to_ben_one.g_copy_effective_date)

14481:
14482: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14483: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14484: r_ENT_unique.information3 >=
14485: ben_pd_copy_to_ben_one.g_copy_effective_date)
14486: ) then
14487: --
14488: hr_utility.set_location(' r_ENT_unique.table_route_id '||r_ENT_unique.table_route_id,10);
14489: hr_utility.set_location(' r_ENT_unique.information1 '||r_ENT_unique.information1,10);

Line 14503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14499: open c_ENT_min_max_dates(r_ENT_unique.table_route_id, r_ENT_unique.information1 ) ;
14500: fetch c_ENT_min_max_dates into l_min_esd,l_max_eed ;
14501: --
14502:
14503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14506: end if;
14507: l_min_esd := greatest(l_min_esd,r_ENT_unique.information2);

Line 14504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

14500: fetch c_ENT_min_max_dates into l_min_esd,l_max_eed ;
14501: --
14502:
14503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14506: end if;
14507: l_min_esd := greatest(l_min_esd,r_ENT_unique.information2);
14508: open c_ENT(r_ENT_unique.table_route_id,

Line 14505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

14501: --
14502:
14503: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14504: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14505: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14506: end if;
14507: l_min_esd := greatest(l_min_esd,r_ENT_unique.information2);
14508: open c_ENT(r_ENT_unique.table_route_id,
14509: r_ENT_unique.information1,

Line 14533: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

14529: l_object_found_in_target := TRUE;
14530: --
14531: if l_process_date between r_ENT_unique.information2 and r_ENT_unique.information3 then
14532: l_update := true;
14533: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'
14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;

Line 14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'

14530: --
14531: if l_process_date between r_ENT_unique.information2 and r_ENT_unique.information3 then
14532: l_update := true;
14533: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'
14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;

Line 14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;

14532: l_update := true;
14533: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'
14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;
14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;

Line 14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;

14533: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'
14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;
14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;
14541: --

Line 14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;

14534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID'
14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;
14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;
14541: --
14542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

14535: then
14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;
14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;
14541: --
14542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14543: --

Line 14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;

14536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENT_unique.information1 ;
14538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENT_unique.information1 ;
14539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;
14541: --
14542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14543: --
14544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 14544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

14540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENT_unique.table_route_id;
14541: --
14542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
14543: --
14544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
14545: --
14546: -- log_data('ENT',l_new_value,l_prefix || r_ENT_unique.name|| l_suffix,'REUSED');
14547: --
14548: end if ;

Line 14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

14572: p_from_date => l_min_esd,
14573: p_to_date => l_max_eed );
14574: if l_dt_rec_found THEN
14575: --END TEMPIK
14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then

14573: p_to_date => l_max_eed );
14574: if l_dt_rec_found THEN
14575: --END TEMPIK
14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;

14574: if l_dt_rec_found THEN
14575: --END TEMPIK
14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;

Line 14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;

14575: --END TEMPIK
14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --

Line 14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

14576: if r_ENT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --
14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

14577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PTIP_RT_ID' then
14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --
14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14585: --

Line 14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;

14578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT_unique.information1 ;
14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --
14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14585: --
14586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

14580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
14581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --
14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14585: --
14586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14587: end if ;
14588: --

Line 14586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

14582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14583: --
14584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
14585: --
14586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14587: end if ;
14588: --
14589: l_object_found_in_target := true ;
14590: --TEMPIK

Line 14620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14616: end if ;
14617: --
14618:
14619: l_effective_date := r_ENT.information2;
14620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14623: end if;
14624:

Line 14621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

14617: --
14618:
14619: l_effective_date := r_ENT.information2;
14620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14623: end if;
14624:
14625: if l_first_rec and not l_update then

Line 14622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

14618:
14619: l_effective_date := r_ENT.information2;
14620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
14623: end if;
14624:
14625: if l_first_rec and not l_update then
14626: -- Call Create routine.

Line 14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;

14677: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
14678: -- Update all relevent cer records with new pk_id
14679: hr_utility.set_location('Before plsql table ',222);
14680: hr_utility.set_location('new_value id '||l_enrld_anthr_ptip_rt_id,222);
14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;
14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;
14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;

Line 14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;

14678: -- Update all relevent cer records with new pk_id
14679: hr_utility.set_location('Before plsql table ',222);
14680: hr_utility.set_location('new_value id '||l_enrld_anthr_ptip_rt_id,222);
14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;
14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;
14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14686: hr_utility.set_location('After plsql table ',222);

Line 14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;

14679: hr_utility.set_location('Before plsql table ',222);
14680: hr_utility.set_location('new_value id '||l_enrld_anthr_ptip_rt_id,222);
14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;
14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;
14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14686: hr_utility.set_location('After plsql table ',222);
14687: --

Line 14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

14680: hr_utility.set_location('new_value id '||l_enrld_anthr_ptip_rt_id,222);
14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;
14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;
14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14686: hr_utility.set_location('After plsql table ',222);
14687: --
14688: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;

14681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PTIP_RT_ID' ;
14682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENT.information1 ;
14683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PTIP_RT_ID ;
14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14686: hr_utility.set_location('After plsql table ',222);
14687: --
14688: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14689: --

Line 14688: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

14684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
14685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENT_unique.table_route_id;
14686: hr_utility.set_location('After plsql table ',222);
14687: --
14688: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14689: --
14690: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14691: --
14692: else

Line 14690: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

14686: hr_utility.set_location('After plsql table ',222);
14687: --
14688: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
14689: --
14690: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
14691: --
14692: else
14693: --
14694: -- Call Update routine for the pk_id created in prev run .

Line 14806: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ENT',r_ent.information5 );

14802: end loop;
14803: --
14804: exception when others then
14805: --
14806: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ENT',r_ent.information5 );
14807: --
14808: end create_ENT_rows;
14809:
14810: ---------------------------------------------------------------

Line 14945: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

14941: end if ;
14942: -- End Prefix Sufix derivation
14943: for r_ENL_unique in c_unique_ENL('ENL') loop
14944:
14945: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14946: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14947: r_ENL_unique.information3 >=
14948: ben_pd_copy_to_ben_one.g_copy_effective_date)
14949: ) then

Line 14946: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14942: -- End Prefix Sufix derivation
14943: for r_ENL_unique in c_unique_ENL('ENL') loop
14944:
14945: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14946: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14947: r_ENL_unique.information3 >=
14948: ben_pd_copy_to_ben_one.g_copy_effective_date)
14949: ) then
14950: --

Line 14948: ben_pd_copy_to_ben_one.g_copy_effective_date)

14944:
14945: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
14946: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14947: r_ENL_unique.information3 >=
14948: ben_pd_copy_to_ben_one.g_copy_effective_date)
14949: ) then
14950: --
14951: hr_utility.set_location(' r_ENL_unique.table_route_id '||r_ENL_unique.table_route_id,10);
14952: hr_utility.set_location(' r_ENL_unique.information1 '||r_ENL_unique.information1,10);

Line 14965: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

14961: l_max_eed := null ;
14962: open c_ENL_min_max_dates(r_ENL_unique.table_route_id, r_ENL_unique.information1 ) ;
14963: fetch c_ENL_min_max_dates into l_min_esd,l_max_eed ;
14964:
14965: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14966: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14967: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14968: end if;
14969: l_min_esd := greatest(l_min_esd,r_ENL_unique.information2);

Line 14966: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

14962: open c_ENL_min_max_dates(r_ENL_unique.table_route_id, r_ENL_unique.information1 ) ;
14963: fetch c_ENL_min_max_dates into l_min_esd,l_max_eed ;
14964:
14965: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14966: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14967: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14968: end if;
14969: l_min_esd := greatest(l_min_esd,r_ENL_unique.information2);
14970: --

Line 14967: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

14963: fetch c_ENL_min_max_dates into l_min_esd,l_max_eed ;
14964:
14965: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
14966: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
14967: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
14968: end if;
14969: l_min_esd := greatest(l_min_esd,r_ENL_unique.information2);
14970: --
14971: open c_ENL(r_ENL_unique.table_route_id,

Line 14996: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

14992: l_object_found_in_target := TRUE;
14993: --
14994: if l_process_date between r_ENL_unique.information2 and r_ENL_unique.information3 then
14995: l_update := true;
14996: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'
14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;

Line 14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'

14993: --
14994: if l_process_date between r_ENL_unique.information2 and r_ENL_unique.information3 then
14995: l_update := true;
14996: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'
14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;

Line 14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;

14995: l_update := true;
14996: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'
14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;
15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;

Line 15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;

14996: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'
14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;
15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;
15004: --

Line 15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;

14997: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID'
14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;
15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;
15004: --
15005: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

14998: then
14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;
15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;
15004: --
15005: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15006: --

Line 15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;

14999: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15000: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ENL_unique.information1 ;
15001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ENL_unique.information1 ;
15002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;
15004: --
15005: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15006: --
15007: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 15007: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

15003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ENL_unique.table_route_id;
15004: --
15005: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15006: --
15007: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
15008: --
15009: -- log_data('ENL',l_new_value,l_prefix || r_ENL_unique.name|| l_suffix,'REUSED');
15010: --
15011: end if ;

Line 15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

15035: p_from_date => l_min_esd,
15036: p_to_date => l_max_eed );
15037: if l_dt_rec_found THEN
15038: --END TEMPIK
15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then

15036: p_to_date => l_max_eed );
15037: if l_dt_rec_found THEN
15038: --END TEMPIK
15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;

15037: if l_dt_rec_found THEN
15038: --END TEMPIK
15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;

Line 15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;

15038: --END TEMPIK
15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --

Line 15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

15039: if r_ENL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --
15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

15040: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PL_RT_ID' then
15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --
15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15048: --

Line 15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;

15041: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15042: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL_unique.information1 ;
15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --
15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15048: --
15049: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

15043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --
15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15048: --
15049: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15050: end if ;
15051: --

Line 15049: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

15045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15046: --
15047: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15048: --
15049: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15050: end if ;
15051: --
15052: l_object_found_in_target := true ;
15053: --TEMPIK

Line 15083: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15079: end if ;
15080: --
15081:
15082: l_effective_date := r_ENL.information2;
15083: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15084: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15085: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15086: end if;
15087:

Line 15084: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

15080: --
15081:
15082: l_effective_date := r_ENL.information2;
15083: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15084: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15085: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15086: end if;
15087:
15088: if l_first_rec and not l_update then

Line 15085: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

15081:
15082: l_effective_date := r_ENL.information2;
15083: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15084: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15085: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15086: end if;
15087:
15088: if l_first_rec and not l_update then
15089: -- Call Create routine.

Line 15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;

15139: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
15140: -- Update all relevent cer records with new pk_id
15141: hr_utility.set_location('Before plsql table ',222);
15142: hr_utility.set_location('new_value id '||l_enrld_anthr_pl_rt_id,222);
15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;
15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;
15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;

Line 15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;

15140: -- Update all relevent cer records with new pk_id
15141: hr_utility.set_location('Before plsql table ',222);
15142: hr_utility.set_location('new_value id '||l_enrld_anthr_pl_rt_id,222);
15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;
15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;
15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15148: hr_utility.set_location('After plsql table ',222);

Line 15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;

15141: hr_utility.set_location('Before plsql table ',222);
15142: hr_utility.set_location('new_value id '||l_enrld_anthr_pl_rt_id,222);
15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;
15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;
15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15148: hr_utility.set_location('After plsql table ',222);
15149: --

Line 15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

15142: hr_utility.set_location('new_value id '||l_enrld_anthr_pl_rt_id,222);
15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;
15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;
15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15148: hr_utility.set_location('After plsql table ',222);
15149: --
15150: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;

15143: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PL_RT_ID' ;
15144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ENL.information1 ;
15145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PL_RT_ID ;
15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15148: hr_utility.set_location('After plsql table ',222);
15149: --
15150: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15151: --

Line 15150: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

15146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ENL_unique.table_route_id;
15148: hr_utility.set_location('After plsql table ',222);
15149: --
15150: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15151: --
15152: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15153: --
15154: else

Line 15152: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

15148: hr_utility.set_location('After plsql table ',222);
15149: --
15150: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15151: --
15152: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15153: --
15154: else
15155: --
15156: -- Call Update routine for the pk_id created in prev run .

Line 15267: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ENL',r_enl.information5 );

15263: end loop;
15264: --
15265: exception when others then
15266: --
15267: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ENL',r_enl.information5 );
15268: --
15269: end create_ENL_rows;
15270:
15271: ---------------------------------------------------------------

Line 15406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

15402: end if ;
15403: -- End Prefix Sufix derivation
15404: for r_EAR_unique in c_unique_EAR('EAR') loop
15405:
15406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15408: r_EAR_unique.information3 >=
15409: ben_pd_copy_to_ben_one.g_copy_effective_date)
15410: ) then

Line 15407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15403: -- End Prefix Sufix derivation
15404: for r_EAR_unique in c_unique_EAR('EAR') loop
15405:
15406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15408: r_EAR_unique.information3 >=
15409: ben_pd_copy_to_ben_one.g_copy_effective_date)
15410: ) then
15411: --

Line 15409: ben_pd_copy_to_ben_one.g_copy_effective_date)

15405:
15406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15408: r_EAR_unique.information3 >=
15409: ben_pd_copy_to_ben_one.g_copy_effective_date)
15410: ) then
15411: --
15412: hr_utility.set_location(' r_EAR_unique.table_route_id '||r_EAR_unique.table_route_id,10);
15413: hr_utility.set_location(' r_EAR_unique.information1 '||r_EAR_unique.information1,10);

Line 15427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15423: open c_EAR_min_max_dates(r_EAR_unique.table_route_id, r_EAR_unique.information1 ) ;
15424: fetch c_EAR_min_max_dates into l_min_esd,l_max_eed ;
15425: --
15426:
15427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15430: end if;
15431: l_min_esd := greatest(l_min_esd,r_EAR_unique.information2);

Line 15428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

15424: fetch c_EAR_min_max_dates into l_min_esd,l_max_eed ;
15425: --
15426:
15427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15430: end if;
15431: l_min_esd := greatest(l_min_esd,r_EAR_unique.information2);
15432: open c_EAR(r_EAR_unique.table_route_id,

Line 15429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

15425: --
15426:
15427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15430: end if;
15431: l_min_esd := greatest(l_min_esd,r_EAR_unique.information2);
15432: open c_EAR(r_EAR_unique.table_route_id,
15433: r_EAR_unique.information1,

Line 15457: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

15453: l_object_found_in_target := TRUE;
15454: --
15455: if l_process_date between r_EAR_unique.information2 and r_EAR_unique.information3 then
15456: l_update := true;
15457: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'
15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;

Line 15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'

15454: --
15455: if l_process_date between r_EAR_unique.information2 and r_EAR_unique.information3 then
15456: l_update := true;
15457: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'
15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;

Line 15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;

15456: l_update := true;
15457: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'
15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;
15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;

Line 15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;

15457: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'
15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;
15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;
15465: --

Line 15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;

15458: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID'
15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;
15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;
15465: --
15466: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

15459: then
15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;
15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;
15465: --
15466: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15467: --

Line 15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;

15460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAR_unique.information1 ;
15462: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAR_unique.information1 ;
15463: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;
15465: --
15466: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15467: --
15468: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 15468: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

15464: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAR_unique.table_route_id;
15465: --
15466: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15467: --
15468: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
15469: --
15470: -- log_data('EAR',l_new_value,l_prefix || r_EAR_unique.name|| l_suffix,'REUSED');
15471: --
15472: end if ;

Line 15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

15496: p_from_date => l_min_esd,
15497: p_to_date => l_max_eed );
15498: if l_dt_rec_found THEN
15499: --END TEMPIK
15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then

15497: p_to_date => l_max_eed );
15498: if l_dt_rec_found THEN
15499: --END TEMPIK
15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;

15498: if l_dt_rec_found THEN
15499: --END TEMPIK
15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;

Line 15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;

15499: --END TEMPIK
15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --

Line 15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

15500: if r_EAR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --
15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

15501: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_PLIP_RT_ID' then
15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --
15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15509: --

Line 15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;

15502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR_unique.information1 ;
15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --
15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15509: --
15510: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

15504: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15505: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --
15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15509: --
15510: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15511: end if ;
15512: --

Line 15510: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

15506: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15507: --
15508: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15509: --
15510: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15511: end if ;
15512: --
15513: l_object_found_in_target := true ;
15514: --TEMPIK

Line 15544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15540: end if ;
15541: --
15542:
15543: l_effective_date := r_EAR.information2;
15544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15545: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15546: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15547: end if;
15548:

Line 15545: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

15541: --
15542:
15543: l_effective_date := r_EAR.information2;
15544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15545: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15546: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15547: end if;
15548:
15549: if l_first_rec and not l_update then

Line 15546: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

15542:
15543: l_effective_date := r_EAR.information2;
15544: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15545: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15546: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
15547: end if;
15548:
15549: if l_first_rec and not l_update then
15550: -- Call Create routine.

Line 15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;

15600: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
15601: -- Update all relevent cer records with new pk_id
15602: hr_utility.set_location('Before plsql table ',222);
15603: hr_utility.set_location('new_value id '||l_enrld_anthr_plip_rt_id,222);
15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;
15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;
15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;

Line 15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;

15601: -- Update all relevent cer records with new pk_id
15602: hr_utility.set_location('Before plsql table ',222);
15603: hr_utility.set_location('new_value id '||l_enrld_anthr_plip_rt_id,222);
15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;
15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;
15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15609: hr_utility.set_location('After plsql table ',222);

Line 15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;

15602: hr_utility.set_location('Before plsql table ',222);
15603: hr_utility.set_location('new_value id '||l_enrld_anthr_plip_rt_id,222);
15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;
15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;
15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15609: hr_utility.set_location('After plsql table ',222);
15610: --

Line 15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

15603: hr_utility.set_location('new_value id '||l_enrld_anthr_plip_rt_id,222);
15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;
15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;
15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15609: hr_utility.set_location('After plsql table ',222);
15610: --
15611: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;

15604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_PLIP_RT_ID' ;
15605: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAR.information1 ;
15606: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_PLIP_RT_ID ;
15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15609: hr_utility.set_location('After plsql table ',222);
15610: --
15611: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15612: --

Line 15611: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

15607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
15608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAR_unique.table_route_id;
15609: hr_utility.set_location('After plsql table ',222);
15610: --
15611: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15612: --
15613: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15614: --
15615: else

Line 15613: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

15609: hr_utility.set_location('After plsql table ',222);
15610: --
15611: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
15612: --
15613: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15614: --
15615: else
15616: --
15617: -- Call Update routine for the pk_id created in prev run .

Line 15728: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EAR',r_ear.information5 );

15724: end loop;
15725: --
15726: exception when others then
15727: --
15728: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EAR',r_ear.information5 );
15729: --
15730: end create_EAR_rows;
15731:
15732: ---------------------------------------------------------------

Line 15867: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

15863: end if ;
15864: -- End Prefix Sufix derivation
15865: for r_EAO_unique in c_unique_EAO('EAO') loop
15866:
15867: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15868: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15869: r_EAO_unique.information3 >=
15870: ben_pd_copy_to_ben_one.g_copy_effective_date)
15871: ) then

Line 15868: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15864: -- End Prefix Sufix derivation
15865: for r_EAO_unique in c_unique_EAO('EAO') loop
15866:
15867: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15868: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15869: r_EAO_unique.information3 >=
15870: ben_pd_copy_to_ben_one.g_copy_effective_date)
15871: ) then
15872: --

Line 15870: ben_pd_copy_to_ben_one.g_copy_effective_date)

15866:
15867: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
15868: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15869: r_EAO_unique.information3 >=
15870: ben_pd_copy_to_ben_one.g_copy_effective_date)
15871: ) then
15872: --
15873: hr_utility.set_location(' r_EAO_unique.table_route_id '||r_EAO_unique.table_route_id,10);
15874: hr_utility.set_location(' r_EAO_unique.information1 '||r_EAO_unique.information1,10);

Line 15888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

15884: open c_EAO_min_max_dates(r_EAO_unique.table_route_id, r_EAO_unique.information1 ) ;
15885: fetch c_EAO_min_max_dates into l_min_esd,l_max_eed ;
15886: --
15887:
15888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15889: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15890: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15891: end if;
15892: l_min_esd := greatest(l_min_esd,r_EAO_unique.information2);

Line 15889: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

15885: fetch c_EAO_min_max_dates into l_min_esd,l_max_eed ;
15886: --
15887:
15888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15889: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15890: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15891: end if;
15892: l_min_esd := greatest(l_min_esd,r_EAO_unique.information2);
15893: open c_EAO(r_EAO_unique.table_route_id,

Line 15890: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

15886: --
15887:
15888: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
15889: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
15890: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
15891: end if;
15892: l_min_esd := greatest(l_min_esd,r_EAO_unique.information2);
15893: open c_EAO(r_EAO_unique.table_route_id,
15894: r_EAO_unique.information1,

Line 15918: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

15914: l_object_found_in_target := TRUE;
15915: --
15916: if l_process_date between r_EAO_unique.information2 and r_EAO_unique.information3 then
15917: l_update := true;
15918: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'
15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;

Line 15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'

15915: --
15916: if l_process_date between r_EAO_unique.information2 and r_EAO_unique.information3 then
15917: l_update := true;
15918: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'
15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;

Line 15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;

15917: l_update := true;
15918: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'
15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;
15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;

Line 15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;

15918: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'
15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;
15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;
15926: --

Line 15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;

15919: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID'
15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;
15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;
15926: --
15927: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

15920: then
15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;
15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;
15926: --
15927: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15928: --

Line 15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;

15921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_EAO_unique.information1 ;
15923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_EAO_unique.information1 ;
15924: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;
15926: --
15927: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15928: --
15929: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 15929: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

15925: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_EAO_unique.table_route_id;
15926: --
15927: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
15928: --
15929: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
15930: --
15931: -- log_data('EAO',l_new_value,l_prefix || r_EAO_unique.name|| l_suffix,'REUSED');
15932: --
15933: end if ;

Line 15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

15957: p_from_date => l_min_esd,
15958: p_to_date => l_max_eed );
15959: if l_dt_rec_found THEN
15960: --END TEMPIK
15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then

15958: p_to_date => l_max_eed );
15959: if l_dt_rec_found THEN
15960: --END TEMPIK
15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;

15959: if l_dt_rec_found THEN
15960: --END TEMPIK
15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;

Line 15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;

15960: --END TEMPIK
15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --

Line 15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

15961: if r_EAO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --
15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

15962: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'ENRLD_ANTHR_OIPL_RT_ID' then
15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --
15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15970: --

Line 15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;

15963: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
15964: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO_unique.information1 ;
15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --
15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15970: --
15971: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

15965: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
15966: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --
15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15970: --
15971: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15972: end if ;
15973: --

Line 15971: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

15967: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
15968: --
15969: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
15970: --
15971: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
15972: end if ;
15973: --
15974: l_object_found_in_target := true ;
15975: --TEMPIK

Line 16005: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16001: end if ;
16002: --
16003:
16004: l_effective_date := r_EAO.information2;
16005: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16006: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16007: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16008: end if;
16009:

Line 16006: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

16002: --
16003:
16004: l_effective_date := r_EAO.information2;
16005: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16006: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16007: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16008: end if;
16009:
16010: if l_first_rec and not l_update then

Line 16007: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

16003:
16004: l_effective_date := r_EAO.information2;
16005: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16006: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16007: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16008: end if;
16009:
16010: if l_first_rec and not l_update then
16011: -- Call Create routine.

Line 16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;

16061: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
16062: -- Update all relevent cer records with new pk_id
16063: hr_utility.set_location('Before plsql table ',222);
16064: hr_utility.set_location('new_value id '||l_enrld_anthr_oipl_rt_id,222);
16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;
16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;
16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;

Line 16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;

16062: -- Update all relevent cer records with new pk_id
16063: hr_utility.set_location('Before plsql table ',222);
16064: hr_utility.set_location('new_value id '||l_enrld_anthr_oipl_rt_id,222);
16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;
16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;
16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
16070: hr_utility.set_location('After plsql table ',222);

Line 16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;

16063: hr_utility.set_location('Before plsql table ',222);
16064: hr_utility.set_location('new_value id '||l_enrld_anthr_oipl_rt_id,222);
16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;
16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;
16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
16070: hr_utility.set_location('After plsql table ',222);
16071: --

Line 16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

16064: hr_utility.set_location('new_value id '||l_enrld_anthr_oipl_rt_id,222);
16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;
16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;
16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
16070: hr_utility.set_location('After plsql table ',222);
16071: --
16072: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;

16065: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'ENRLD_ANTHR_OIPL_RT_ID' ;
16066: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_EAO.information1 ;
16067: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_ENRLD_ANTHR_OIPL_RT_ID ;
16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
16070: hr_utility.set_location('After plsql table ',222);
16071: --
16072: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16073: --

Line 16072: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

16068: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16069: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_EAO_unique.table_route_id;
16070: hr_utility.set_location('After plsql table ',222);
16071: --
16072: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16073: --
16074: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16075: --
16076: else

Line 16074: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

16070: hr_utility.set_location('After plsql table ',222);
16071: --
16072: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16073: --
16074: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16075: --
16076: else
16077: --
16078: -- Call Update routine for the pk_id created in prev run .

Line 16189: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EAO',r_eao.information5 );

16185: end loop;
16186: --
16187: exception when others then
16188: --
16189: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'EAO',r_eao.information5 );
16190: --
16191: end create_EAO_rows;
16192:
16193: ---------------------------------------------------------------

Line 16328: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

16324: end if ;
16325: -- End Prefix Sufix derivation
16326: for r_DOT_unique in c_unique_DOT('DOT') loop
16327:
16328: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16329: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16330: r_DOT_unique.information3 >=
16331: ben_pd_copy_to_ben_one.g_copy_effective_date)
16332: ) then

Line 16329: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16325: -- End Prefix Sufix derivation
16326: for r_DOT_unique in c_unique_DOT('DOT') loop
16327:
16328: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16329: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16330: r_DOT_unique.information3 >=
16331: ben_pd_copy_to_ben_one.g_copy_effective_date)
16332: ) then
16333: --

Line 16331: ben_pd_copy_to_ben_one.g_copy_effective_date)

16327:
16328: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16329: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16330: r_DOT_unique.information3 >=
16331: ben_pd_copy_to_ben_one.g_copy_effective_date)
16332: ) then
16333: --
16334: hr_utility.set_location(' r_DOT_unique.table_route_id '||r_DOT_unique.table_route_id,10);
16335: hr_utility.set_location(' r_DOT_unique.information1 '||r_DOT_unique.information1,10);

Line 16349: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16345: open c_DOT_min_max_dates(r_DOT_unique.table_route_id, r_DOT_unique.information1 ) ;
16346: fetch c_DOT_min_max_dates into l_min_esd,l_max_eed ;
16347: --
16348:
16349: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16350: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16351: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16352: end if;
16353: l_min_esd := greatest(l_min_esd,r_DOT_unique.information2);

Line 16350: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

16346: fetch c_DOT_min_max_dates into l_min_esd,l_max_eed ;
16347: --
16348:
16349: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16350: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16351: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16352: end if;
16353: l_min_esd := greatest(l_min_esd,r_DOT_unique.information2);
16354: open c_DOT(r_DOT_unique.table_route_id,

Line 16351: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

16347: --
16348:
16349: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16350: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16351: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16352: end if;
16353: l_min_esd := greatest(l_min_esd,r_DOT_unique.information2);
16354: open c_DOT(r_DOT_unique.table_route_id,
16355: r_DOT_unique.information1,

Line 16379: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

16375: l_object_found_in_target := TRUE;
16376: --
16377: if l_process_date between r_DOT_unique.information2 and r_DOT_unique.information3 then
16378: l_update := true;
16379: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'
16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;

Line 16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'

16376: --
16377: if l_process_date between r_DOT_unique.information2 and r_DOT_unique.information3 then
16378: l_update := true;
16379: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'
16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;

Line 16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;

16378: l_update := true;
16379: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'
16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;
16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;

Line 16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;

16379: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'
16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;
16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;
16387: --

Line 16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;

16380: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID'
16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;
16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;
16387: --
16388: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

16381: then
16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;
16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;
16387: --
16388: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16389: --

Line 16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;

16382: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16383: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOT_unique.information1 ;
16384: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOT_unique.information1 ;
16385: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;
16387: --
16388: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16389: --
16390: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 16390: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

16386: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOT_unique.table_route_id;
16387: --
16388: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16389: --
16390: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
16391: --
16392: -- log_data('DOT',l_new_value,l_prefix || r_DOT_unique.name|| l_suffix,'REUSED');
16393: --
16394: end if ;

Line 16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

16418: p_from_date => l_min_esd,
16419: p_to_date => l_max_eed );
16420: if l_dt_rec_found THEN
16421: --END TEMPIK
16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then

16419: p_to_date => l_max_eed );
16420: if l_dt_rec_found THEN
16421: --END TEMPIK
16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;

16420: if l_dt_rec_found THEN
16421: --END TEMPIK
16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;

Line 16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;

16421: --END TEMPIK
16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --

Line 16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

16422: if r_DOT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --
16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

16423: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_OTHR_PTIP_RT_ID' then
16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --
16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16431: --

Line 16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;

16424: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16425: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT_unique.information1 ;
16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --
16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16431: --
16432: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

16426: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --
16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16431: --
16432: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16433: end if ;
16434: --

Line 16432: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

16428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16429: --
16430: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16431: --
16432: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16433: end if ;
16434: --
16435: l_object_found_in_target := true ;
16436: --TEMPIK

Line 16466: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16462: end if ;
16463: --
16464:
16465: l_effective_date := r_DOT.information2;
16466: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16467: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16468: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16469: end if;
16470:

Line 16467: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

16463: --
16464:
16465: l_effective_date := r_DOT.information2;
16466: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16467: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16468: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16469: end if;
16470:
16471: if l_first_rec and not l_update then

Line 16468: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

16464:
16465: l_effective_date := r_DOT.information2;
16466: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16467: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16468: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16469: end if;
16470:
16471: if l_first_rec and not l_update then
16472: -- Call Create routine.

Line 16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;

16521: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
16522: -- Update all relevent cer records with new pk_id
16523: hr_utility.set_location('Before plsql table ',222);
16524: hr_utility.set_location('new_value id '||l_dpnt_othr_ptip_rt_id,222);
16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;
16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;
16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;

Line 16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;

16522: -- Update all relevent cer records with new pk_id
16523: hr_utility.set_location('Before plsql table ',222);
16524: hr_utility.set_location('new_value id '||l_dpnt_othr_ptip_rt_id,222);
16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;
16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;
16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16530: hr_utility.set_location('After plsql table ',222);

Line 16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;

16523: hr_utility.set_location('Before plsql table ',222);
16524: hr_utility.set_location('new_value id '||l_dpnt_othr_ptip_rt_id,222);
16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;
16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;
16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16530: hr_utility.set_location('After plsql table ',222);
16531: --

Line 16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

16524: hr_utility.set_location('new_value id '||l_dpnt_othr_ptip_rt_id,222);
16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;
16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;
16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16530: hr_utility.set_location('After plsql table ',222);
16531: --
16532: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;

16525: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_OTHR_PTIP_RT_ID' ;
16526: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOT.information1 ;
16527: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_OTHR_PTIP_RT_ID ;
16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16530: hr_utility.set_location('After plsql table ',222);
16531: --
16532: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16533: --

Line 16532: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

16528: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16529: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOT_unique.table_route_id;
16530: hr_utility.set_location('After plsql table ',222);
16531: --
16532: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16533: --
16534: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16535: --
16536: else

Line 16534: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

16530: hr_utility.set_location('After plsql table ',222);
16531: --
16532: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16533: --
16534: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16535: --
16536: else
16537: --
16538: -- Call Update routine for the pk_id created in prev run .

Line 16648: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DOT',r_dot.information5 );

16644: end loop;
16645: --
16646: exception when others then
16647: --
16648: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DOT',r_dot.information5 );
16649: --
16650: end create_DOT_rows;
16651:
16652: ---------------------------------------------------------------

Line 16787: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

16783: end if ;
16784: -- End Prefix Sufix derivation
16785: for r_DOP_unique in c_unique_DOP('DOP') loop
16786:
16787: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16788: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16789: r_DOP_unique.information3 >=
16790: ben_pd_copy_to_ben_one.g_copy_effective_date)
16791: ) then

Line 16788: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16784: -- End Prefix Sufix derivation
16785: for r_DOP_unique in c_unique_DOP('DOP') loop
16786:
16787: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16788: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16789: r_DOP_unique.information3 >=
16790: ben_pd_copy_to_ben_one.g_copy_effective_date)
16791: ) then
16792: --

Line 16790: ben_pd_copy_to_ben_one.g_copy_effective_date)

16786:
16787: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
16788: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16789: r_DOP_unique.information3 >=
16790: ben_pd_copy_to_ben_one.g_copy_effective_date)
16791: ) then
16792: --
16793: hr_utility.set_location(' r_DOP_unique.table_route_id '||r_DOP_unique.table_route_id,10);
16794: hr_utility.set_location(' r_DOP_unique.information1 '||r_DOP_unique.information1,10);

Line 16808: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16804: open c_DOP_min_max_dates(r_DOP_unique.table_route_id, r_DOP_unique.information1 ) ;
16805: fetch c_DOP_min_max_dates into l_min_esd,l_max_eed ;
16806: --
16807:
16808: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16809: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16810: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16811: end if;
16812: l_min_esd := greatest(l_min_esd,r_DOP_unique.information2);

Line 16809: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

16805: fetch c_DOP_min_max_dates into l_min_esd,l_max_eed ;
16806: --
16807:
16808: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16809: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16810: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16811: end if;
16812: l_min_esd := greatest(l_min_esd,r_DOP_unique.information2);
16813: open c_DOP(r_DOP_unique.table_route_id,

Line 16810: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

16806: --
16807:
16808: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16809: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16810: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
16811: end if;
16812: l_min_esd := greatest(l_min_esd,r_DOP_unique.information2);
16813: open c_DOP(r_DOP_unique.table_route_id,
16814: r_DOP_unique.information1,

Line 16838: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

16834: l_object_found_in_target := TRUE;
16835: --
16836: if l_process_date between r_DOP_unique.information2 and r_DOP_unique.information3 then
16837: l_update := true;
16838: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'
16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;

Line 16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'

16835: --
16836: if l_process_date between r_DOP_unique.information2 and r_DOP_unique.information3 then
16837: l_update := true;
16838: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'
16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;

Line 16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;

16837: l_update := true;
16838: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'
16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;
16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;

Line 16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;

16838: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'
16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;
16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;
16846: --

Line 16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;

16839: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID'
16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;
16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;
16846: --
16847: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

16840: then
16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;
16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;
16846: --
16847: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16848: --

Line 16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;

16841: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16842: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DOP_unique.information1 ;
16843: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DOP_unique.information1 ;
16844: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;
16846: --
16847: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16848: --
16849: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 16849: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

16845: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DOP_unique.table_route_id;
16846: --
16847: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
16848: --
16849: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
16850: --
16851: -- log_data('DOP',l_new_value,l_prefix || r_DOP_unique.name|| l_suffix,'REUSED');
16852: --
16853: end if ;

Line 16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

16877: p_from_date => l_min_esd,
16878: p_to_date => l_max_eed );
16879: if l_dt_rec_found THEN
16880: --END TEMPIK
16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then

16878: p_to_date => l_max_eed );
16879: if l_dt_rec_found THEN
16880: --END TEMPIK
16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;

16879: if l_dt_rec_found THEN
16880: --END TEMPIK
16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;

Line 16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;

16880: --END TEMPIK
16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --

Line 16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

16881: if r_DOP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --
16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

16882: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PGM_RT_ID' then
16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --
16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16890: --

Line 16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;

16883: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16884: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP_unique.information1 ;
16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --
16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16890: --
16891: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

16885: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
16886: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --
16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16890: --
16891: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16892: end if ;
16893: --

Line 16891: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

16887: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16888: --
16889: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
16890: --
16891: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16892: end if ;
16893: --
16894: l_object_found_in_target := true ;
16895: --TEMPIK

Line 16925: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

16921: end if ;
16922: --
16923:
16924: l_effective_date := r_DOP.information2;
16925: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16926: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16927: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16928: end if;
16929:

Line 16926: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

16922: --
16923:
16924: l_effective_date := r_DOP.information2;
16925: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16926: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16927: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16928: end if;
16929:
16930: if l_first_rec and not l_update then

Line 16927: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

16923:
16924: l_effective_date := r_DOP.information2;
16925: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
16926: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
16927: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
16928: end if;
16929:
16930: if l_first_rec and not l_update then
16931: -- Call Create routine.

Line 16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;

16982: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
16983: -- Update all relevent cer records with new pk_id
16984: hr_utility.set_location('Before plsql table ',222);
16985: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pgm_rt_id,222);
16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;
16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;
16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;

Line 16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;

16983: -- Update all relevent cer records with new pk_id
16984: hr_utility.set_location('Before plsql table ',222);
16985: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pgm_rt_id,222);
16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;
16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;
16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16991: hr_utility.set_location('After plsql table ',222);

Line 16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;

16984: hr_utility.set_location('Before plsql table ',222);
16985: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pgm_rt_id,222);
16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;
16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;
16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16991: hr_utility.set_location('After plsql table ',222);
16992: --

Line 16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

16985: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pgm_rt_id,222);
16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;
16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;
16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16991: hr_utility.set_location('After plsql table ',222);
16992: --
16993: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;

16986: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PGM_RT_ID' ;
16987: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DOP.information1 ;
16988: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PGM_RT_ID ;
16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16991: hr_utility.set_location('After plsql table ',222);
16992: --
16993: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16994: --

Line 16993: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

16989: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
16990: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DOP_unique.table_route_id;
16991: hr_utility.set_location('After plsql table ',222);
16992: --
16993: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16994: --
16995: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16996: --
16997: else

Line 16995: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

16991: hr_utility.set_location('After plsql table ',222);
16992: --
16993: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
16994: --
16995: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
16996: --
16997: else
16998: --
16999: -- Call Update routine for the pk_id created in prev run .

Line 17111: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DOP',r_dop.information5 );

17107: end loop;
17108: --
17109: exception when others then
17110: --
17111: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DOP',r_dop.information5 );
17112: --
17113: end create_DOP_rows;
17114:
17115: ---------------------------------------------------------------

Line 17250: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

17246: end if ;
17247: -- End Prefix Sufix derivation
17248: for r_DCP_unique in c_unique_DCP('DCP') loop
17249:
17250: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17251: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17252: r_DCP_unique.information3 >=
17253: ben_pd_copy_to_ben_one.g_copy_effective_date)
17254: ) then

Line 17251: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17247: -- End Prefix Sufix derivation
17248: for r_DCP_unique in c_unique_DCP('DCP') loop
17249:
17250: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17251: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17252: r_DCP_unique.information3 >=
17253: ben_pd_copy_to_ben_one.g_copy_effective_date)
17254: ) then
17255: --

Line 17253: ben_pd_copy_to_ben_one.g_copy_effective_date)

17249:
17250: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17251: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17252: r_DCP_unique.information3 >=
17253: ben_pd_copy_to_ben_one.g_copy_effective_date)
17254: ) then
17255: --
17256: hr_utility.set_location(' r_DCP_unique.table_route_id '||r_DCP_unique.table_route_id,10);
17257: hr_utility.set_location(' r_DCP_unique.information1 '||r_DCP_unique.information1,10);

Line 17271: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17267: open c_DCP_min_max_dates(r_DCP_unique.table_route_id, r_DCP_unique.information1 ) ;
17268: fetch c_DCP_min_max_dates into l_min_esd,l_max_eed ;
17269: --
17270:
17271: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17272: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17273: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17274: end if;
17275: l_min_esd := greatest(l_min_esd,r_DCP_unique.information2);

Line 17272: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

17268: fetch c_DCP_min_max_dates into l_min_esd,l_max_eed ;
17269: --
17270:
17271: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17272: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17273: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17274: end if;
17275: l_min_esd := greatest(l_min_esd,r_DCP_unique.information2);
17276: open c_DCP(r_DCP_unique.table_route_id,

Line 17273: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

17269: --
17270:
17271: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17272: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17273: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17274: end if;
17275: l_min_esd := greatest(l_min_esd,r_DCP_unique.information2);
17276: open c_DCP(r_DCP_unique.table_route_id,
17277: r_DCP_unique.information1,

Line 17301: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

17297: l_object_found_in_target := TRUE;
17298: --
17299: if l_process_date between r_DCP_unique.information2 and r_DCP_unique.information3 then
17300: l_update := true;
17301: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'
17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;

Line 17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'

17298: --
17299: if l_process_date between r_DCP_unique.information2 and r_DCP_unique.information3 then
17300: l_update := true;
17301: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'
17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;

Line 17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;

17300: l_update := true;
17301: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'
17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;
17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;

Line 17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;

17301: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'
17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;
17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;
17309: --

Line 17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;

17302: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID'
17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;
17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;
17309: --
17310: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

17303: then
17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;
17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;
17309: --
17310: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17311: --

Line 17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;

17304: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17305: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCP_unique.information1 ;
17306: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCP_unique.information1 ;
17307: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;
17309: --
17310: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17311: --
17312: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 17312: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

17308: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCP_unique.table_route_id;
17309: --
17310: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17311: --
17312: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
17313: --
17314: -- log_data('DCP',l_new_value,l_prefix || r_DCP_unique.name|| l_suffix,'REUSED');
17315: --
17316: end if ;

Line 17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

17340: p_from_date => l_min_esd,
17341: p_to_date => l_max_eed );
17342: if l_dt_rec_found THEN
17343: --END TEMPIK
17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then

17341: p_to_date => l_max_eed );
17342: if l_dt_rec_found THEN
17343: --END TEMPIK
17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;

17342: if l_dt_rec_found THEN
17343: --END TEMPIK
17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;

Line 17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;

17343: --END TEMPIK
17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --

Line 17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

17344: if r_DCP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --
17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

17345: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_PLIP_RT_ID' then
17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --
17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17353: --

Line 17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;

17346: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17347: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP_unique.information1 ;
17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --
17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17353: --
17354: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

17348: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17349: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --
17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17353: --
17354: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17355: end if ;
17356: --

Line 17354: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

17350: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17351: --
17352: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17353: --
17354: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17355: end if ;
17356: --
17357: l_object_found_in_target := true ;
17358: --TEMPIK

Line 17388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17384: end if ;
17385: --
17386:
17387: l_effective_date := r_DCP.information2;
17388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17389: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17390: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17391: end if;
17392:

Line 17389: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

17385: --
17386:
17387: l_effective_date := r_DCP.information2;
17388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17389: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17390: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17391: end if;
17392:
17393: if l_first_rec and not l_update then

Line 17390: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

17386:
17387: l_effective_date := r_DCP.information2;
17388: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17389: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17390: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17391: end if;
17392:
17393: if l_first_rec and not l_update then
17394: -- Call Create routine.

Line 17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;

17444: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
17445: -- Update all relevent cer records with new pk_id
17446: hr_utility.set_location('Before plsql table ',222);
17447: hr_utility.set_location('new_value id '||l_dpnt_cvrd_plip_rt_id,222);
17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;
17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;
17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;

Line 17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;

17445: -- Update all relevent cer records with new pk_id
17446: hr_utility.set_location('Before plsql table ',222);
17447: hr_utility.set_location('new_value id '||l_dpnt_cvrd_plip_rt_id,222);
17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;
17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;
17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17453: hr_utility.set_location('After plsql table ',222);

Line 17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;

17446: hr_utility.set_location('Before plsql table ',222);
17447: hr_utility.set_location('new_value id '||l_dpnt_cvrd_plip_rt_id,222);
17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;
17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;
17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17453: hr_utility.set_location('After plsql table ',222);
17454: --

Line 17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

17447: hr_utility.set_location('new_value id '||l_dpnt_cvrd_plip_rt_id,222);
17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;
17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;
17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17453: hr_utility.set_location('After plsql table ',222);
17454: --
17455: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;

17448: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_PLIP_RT_ID' ;
17449: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCP.information1 ;
17450: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_PLIP_RT_ID ;
17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17453: hr_utility.set_location('After plsql table ',222);
17454: --
17455: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17456: --

Line 17455: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

17451: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17452: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCP_unique.table_route_id;
17453: hr_utility.set_location('After plsql table ',222);
17454: --
17455: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17456: --
17457: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17458: --
17459: else

Line 17457: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

17453: hr_utility.set_location('After plsql table ',222);
17454: --
17455: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17456: --
17457: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17458: --
17459: else
17460: --
17461: -- Call Update routine for the pk_id created in prev run .

Line 17572: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCP',r_dcp.information5 );

17568: end loop;
17569: --
17570: exception when others then
17571: --
17572: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCP',r_dcp.information5 );
17573: --
17574: end create_DCP_rows;
17575:
17576: ---------------------------------------------------------------

Line 17711: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

17707: end if ;
17708: -- End Prefix Sufix derivation
17709: for r_DCO_unique in c_unique_DCO('DCO') loop
17710:
17711: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17712: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17713: r_DCO_unique.information3 >=
17714: ben_pd_copy_to_ben_one.g_copy_effective_date)
17715: ) then

Line 17712: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17708: -- End Prefix Sufix derivation
17709: for r_DCO_unique in c_unique_DCO('DCO') loop
17710:
17711: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17712: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17713: r_DCO_unique.information3 >=
17714: ben_pd_copy_to_ben_one.g_copy_effective_date)
17715: ) then
17716: --

Line 17714: ben_pd_copy_to_ben_one.g_copy_effective_date)

17710:
17711: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
17712: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17713: r_DCO_unique.information3 >=
17714: ben_pd_copy_to_ben_one.g_copy_effective_date)
17715: ) then
17716: --
17717: hr_utility.set_location(' r_DCO_unique.table_route_id '||r_DCO_unique.table_route_id,10);
17718: hr_utility.set_location(' r_DCO_unique.information1 '||r_DCO_unique.information1,10);

Line 17732: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17728: open c_DCO_min_max_dates(r_DCO_unique.table_route_id, r_DCO_unique.information1 ) ;
17729: fetch c_DCO_min_max_dates into l_min_esd,l_max_eed ;
17730: --
17731:
17732: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17733: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17734: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17735: end if;
17736: l_min_esd := greatest(l_min_esd,r_DCO_unique.information2);

Line 17733: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

17729: fetch c_DCO_min_max_dates into l_min_esd,l_max_eed ;
17730: --
17731:
17732: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17733: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17734: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17735: end if;
17736: l_min_esd := greatest(l_min_esd,r_DCO_unique.information2);
17737: open c_DCO(r_DCO_unique.table_route_id,

Line 17734: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

17730: --
17731:
17732: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17733: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17734: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
17735: end if;
17736: l_min_esd := greatest(l_min_esd,r_DCO_unique.information2);
17737: open c_DCO(r_DCO_unique.table_route_id,
17738: r_DCO_unique.information1,

Line 17762: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

17758: l_object_found_in_target := TRUE;
17759: --
17760: if l_process_date between r_DCO_unique.information2 and r_DCO_unique.information3 then
17761: l_update := true;
17762: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'
17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;

Line 17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'

17759: --
17760: if l_process_date between r_DCO_unique.information2 and r_DCO_unique.information3 then
17761: l_update := true;
17762: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'
17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;

Line 17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;

17761: l_update := true;
17762: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'
17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;
17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;

Line 17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;

17762: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'
17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;
17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;
17770: --

Line 17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;

17763: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID'
17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;
17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;
17770: --
17771: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

17764: then
17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;
17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;
17770: --
17771: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17772: --

Line 17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;

17765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17766: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCO_unique.information1 ;
17767: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCO_unique.information1 ;
17768: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;
17770: --
17771: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17772: --
17773: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 17773: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

17769: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCO_unique.table_route_id;
17770: --
17771: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
17772: --
17773: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
17774: --
17775: -- log_data('DCO',l_new_value,l_prefix || r_DCO_unique.name|| l_suffix,'REUSED');
17776: --
17777: end if ;

Line 17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

17801: p_from_date => l_min_esd,
17802: p_to_date => l_max_eed );
17803: if l_dt_rec_found THEN
17804: --END TEMPIK
17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then

17802: p_to_date => l_max_eed );
17803: if l_dt_rec_found THEN
17804: --END TEMPIK
17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;

17803: if l_dt_rec_found THEN
17804: --END TEMPIK
17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;

Line 17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;

17804: --END TEMPIK
17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --

Line 17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

17805: if r_DCO_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --
17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

17806: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PTIP_RT_ID' then
17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --
17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17814: --

Line 17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;

17807: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17808: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO_unique.information1 ;
17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --
17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17814: --
17815: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

17809: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
17810: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --
17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17814: --
17815: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17816: end if ;
17817: --

Line 17815: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

17811: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17812: --
17813: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
17814: --
17815: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17816: end if ;
17817: --
17818: l_object_found_in_target := true ;
17819: --TEMPIK

Line 17849: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

17845: end if ;
17846: --
17847:
17848: l_effective_date := r_DCO.information2;
17849: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17850: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17851: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17852: end if;
17853:

Line 17850: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

17846: --
17847:
17848: l_effective_date := r_DCO.information2;
17849: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17850: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17851: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17852: end if;
17853:
17854: if l_first_rec and not l_update then

Line 17851: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

17847:
17848: l_effective_date := r_DCO.information2;
17849: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
17850: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
17851: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
17852: end if;
17853:
17854: if l_first_rec and not l_update then
17855: -- Call Create routine.

Line 17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;

17906: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
17907: -- Update all relevent cer records with new pk_id
17908: hr_utility.set_location('Before plsql table ',222);
17909: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_ptip_rt_id,222);
17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;
17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;
17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;

Line 17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;

17907: -- Update all relevent cer records with new pk_id
17908: hr_utility.set_location('Before plsql table ',222);
17909: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_ptip_rt_id,222);
17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;
17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;
17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17915: hr_utility.set_location('After plsql table ',222);

Line 17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;

17908: hr_utility.set_location('Before plsql table ',222);
17909: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_ptip_rt_id,222);
17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;
17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;
17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17915: hr_utility.set_location('After plsql table ',222);
17916: --

Line 17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

17909: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_ptip_rt_id,222);
17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;
17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;
17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17915: hr_utility.set_location('After plsql table ',222);
17916: --
17917: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;

17910: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PTIP_RT_ID' ;
17911: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCO.information1 ;
17912: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PTIP_RT_ID ;
17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17915: hr_utility.set_location('After plsql table ',222);
17916: --
17917: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17918: --

Line 17917: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

17913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
17914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCO_unique.table_route_id;
17915: hr_utility.set_location('After plsql table ',222);
17916: --
17917: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17918: --
17919: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17920: --
17921: else

Line 17919: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

17915: hr_utility.set_location('After plsql table ',222);
17916: --
17917: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
17918: --
17919: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
17920: --
17921: else
17922: --
17923: -- Call Update routine for the pk_id created in prev run .

Line 18035: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCO',r_dco.information5 );

18031: end loop;
18032: --
18033: exception when others then
18034: --
18035: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCO',r_dco.information5 );
18036: --
18037: end create_DCO_rows;
18038:
18039: ---------------------------------------------------------------

Line 18174: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

18170: end if ;
18171: -- End Prefix Sufix derivation
18172: for r_DCL_unique in c_unique_DCL('DCL') loop
18173:
18174: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18175: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18176: r_DCL_unique.information3 >=
18177: ben_pd_copy_to_ben_one.g_copy_effective_date)
18178: ) then

Line 18175: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18171: -- End Prefix Sufix derivation
18172: for r_DCL_unique in c_unique_DCL('DCL') loop
18173:
18174: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18175: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18176: r_DCL_unique.information3 >=
18177: ben_pd_copy_to_ben_one.g_copy_effective_date)
18178: ) then
18179: --

Line 18177: ben_pd_copy_to_ben_one.g_copy_effective_date)

18173:
18174: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18175: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18176: r_DCL_unique.information3 >=
18177: ben_pd_copy_to_ben_one.g_copy_effective_date)
18178: ) then
18179: --
18180: hr_utility.set_location(' r_DCL_unique.table_route_id '||r_DCL_unique.table_route_id,10);
18181: hr_utility.set_location(' r_DCL_unique.information1 '||r_DCL_unique.information1,10);

Line 18195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18191: open c_DCL_min_max_dates(r_DCL_unique.table_route_id, r_DCL_unique.information1 ) ;
18192: fetch c_DCL_min_max_dates into l_min_esd,l_max_eed ;
18193: --
18194:
18195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18196: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18197: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18198: end if;
18199: l_min_esd := greatest(l_min_esd,r_DCL_unique.information2);

Line 18196: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

18192: fetch c_DCL_min_max_dates into l_min_esd,l_max_eed ;
18193: --
18194:
18195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18196: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18197: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18198: end if;
18199: l_min_esd := greatest(l_min_esd,r_DCL_unique.information2);
18200: open c_DCL(r_DCL_unique.table_route_id,

Line 18197: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

18193: --
18194:
18195: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18196: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18197: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18198: end if;
18199: l_min_esd := greatest(l_min_esd,r_DCL_unique.information2);
18200: open c_DCL(r_DCL_unique.table_route_id,
18201: r_DCL_unique.information1,

Line 18225: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

18221: l_object_found_in_target := TRUE;
18222: --
18223: if l_process_date between r_DCL_unique.information2 and r_DCL_unique.information3 then
18224: l_update := true;
18225: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'
18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;

Line 18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'

18222: --
18223: if l_process_date between r_DCL_unique.information2 and r_DCL_unique.information3 then
18224: l_update := true;
18225: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'
18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;

Line 18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;

18224: l_update := true;
18225: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'
18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;
18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;

Line 18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;

18225: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'
18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;
18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;
18233: --

Line 18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;

18226: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID'
18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;
18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;
18233: --
18234: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

18227: then
18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;
18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;
18233: --
18234: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18235: --

Line 18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;

18228: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18229: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_DCL_unique.information1 ;
18230: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_DCL_unique.information1 ;
18231: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;
18233: --
18234: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18235: --
18236: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 18236: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

18232: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_DCL_unique.table_route_id;
18233: --
18234: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18235: --
18236: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
18237: --
18238: -- log_data('DCL',l_new_value,l_prefix || r_DCL_unique.name|| l_suffix,'REUSED');
18239: --
18240: end if ;

Line 18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

18264: p_from_date => l_min_esd,
18265: p_to_date => l_max_eed );
18266: if l_dt_rec_found THEN
18267: --END TEMPIK
18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then

18265: p_to_date => l_max_eed );
18266: if l_dt_rec_found THEN
18267: --END TEMPIK
18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;

18266: if l_dt_rec_found THEN
18267: --END TEMPIK
18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;

Line 18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;

18267: --END TEMPIK
18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --

Line 18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

18268: if r_DCL_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --
18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

18269: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'DPNT_CVRD_OTHR_PL_RT_ID' then
18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --
18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18277: --

Line 18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;

18270: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18271: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL_unique.information1 ;
18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --
18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18277: --
18278: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

18272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --
18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18277: --
18278: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18279: end if ;
18280: --

Line 18278: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

18274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18275: --
18276: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18277: --
18278: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18279: end if ;
18280: --
18281: l_object_found_in_target := true ;
18282: --TEMPIK

Line 18312: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18308: end if ;
18309: --
18310:
18311: l_effective_date := r_DCL.information2;
18312: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18313: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18314: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18315: end if;
18316:

Line 18313: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

18309: --
18310:
18311: l_effective_date := r_DCL.information2;
18312: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18313: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18314: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18315: end if;
18316:
18317: if l_first_rec and not l_update then

Line 18314: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

18310:
18311: l_effective_date := r_DCL.information2;
18312: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18313: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18314: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18315: end if;
18316:
18317: if l_first_rec and not l_update then
18318: -- Call Create routine.

Line 18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;

18368: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
18369: -- Update all relevent cer records with new pk_id
18370: hr_utility.set_location('Before plsql table ',222);
18371: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pl_rt_id,222);
18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;
18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;
18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;

Line 18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;

18369: -- Update all relevent cer records with new pk_id
18370: hr_utility.set_location('Before plsql table ',222);
18371: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pl_rt_id,222);
18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;
18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;
18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18377: hr_utility.set_location('After plsql table ',222);

Line 18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;

18370: hr_utility.set_location('Before plsql table ',222);
18371: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pl_rt_id,222);
18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;
18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;
18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18377: hr_utility.set_location('After plsql table ',222);
18378: --

Line 18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

18371: hr_utility.set_location('new_value id '||l_dpnt_cvrd_othr_pl_rt_id,222);
18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;
18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;
18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18377: hr_utility.set_location('After plsql table ',222);
18378: --
18379: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;

18372: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'DPNT_CVRD_OTHR_PL_RT_ID' ;
18373: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_DCL.information1 ;
18374: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_DPNT_CVRD_OTHR_PL_RT_ID ;
18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18377: hr_utility.set_location('After plsql table ',222);
18378: --
18379: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18380: --

Line 18379: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

18375: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18376: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_DCL_unique.table_route_id;
18377: hr_utility.set_location('After plsql table ',222);
18378: --
18379: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18380: --
18381: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18382: --
18383: else

Line 18381: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

18377: hr_utility.set_location('After plsql table ',222);
18378: --
18379: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18380: --
18381: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18382: --
18383: else
18384: --
18385: -- Call Update routine for the pk_id created in prev run .

Line 18496: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCL',r_dcl.information5 );

18492: end loop;
18493: --
18494: exception when others then
18495: --
18496: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'DCL',r_dcl.information5 );
18497: --
18498: end create_DCL_rows;
18499:
18500: ---------------------------------------------------------------

Line 18660: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

18656: end if ;
18657: -- End Prefix Sufix derivation
18658: for r_TTP_unique in c_unique_TTP('TTP') loop
18659:
18660: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18661: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18662: r_TTP_unique.information3 >=
18663: ben_pd_copy_to_ben_one.g_copy_effective_date)
18664: ) then

Line 18661: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18657: -- End Prefix Sufix derivation
18658: for r_TTP_unique in c_unique_TTP('TTP') loop
18659:
18660: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18661: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18662: r_TTP_unique.information3 >=
18663: ben_pd_copy_to_ben_one.g_copy_effective_date)
18664: ) then
18665: --

Line 18663: ben_pd_copy_to_ben_one.g_copy_effective_date)

18659:
18660: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
18661: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18662: r_TTP_unique.information3 >=
18663: ben_pd_copy_to_ben_one.g_copy_effective_date)
18664: ) then
18665: --
18666: hr_utility.set_location(' r_TTP_unique.table_route_id '||r_TTP_unique.table_route_id,10);
18667: hr_utility.set_location(' r_TTP_unique.information1 '||r_TTP_unique.information1,10);

Line 18681: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18677: open c_TTP_min_max_dates(r_TTP_unique.table_route_id, r_TTP_unique.information1 ) ;
18678: fetch c_TTP_min_max_dates into l_min_esd,l_max_eed ;
18679: --
18680:
18681: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18682: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18683: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18684: end if;
18685: l_min_esd := greatest(l_min_esd,r_TTP_unique.information2);

Line 18682: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

18678: fetch c_TTP_min_max_dates into l_min_esd,l_max_eed ;
18679: --
18680:
18681: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18682: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18683: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18684: end if;
18685: l_min_esd := greatest(l_min_esd,r_TTP_unique.information2);
18686: open c_TTP(r_TTP_unique.table_route_id,

Line 18683: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

18679: --
18680:
18681: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18682: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18683: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
18684: end if;
18685: l_min_esd := greatest(l_min_esd,r_TTP_unique.information2);
18686: open c_TTP(r_TTP_unique.table_route_id,
18687: r_TTP_unique.information1,

Line 18716: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

18712: l_object_found_in_target := TRUE;
18713: --
18714: if l_process_date between r_TTP_unique.information2 and r_TTP_unique.information3 then
18715: l_update := true;
18716: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'
18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;

Line 18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'

18713: --
18714: if l_process_date between r_TTP_unique.information2 and r_TTP_unique.information3 then
18715: l_update := true;
18716: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'
18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;

Line 18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;

18715: l_update := true;
18716: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'
18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;
18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;

Line 18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;

18716: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'
18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;
18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;
18724: --

Line 18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;

18717: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID'
18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;
18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;
18724: --
18725: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

18718: then
18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;
18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;
18724: --
18725: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18726: --

Line 18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;

18719: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_PRTT_RT_ID' ;
18720: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TTP_unique.information1 ;
18721: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TTP_unique.information1 ;
18722: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;
18724: --
18725: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18726: --
18727: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 18727: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

18723: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TTP_unique.table_route_id;
18724: --
18725: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
18726: --
18727: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
18728: --
18729: -- log_data('TTP',l_new_value,l_prefix || r_TTP_unique.name|| l_suffix,'REUSED');
18730: --
18731: end if ;

Line 18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

18755: p_from_date => l_min_esd,
18756: p_to_date => l_max_eed );
18757: if l_dt_rec_found THEN
18758: --END TEMPIK
18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then

18756: p_to_date => l_max_eed );
18757: if l_dt_rec_found THEN
18758: --END TEMPIK
18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;

18757: if l_dt_rec_found THEN
18758: --END TEMPIK
18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;

Line 18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;

18758: --END TEMPIK
18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --

Line 18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

18759: if r_TTP_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --
18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

18760: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_PRTT_RT_ID' then
18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --
18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18768: --

Line 18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;

18761: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18762: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP_unique.information1 ;
18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --
18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18768: --
18769: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

18763: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
18764: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --
18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18768: --
18769: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18770: end if ;
18771: --

Line 18769: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

18765: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18766: --
18767: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
18768: --
18769: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18770: end if ;
18771: --
18772: l_object_found_in_target := true ;
18773: --TEMPIK

Line 18803: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

18799: end if ;
18800: --
18801:
18802: l_effective_date := r_TTP.information2;
18803: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18804: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18805: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18806: end if;
18807:

Line 18804: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

18800: --
18801:
18802: l_effective_date := r_TTP.information2;
18803: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18804: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18805: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18806: end if;
18807:
18808: if l_first_rec and not l_update then

Line 18805: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

18801:
18802: l_effective_date := r_TTP.information2;
18803: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
18804: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
18805: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
18806: end if;
18807:
18808: if l_first_rec and not l_update then
18809: -- Call Create routine.

Line 18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;

18863: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
18864: -- Update all relevent cer records with new pk_id
18865: hr_utility.set_location('Before plsql table ',222);
18866: hr_utility.set_location('new_value id '||l_ttl_prtt_rt_id,222);
18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;
18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;
18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;

Line 18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;

18864: -- Update all relevent cer records with new pk_id
18865: hr_utility.set_location('Before plsql table ',222);
18866: hr_utility.set_location('new_value id '||l_ttl_prtt_rt_id,222);
18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;
18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;
18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18872: hr_utility.set_location('After plsql table ',222);

Line 18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;

18865: hr_utility.set_location('Before plsql table ',222);
18866: hr_utility.set_location('new_value id '||l_ttl_prtt_rt_id,222);
18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;
18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;
18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18872: hr_utility.set_location('After plsql table ',222);
18873: --

Line 18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

18866: hr_utility.set_location('new_value id '||l_ttl_prtt_rt_id,222);
18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;
18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;
18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18872: hr_utility.set_location('After plsql table ',222);
18873: --
18874: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;

18867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_PRTT_RT_ID' ;
18868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TTP.information1 ;
18869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_PRTT_RT_ID ;
18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18872: hr_utility.set_location('After plsql table ',222);
18873: --
18874: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18875: --

Line 18874: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

18870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
18871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TTP_unique.table_route_id;
18872: hr_utility.set_location('After plsql table ',222);
18873: --
18874: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18875: --
18876: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18877: --
18878: else

Line 18876: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

18872: hr_utility.set_location('After plsql table ',222);
18873: --
18874: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
18875: --
18876: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
18877: --
18878: else
18879: --
18880: -- Call Update routine for the pk_id created in prev run .

Line 18995: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TTP',r_ttp.information5 );

18991: end loop;
18992: --
18993: exception when others then
18994: --
18995: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TTP',r_ttp.information5 );
18996: --
18997: end create_TTP_rows;
18998:
18999: --

Line 19160: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

19156: end if ;
19157: -- End Prefix Sufix derivation
19158: for r_TCV_unique in c_unique_TCV('TCV') loop
19159:
19160: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19161: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19162: r_TCV_unique.information3 >=
19163: ben_pd_copy_to_ben_one.g_copy_effective_date)
19164: ) then

Line 19161: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19157: -- End Prefix Sufix derivation
19158: for r_TCV_unique in c_unique_TCV('TCV') loop
19159:
19160: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19161: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19162: r_TCV_unique.information3 >=
19163: ben_pd_copy_to_ben_one.g_copy_effective_date)
19164: ) then
19165: --

Line 19163: ben_pd_copy_to_ben_one.g_copy_effective_date)

19159:
19160: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19161: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19162: r_TCV_unique.information3 >=
19163: ben_pd_copy_to_ben_one.g_copy_effective_date)
19164: ) then
19165: --
19166: hr_utility.set_location(' r_TCV_unique.table_route_id '||r_TCV_unique.table_route_id,10);
19167: hr_utility.set_location(' r_TCV_unique.information1 '||r_TCV_unique.information1,10);

Line 19181: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19177: open c_TCV_min_max_dates(r_TCV_unique.table_route_id, r_TCV_unique.information1 ) ;
19178: fetch c_TCV_min_max_dates into l_min_esd,l_max_eed ;
19179: --
19180:
19181: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19182: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19183: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19184: end if;
19185: l_min_esd := greatest(l_min_esd,r_TCV_unique.information2);

Line 19182: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

19178: fetch c_TCV_min_max_dates into l_min_esd,l_max_eed ;
19179: --
19180:
19181: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19182: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19183: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19184: end if;
19185: l_min_esd := greatest(l_min_esd,r_TCV_unique.information2);
19186: open c_TCV(r_TCV_unique.table_route_id,

Line 19183: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

19179: --
19180:
19181: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19182: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19183: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19184: end if;
19185: l_min_esd := greatest(l_min_esd,r_TCV_unique.information2);
19186: open c_TCV(r_TCV_unique.table_route_id,
19187: r_TCV_unique.information1,

Line 19214: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

19210: l_object_found_in_target := TRUE;
19211: --
19212: if l_process_date between r_TCV_unique.information2 and r_TCV_unique.information3 then
19213: l_update := true;
19214: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'
19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;

Line 19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'

19211: --
19212: if l_process_date between r_TCV_unique.information2 and r_TCV_unique.information3 then
19213: l_update := true;
19214: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'
19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;

Line 19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;

19213: l_update := true;
19214: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'
19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;
19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;

Line 19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;

19214: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'
19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;
19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;
19222: --

Line 19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;

19215: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID'
19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;
19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;
19222: --
19223: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

19216: then
19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;
19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;
19222: --
19223: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19224: --

Line 19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;

19217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_TCV_unique.information1 ;
19219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_TCV_unique.information1 ;
19220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;
19222: --
19223: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19224: --
19225: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 19225: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

19221: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_TCV_unique.table_route_id;
19222: --
19223: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19224: --
19225: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
19226: --
19227: -- log_data('TCV',l_new_value,l_prefix || r_TCV_unique.name|| l_suffix,'REUSED');
19228: --
19229: end if ;

Line 19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

19253: p_from_date => l_min_esd,
19254: p_to_date => l_max_eed );
19255: if l_dt_rec_found THEN
19256: --END TEMPIK
19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then

19254: p_to_date => l_max_eed );
19255: if l_dt_rec_found THEN
19256: --END TEMPIK
19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;

19255: if l_dt_rec_found THEN
19256: --END TEMPIK
19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;

Line 19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;

19256: --END TEMPIK
19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --

Line 19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

19257: if r_TCV_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --
19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

19258: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'TTL_CVG_VOL_RT_ID' then
19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --
19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19266: --

Line 19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;

19259: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19260: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV_unique.information1 ;
19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --
19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19266: --
19267: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

19261: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19262: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --
19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19266: --
19267: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19268: end if ;
19269: --

Line 19267: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

19263: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19264: --
19265: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19266: --
19267: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19268: end if ;
19269: --
19270: l_object_found_in_target := true ;
19271: --TEMPIK

Line 19301: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19297: end if ;
19298: --
19299:
19300: l_effective_date := r_TCV.information2;
19301: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19302: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19303: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19304: end if;
19305:

Line 19302: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

19298: --
19299:
19300: l_effective_date := r_TCV.information2;
19301: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19302: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19303: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19304: end if;
19305:
19306: if l_first_rec and not l_update then

Line 19303: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

19299:
19300: l_effective_date := r_TCV.information2;
19301: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19302: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19303: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19304: end if;
19305:
19306: if l_first_rec and not l_update then
19307: -- Call Create routine.

Line 19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;

19361: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
19362: -- Update all relevent cer records with new pk_id
19363: hr_utility.set_location('Before plsql table ',222);
19364: hr_utility.set_location('new_value id '||l_ttl_cvg_vol_rt_id,222);
19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;
19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;
19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;

Line 19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;

19362: -- Update all relevent cer records with new pk_id
19363: hr_utility.set_location('Before plsql table ',222);
19364: hr_utility.set_location('new_value id '||l_ttl_cvg_vol_rt_id,222);
19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;
19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;
19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19370: hr_utility.set_location('After plsql table ',222);

Line 19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;

19363: hr_utility.set_location('Before plsql table ',222);
19364: hr_utility.set_location('new_value id '||l_ttl_cvg_vol_rt_id,222);
19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;
19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;
19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19370: hr_utility.set_location('After plsql table ',222);
19371: --

Line 19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

19364: hr_utility.set_location('new_value id '||l_ttl_cvg_vol_rt_id,222);
19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;
19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;
19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19370: hr_utility.set_location('After plsql table ',222);
19371: --
19372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;

19365: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'TTL_CVG_VOL_RT_ID' ;
19366: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_TCV.information1 ;
19367: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_TTL_CVG_VOL_RT_ID ;
19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19370: hr_utility.set_location('After plsql table ',222);
19371: --
19372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19373: --

Line 19372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

19368: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19369: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_TCV_unique.table_route_id;
19370: hr_utility.set_location('After plsql table ',222);
19371: --
19372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19373: --
19374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19375: --
19376: else

Line 19374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

19370: hr_utility.set_location('After plsql table ',222);
19371: --
19372: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19373: --
19374: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19375: --
19376: else
19377: --
19378: -- Call Update routine for the pk_id created in prev run .

Line 19493: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TCV',r_tcv.information5 );

19489: end loop;
19490: --
19491: exception when others then
19492: --
19493: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'TCV',r_tcv.information5 );
19494: --
19495: end create_TCV_rows;
19496:
19497: ---------------------------------------------------------------

Line 19632: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

19628: end if ;
19629: -- End Prefix Sufix derivation
19630: for r_VPR_unique in c_unique_VPR('VPR') loop
19631:
19632: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19633: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19634: r_VPR_unique.information3 >=
19635: ben_pd_copy_to_ben_one.g_copy_effective_date)
19636: ) then

Line 19633: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19629: -- End Prefix Sufix derivation
19630: for r_VPR_unique in c_unique_VPR('VPR') loop
19631:
19632: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19633: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19634: r_VPR_unique.information3 >=
19635: ben_pd_copy_to_ben_one.g_copy_effective_date)
19636: ) then
19637: --

Line 19635: ben_pd_copy_to_ben_one.g_copy_effective_date)

19631:
19632: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
19633: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19634: r_VPR_unique.information3 >=
19635: ben_pd_copy_to_ben_one.g_copy_effective_date)
19636: ) then
19637: --
19638: hr_utility.set_location(' r_VPR_unique.table_route_id '||r_VPR_unique.table_route_id,10);
19639: hr_utility.set_location(' r_VPR_unique.information1 '||r_VPR_unique.information1,10);

Line 19653: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19649: open c_VPR_min_max_dates(r_VPR_unique.table_route_id, r_VPR_unique.information1 ) ;
19650: fetch c_VPR_min_max_dates into l_min_esd,l_max_eed ;
19651: --
19652:
19653: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19654: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19655: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19656: end if;
19657: l_min_esd := greatest(l_min_esd,r_VPR_unique.information2);

Line 19654: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

19650: fetch c_VPR_min_max_dates into l_min_esd,l_max_eed ;
19651: --
19652:
19653: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19654: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19655: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19656: end if;
19657: l_min_esd := greatest(l_min_esd,r_VPR_unique.information2);
19658: open c_VPR(r_VPR_unique.table_route_id,

Line 19655: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

19651: --
19652:
19653: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19654: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19655: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
19656: end if;
19657: l_min_esd := greatest(l_min_esd,r_VPR_unique.information2);
19658: open c_VPR(r_VPR_unique.table_route_id,
19659: r_VPR_unique.information1,

Line 19680: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

19676: l_object_found_in_target := TRUE;
19677: --
19678: if l_process_date between r_VPR_unique.information2 and r_VPR_unique.information3 then
19679: l_update := true;
19680: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'
19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;

Line 19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'

19677: --
19678: if l_process_date between r_VPR_unique.information2 and r_VPR_unique.information3 then
19679: l_update := true;
19680: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'
19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;

Line 19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;

19679: l_update := true;
19680: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'
19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;
19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;

Line 19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;

19680: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'
19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;
19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;
19688: --

Line 19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;

19681: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID'
19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;
19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;
19688: --
19689: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

19682: then
19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;
19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;
19688: --
19689: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19690: --

Line 19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;

19683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_VPR_unique.information1 ;
19685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_VPR_unique.information1 ;
19686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;
19688: --
19689: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19690: --
19691: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 19691: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

19687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_VPR_unique.table_route_id;
19688: --
19689: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
19690: --
19691: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
19692: --
19693: -- log_data('VPR',l_new_value,l_prefix || r_VPR_unique.name|| l_suffix,'REUSED');
19694: --
19695: end if ;

Line 19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

19719: p_to_date => l_max_eed );
19720: if l_dt_rec_found THEN
19721: --END TEMPIK
19722: --
19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then

19720: if l_dt_rec_found THEN
19721: --END TEMPIK
19722: --
19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;

19721: --END TEMPIK
19722: --
19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;

Line 19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;

19722: --
19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --

Line 19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

19723: if r_VPR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --
19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

19724: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_RL_ID' then
19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --
19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19732: --

Line 19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;

19725: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19726: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR_unique.information1 ;
19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --
19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19732: --
19733: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

19727: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
19728: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --
19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19732: --
19733: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19734: end if ;
19735: --

Line 19733: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

19729: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19730: --
19731: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
19732: --
19733: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19734: end if ;
19735: --
19736: l_object_found_in_target := true ;
19737: --TEMPIK

Line 19767: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

19763: end if ;
19764: --
19765:
19766: l_effective_date := r_VPR.information2;
19767: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19768: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19769: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19770: end if;
19771:

Line 19768: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

19764: --
19765:
19766: l_effective_date := r_VPR.information2;
19767: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19768: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19769: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19770: end if;
19771:
19772: if l_first_rec and not l_update then

Line 19769: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

19765:
19766: l_effective_date := r_VPR.information2;
19767: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
19768: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
19769: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
19770: end if;
19771:
19772: if l_first_rec and not l_update then
19773: -- Call Create routine.

Line 19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;

19822: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
19823: -- Update all relevent cer records with new pk_id
19824: hr_utility.set_location('Before plsql table ',222);
19825: hr_utility.set_location('new_value id '||l_vrbl_rt_prfl_rl_id,222);
19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;
19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;
19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;

Line 19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;

19823: -- Update all relevent cer records with new pk_id
19824: hr_utility.set_location('Before plsql table ',222);
19825: hr_utility.set_location('new_value id '||l_vrbl_rt_prfl_rl_id,222);
19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;
19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;
19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19831: hr_utility.set_location('After plsql table ',222);

Line 19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;

19824: hr_utility.set_location('Before plsql table ',222);
19825: hr_utility.set_location('new_value id '||l_vrbl_rt_prfl_rl_id,222);
19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;
19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;
19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19831: hr_utility.set_location('After plsql table ',222);
19832: --

Line 19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

19825: hr_utility.set_location('new_value id '||l_vrbl_rt_prfl_rl_id,222);
19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;
19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;
19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19831: hr_utility.set_location('After plsql table ',222);
19832: --
19833: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;

19826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'VRBL_RT_PRFL_RL_ID' ;
19827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_VPR.information1 ;
19828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_VRBL_RT_PRFL_RL_ID ;
19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19831: hr_utility.set_location('After plsql table ',222);
19832: --
19833: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19834: --

Line 19833: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

19829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
19830: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_VPR_unique.table_route_id;
19831: hr_utility.set_location('After plsql table ',222);
19832: --
19833: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19834: --
19835: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19836: --
19837: else

Line 19835: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

19831: hr_utility.set_location('After plsql table ',222);
19832: --
19833: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
19834: --
19835: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
19836: --
19837: else
19838: --
19839: -- Call Update routine for the pk_id created in prev run .

Line 19949: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'VPR',r_vpr.information5 );

19945: end loop;
19946: --
19947: exception when others then
19948: --
19949: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'VPR',r_vpr.information5 );
19950: --
19951: end create_VPR_rows;
19952:
19953: --

Line 20113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

20109: end if ;
20110: -- End Prefix Sufix derivation
20111: for r_PRT_unique in c_unique_PRT('PRT') loop
20112:
20113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20115: r_PRT_unique.information3 >=
20116: ben_pd_copy_to_ben_one.g_copy_effective_date)
20117: ) then

Line 20114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20110: -- End Prefix Sufix derivation
20111: for r_PRT_unique in c_unique_PRT('PRT') loop
20112:
20113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20115: r_PRT_unique.information3 >=
20116: ben_pd_copy_to_ben_one.g_copy_effective_date)
20117: ) then
20118: --

Line 20116: ben_pd_copy_to_ben_one.g_copy_effective_date)

20112:
20113: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20114: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20115: r_PRT_unique.information3 >=
20116: ben_pd_copy_to_ben_one.g_copy_effective_date)
20117: ) then
20118: --
20119: hr_utility.set_location(' r_PRT_unique.table_route_id '||r_PRT_unique.table_route_id,10);
20120: hr_utility.set_location(' r_PRT_unique.information1 '||r_PRT_unique.information1,10);

Line 20134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20130: open c_PRT_min_max_dates(r_PRT_unique.table_route_id, r_PRT_unique.information1 ) ;
20131: fetch c_PRT_min_max_dates into l_min_esd,l_max_eed ;
20132: --
20133:
20134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20137: end if;
20138: l_min_esd := greatest(l_min_esd,r_PRT_unique.information2);

Line 20135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

20131: fetch c_PRT_min_max_dates into l_min_esd,l_max_eed ;
20132: --
20133:
20134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20137: end if;
20138: l_min_esd := greatest(l_min_esd,r_PRT_unique.information2);
20139: open c_PRT(r_PRT_unique.table_route_id,

Line 20136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

20132: --
20133:
20134: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20135: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20136: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20137: end if;
20138: l_min_esd := greatest(l_min_esd,r_PRT_unique.information2);
20139: open c_PRT(r_PRT_unique.table_route_id,
20140: r_PRT_unique.information1,

Line 20167: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

20163: l_object_found_in_target := TRUE;
20164: --
20165: if l_process_date between r_PRT_unique.information2 and r_PRT_unique.information3 then
20166: l_update := true;
20167: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'
20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;

Line 20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'

20164: --
20165: if l_process_date between r_PRT_unique.information2 and r_PRT_unique.information3 then
20166: l_update := true;
20167: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'
20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;

Line 20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;

20166: l_update := true;
20167: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'
20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;
20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;

Line 20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;

20167: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'
20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;
20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;
20175: --

Line 20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;

20168: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'POE_RT_ID'
20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;
20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;
20175: --
20176: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

20169: then
20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;
20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;
20175: --
20176: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20177: --

Line 20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;

20170: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'POE_RT_ID' ;
20171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRT_unique.information1 ;
20172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRT_unique.information1 ;
20173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;
20175: --
20176: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20177: --
20178: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 20178: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

20174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRT_unique.table_route_id;
20175: --
20176: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20177: --
20178: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
20179: --
20180: -- log_data('PRT',l_new_value,l_prefix || r_PRT_unique.name|| l_suffix,'REUSED');
20181: --
20182: end if ;

Line 20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

20206: p_from_date => l_min_esd,
20207: p_to_date => l_max_eed );
20208: if l_dt_rec_found THEN
20209: --END TEMPIK
20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then

20207: p_to_date => l_max_eed );
20208: if l_dt_rec_found THEN
20209: --END TEMPIK
20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;

20208: if l_dt_rec_found THEN
20209: --END TEMPIK
20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;

Line 20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;

20209: --END TEMPIK
20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --

Line 20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

20210: if r_PRT_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --
20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

20211: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'POE_RT_ID' then
20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --
20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20219: --

Line 20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;

20212: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20213: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT_unique.information1 ;
20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --
20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20219: --
20220: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

20214: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20215: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --
20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20219: --
20220: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20221: end if ;
20222: --

Line 20220: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

20216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20217: --
20218: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20219: --
20220: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20221: end if ;
20222: --
20223: l_object_found_in_target := true ;
20224: --TEMPIK

Line 20254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20250: end if ;
20251: --
20252:
20253: l_effective_date := r_PRT.information2;
20254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20255: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20256: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20257: end if;
20258:

Line 20255: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

20251: --
20252:
20253: l_effective_date := r_PRT.information2;
20254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20255: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20256: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20257: end if;
20258:
20259: if l_first_rec and not l_update then

Line 20256: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

20252:
20253: l_effective_date := r_PRT.information2;
20254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20255: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20256: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20257: end if;
20258:
20259: if l_first_rec and not l_update then
20260: -- Call Create routine.

Line 20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;

20314: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
20315: -- Update all relevent cer records with new pk_id
20316: hr_utility.set_location('Before plsql table ',222);
20317: hr_utility.set_location('new_value id '||l_poe_rt_id,222);
20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;
20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;
20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;

Line 20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;

20315: -- Update all relevent cer records with new pk_id
20316: hr_utility.set_location('Before plsql table ',222);
20317: hr_utility.set_location('new_value id '||l_poe_rt_id,222);
20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;
20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;
20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20323: hr_utility.set_location('After plsql table ',222);

Line 20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;

20316: hr_utility.set_location('Before plsql table ',222);
20317: hr_utility.set_location('new_value id '||l_poe_rt_id,222);
20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;
20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;
20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20323: hr_utility.set_location('After plsql table ',222);
20324: --

Line 20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

20317: hr_utility.set_location('new_value id '||l_poe_rt_id,222);
20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;
20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;
20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20323: hr_utility.set_location('After plsql table ',222);
20324: --
20325: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;

20318: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'POE_RT_ID' ;
20319: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRT.information1 ;
20320: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_POE_RT_ID ;
20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20323: hr_utility.set_location('After plsql table ',222);
20324: --
20325: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20326: --

Line 20325: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

20321: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20322: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRT_unique.table_route_id;
20323: hr_utility.set_location('After plsql table ',222);
20324: --
20325: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20326: --
20327: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20328: --
20329: else

Line 20327: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

20323: hr_utility.set_location('After plsql table ',222);
20324: --
20325: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20326: --
20327: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20328: --
20329: else
20330: --
20331: -- Call Update routine for the pk_id created in prev run .

Line 20446: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PRT',r_prt.information5 );

20442: end loop;
20443: --
20444: exception when others then
20445: --
20446: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PRT',r_prt.information5 );
20447: --
20448: end create_PRT_rows;
20449:
20450: ---------------------------------------------------------------

Line 20589: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

20585: end if ;
20586: -- End Prefix Sufix derivation
20587: for r_CPN_unique in c_unique_CPN('CPN') loop
20588:
20589: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20590: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20591: r_CPN_unique.information3 >=
20592: ben_pd_copy_to_ben_one.g_copy_effective_date)
20593: ) then

Line 20590: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20586: -- End Prefix Sufix derivation
20587: for r_CPN_unique in c_unique_CPN('CPN') loop
20588:
20589: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20590: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20591: r_CPN_unique.information3 >=
20592: ben_pd_copy_to_ben_one.g_copy_effective_date)
20593: ) then
20594: --

Line 20592: ben_pd_copy_to_ben_one.g_copy_effective_date)

20588:
20589: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
20590: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20591: r_CPN_unique.information3 >=
20592: ben_pd_copy_to_ben_one.g_copy_effective_date)
20593: ) then
20594: --
20595: hr_utility.set_location(' r_CPN_unique.table_route_id '||r_CPN_unique.table_route_id,10);
20596: hr_utility.set_location(' r_CPN_unique.information1 '||r_CPN_unique.information1,10);

Line 20610: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20606: open c_CPN_min_max_dates(r_CPN_unique.table_route_id, r_CPN_unique.information1 ) ;
20607: fetch c_CPN_min_max_dates into l_min_esd,l_max_eed ;
20608: --
20609:
20610: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20611: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20612: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20613: end if;
20614: l_min_esd := greatest(l_min_esd,r_CPN_unique.information2);

Line 20611: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

20607: fetch c_CPN_min_max_dates into l_min_esd,l_max_eed ;
20608: --
20609:
20610: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20611: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20612: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20613: end if;
20614: l_min_esd := greatest(l_min_esd,r_CPN_unique.information2);
20615: open c_CPN(r_CPN_unique.table_route_id,

Line 20612: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

20608: --
20609:
20610: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20611: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20612: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
20613: end if;
20614: l_min_esd := greatest(l_min_esd,r_CPN_unique.information2);
20615: open c_CPN(r_CPN_unique.table_route_id,
20616: r_CPN_unique.information1,

Line 20639: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

20635: l_object_found_in_target := TRUE;
20636: --
20637: if l_process_date between r_CPN_unique.information2 and r_CPN_unique.information3 then
20638: l_update := true;
20639: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'
20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;

Line 20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'

20636: --
20637: if l_process_date between r_CPN_unique.information2 and r_CPN_unique.information3 then
20638: l_update := true;
20639: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'
20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;

Line 20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;

20638: l_update := true;
20639: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'
20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;
20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;

Line 20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;

20639: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'
20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;
20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;
20647: --

Line 20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;

20640: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID'
20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;
20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;
20647: --
20648: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

20641: then
20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;
20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;
20647: --
20648: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20649: --

Line 20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;

20642: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20643: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CPN_unique.information1 ;
20644: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CPN_unique.information1 ;
20645: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;
20647: --
20648: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20649: --
20650: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 20650: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

20646: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CPN_unique.table_route_id;
20647: --
20648: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
20649: --
20650: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
20651: --
20652: -- log_data('CPN',l_new_value,l_prefix || r_CPN_unique.name|| l_suffix,'REUSED');
20653: --
20654: end if ;

Line 20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

20678: p_to_date => l_max_eed );
20679: if l_dt_rec_found THEN
20680: --END TEMPIK
20681: --
20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then

20679: if l_dt_rec_found THEN
20680: --END TEMPIK
20681: --
20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;

20680: --END TEMPIK
20681: --
20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;

Line 20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;

20681: --
20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --

Line 20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

20682: if r_CPN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --
20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

20683: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'CNTNG_PRTN_PRFL_RT_ID' then
20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --
20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20691: --

Line 20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;

20684: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20685: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN_unique.information1 ;
20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --
20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20691: --
20692: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

20686: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
20687: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --
20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20691: --
20692: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20693: end if ;
20694: --

Line 20692: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

20688: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20689: --
20690: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
20691: --
20692: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20693: end if ;
20694: --
20695: l_object_found_in_target := true ;
20696: --TEMPIK

Line 20724: ben_pd_copy_to_ben_one.ben_chk_col_len('NAME' ,'BEN_CNTNG_PRTN_PRFL_RT_F',l_prefix || r_CPN.information170 || l_suffix);

20720: l_first_rec := true ;
20721: --
20722: end if ;
20723: --
20724: ben_pd_copy_to_ben_one.ben_chk_col_len('NAME' ,'BEN_CNTNG_PRTN_PRFL_RT_F',l_prefix || r_CPN.information170 || l_suffix);
20725: --
20726:
20727: l_effective_date := r_CPN.information2;
20728: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

Line 20728: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

20724: ben_pd_copy_to_ben_one.ben_chk_col_len('NAME' ,'BEN_CNTNG_PRTN_PRFL_RT_F',l_prefix || r_CPN.information170 || l_suffix);
20725: --
20726:
20727: l_effective_date := r_CPN.information2;
20728: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20729: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20730: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20731: end if;
20732:

Line 20729: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

20725: --
20726:
20727: l_effective_date := r_CPN.information2;
20728: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20729: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20730: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20731: end if;
20732:
20733: if l_first_rec and not l_update then

Line 20730: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

20726:
20727: l_effective_date := r_CPN.information2;
20728: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
20729: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
20730: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
20731: end if;
20732:
20733: if l_first_rec and not l_update then
20734: -- Call Create routine.

Line 20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;

20784: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
20785: -- Update all relevent cer records with new pk_id
20786: hr_utility.set_location('Before plsql table ',222);
20787: hr_utility.set_location('new_value id '||l_cntng_prtn_prfl_rt_id,222);
20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;
20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;
20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;

Line 20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;

20785: -- Update all relevent cer records with new pk_id
20786: hr_utility.set_location('Before plsql table ',222);
20787: hr_utility.set_location('new_value id '||l_cntng_prtn_prfl_rt_id,222);
20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;
20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;
20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20793: hr_utility.set_location('After plsql table ',222);

Line 20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;

20786: hr_utility.set_location('Before plsql table ',222);
20787: hr_utility.set_location('new_value id '||l_cntng_prtn_prfl_rt_id,222);
20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;
20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;
20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20793: hr_utility.set_location('After plsql table ',222);
20794: --

Line 20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

20787: hr_utility.set_location('new_value id '||l_cntng_prtn_prfl_rt_id,222);
20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;
20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;
20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20793: hr_utility.set_location('After plsql table ',222);
20794: --
20795: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;

20788: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'CNTNG_PRTN_PRFL_RT_ID' ;
20789: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CPN.information1 ;
20790: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_CNTNG_PRTN_PRFL_RT_ID ;
20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20793: hr_utility.set_location('After plsql table ',222);
20794: --
20795: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20796: --

Line 20795: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

20791: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
20792: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CPN_unique.table_route_id;
20793: hr_utility.set_location('After plsql table ',222);
20794: --
20795: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20796: --
20797: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20798: --
20799: else

Line 20797: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

20793: hr_utility.set_location('After plsql table ',222);
20794: --
20795: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
20796: --
20797: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
20798: --
20799: else
20800: --
20801: -- Call Update routine for the pk_id created in prev run .

Line 20912: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CPN',l_prefix || r_CPN.information170 || l_suffix);

20908: end loop;
20909: --
20910: exception when others then
20911: --
20912: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CPN',l_prefix || r_CPN.information170 || l_suffix);
20913: --
20914: end create_CPN_rows;
20915:
20916: --

Line 21058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

21054: end if ;
21055: -- End Prefix Sufix derivation
21056: for r_PST_unique in c_unique_PST('PST') loop
21057:
21058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21060: r_PST_unique.information3 >=
21061: ben_pd_copy_to_ben_one.g_copy_effective_date)
21062: ) then

Line 21059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21055: -- End Prefix Sufix derivation
21056: for r_PST_unique in c_unique_PST('PST') loop
21057:
21058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21060: r_PST_unique.information3 >=
21061: ben_pd_copy_to_ben_one.g_copy_effective_date)
21062: ) then
21063: --

Line 21061: ben_pd_copy_to_ben_one.g_copy_effective_date)

21057:
21058: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21059: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21060: r_PST_unique.information3 >=
21061: ben_pd_copy_to_ben_one.g_copy_effective_date)
21062: ) then
21063: --
21064: hr_utility.set_location(' r_PST_unique.table_route_id '||r_PST_unique.table_route_id,10);
21065: hr_utility.set_location(' r_PST_unique.information1 '||r_PST_unique.information1,10);

Line 21079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21075: open c_PST_min_max_dates(r_PST_unique.table_route_id, r_PST_unique.information1 ) ;
21076: fetch c_PST_min_max_dates into l_min_esd,l_max_eed ;
21077: --
21078:
21079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21082: end if;
21083: l_min_esd := greatest(l_min_esd,r_PST_unique.information2);

Line 21080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

21076: fetch c_PST_min_max_dates into l_min_esd,l_max_eed ;
21077: --
21078:
21079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21082: end if;
21083: l_min_esd := greatest(l_min_esd,r_PST_unique.information2);
21084: open c_PST(r_PST_unique.table_route_id,

Line 21081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

21077: --
21078:
21079: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21080: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21081: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21082: end if;
21083: l_min_esd := greatest(l_min_esd,r_PST_unique.information2);
21084: open c_PST(r_PST_unique.table_route_id,
21085: r_PST_unique.information1,

Line 21094: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

21090: --
21091: close c_PST ;
21092: --
21093:
21094: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
21095: l_POSITION_ID := r_PST.information176;
21096: else
21097: l_POSITION_ID := r_PST.information174;
21098: end if;

Line 21126: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

21122: l_object_found_in_target := TRUE;
21123: --
21124: if l_process_date between r_PST_unique.information2 and r_PST_unique.information3 then
21125: l_update := true;
21126: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'
21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;

Line 21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'

21123: --
21124: if l_process_date between r_PST_unique.information2 and r_PST_unique.information3 then
21125: l_update := true;
21126: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'
21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;

Line 21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;

21125: l_update := true;
21126: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'
21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;
21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;

Line 21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;

21126: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'
21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;
21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;
21134: --

Line 21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;

21127: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PSTN_RT_ID'
21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;
21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;
21134: --
21135: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

21128: then
21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;
21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;
21134: --
21135: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21136: --

Line 21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;

21129: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PSTN_RT_ID' ;
21130: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PST_unique.information1 ;
21131: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PST_unique.information1 ;
21132: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;
21134: --
21135: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21136: --
21137: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 21137: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

21133: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PST_unique.table_route_id;
21134: --
21135: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21136: --
21137: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
21138: --
21139: -- log_data('PST',l_new_value,l_prefix || r_PST_unique.name|| l_suffix,'REUSED');
21140: --
21141: end if ;

Line 21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

21165: p_from_date => l_min_esd,
21166: p_to_date => l_max_eed );
21167: if l_dt_rec_found THEN
21168: --END TEMPIK
21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then

21166: p_to_date => l_max_eed );
21167: if l_dt_rec_found THEN
21168: --END TEMPIK
21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;

21167: if l_dt_rec_found THEN
21168: --END TEMPIK
21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;

Line 21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;

21168: --END TEMPIK
21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --

Line 21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

21169: if r_PST_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --
21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

21170: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PSTN_RT_ID' then
21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --
21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21178: --

Line 21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;

21171: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21172: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST_unique.information1 ;
21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --
21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21178: --
21179: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

21173: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21174: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --
21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21178: --
21179: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21180: end if ;
21181: --

Line 21179: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

21175: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21176: --
21177: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21178: --
21179: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21180: end if ;
21181: --
21182: l_object_found_in_target := true ;
21183: --TEMPIK

Line 21213: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21209: end if ;
21210: --
21211:
21212: l_effective_date := r_PST.information2;
21213: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21214: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21215: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21216: end if;
21217:

Line 21214: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

21210: --
21211:
21212: l_effective_date := r_PST.information2;
21213: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21214: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21215: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21216: end if;
21217:
21218: if l_first_rec and not l_update then

Line 21215: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

21211:
21212: l_effective_date := r_PST.information2;
21213: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21214: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21215: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21216: end if;
21217:
21218: if l_first_rec and not l_update then
21219: -- Call Create routine.

Line 21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;

21268: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
21269: -- Update all relevent cer records with new pk_id
21270: hr_utility.set_location('Before plsql table ',222);
21271: hr_utility.set_location('new_value id '||l_pstn_rt_id,222);
21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;
21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;
21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;

Line 21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;

21269: -- Update all relevent cer records with new pk_id
21270: hr_utility.set_location('Before plsql table ',222);
21271: hr_utility.set_location('new_value id '||l_pstn_rt_id,222);
21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;
21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;
21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21277: hr_utility.set_location('After plsql table ',222);

Line 21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;

21270: hr_utility.set_location('Before plsql table ',222);
21271: hr_utility.set_location('new_value id '||l_pstn_rt_id,222);
21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;
21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;
21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21277: hr_utility.set_location('After plsql table ',222);
21278: --

Line 21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

21271: hr_utility.set_location('new_value id '||l_pstn_rt_id,222);
21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;
21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;
21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21277: hr_utility.set_location('After plsql table ',222);
21278: --
21279: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;

21272: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PSTN_RT_ID' ;
21273: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PST.information1 ;
21274: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PSTN_RT_ID ;
21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21277: hr_utility.set_location('After plsql table ',222);
21278: --
21279: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21280: --

Line 21279: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

21275: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21276: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PST_unique.table_route_id;
21277: hr_utility.set_location('After plsql table ',222);
21278: --
21279: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21280: --
21281: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21282: --
21283: else

Line 21281: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

21277: hr_utility.set_location('After plsql table ',222);
21278: --
21279: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21280: --
21281: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21282: --
21283: else
21284: --
21285: -- Call Update routine for the pk_id created in prev run .

Line 21397: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PST',r_pst.information5 );

21393: end loop;
21394: --
21395: exception when others then
21396: --
21397: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PST',r_pst.information5 );
21398: --
21399: end create_PST_rows;
21400:
21401: --

Line 21538: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

21534: end if ;
21535: -- End Prefix Sufix derivation
21536: for r_WLR_unique in c_unique_WLR('WLR') loop
21537:
21538: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21539: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21540: r_WLR_unique.information3 >=
21541: ben_pd_copy_to_ben_one.g_copy_effective_date)
21542: ) then

Line 21539: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21535: -- End Prefix Sufix derivation
21536: for r_WLR_unique in c_unique_WLR('WLR') loop
21537:
21538: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21539: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21540: r_WLR_unique.information3 >=
21541: ben_pd_copy_to_ben_one.g_copy_effective_date)
21542: ) then
21543: --

Line 21541: ben_pd_copy_to_ben_one.g_copy_effective_date)

21537:
21538: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
21539: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21540: r_WLR_unique.information3 >=
21541: ben_pd_copy_to_ben_one.g_copy_effective_date)
21542: ) then
21543: --
21544: hr_utility.set_location(' r_WLR_unique.table_route_id '||r_WLR_unique.table_route_id,10);
21545: hr_utility.set_location(' r_WLR_unique.information1 '||r_WLR_unique.information1,10);

Line 21559: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21555: open c_WLR_min_max_dates(r_WLR_unique.table_route_id, r_WLR_unique.information1 ) ;
21556: fetch c_WLR_min_max_dates into l_min_esd,l_max_eed ;
21557: --
21558:
21559: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21560: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21561: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21562: end if;
21563: l_min_esd := greatest(l_min_esd,r_WLR_unique.information2);

Line 21560: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

21556: fetch c_WLR_min_max_dates into l_min_esd,l_max_eed ;
21557: --
21558:
21559: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21560: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21561: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21562: end if;
21563: l_min_esd := greatest(l_min_esd,r_WLR_unique.information2);
21564: open c_WLR(r_WLR_unique.table_route_id,

Line 21561: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

21557: --
21558:
21559: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21560: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21561: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
21562: end if;
21563: l_min_esd := greatest(l_min_esd,r_WLR_unique.information2);
21564: open c_WLR(r_WLR_unique.table_route_id,
21565: r_WLR_unique.information1,

Line 21574: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then

21570: --
21571: close c_WLR ;
21572: --
21573:
21574: if BEN_PD_COPY_TO_BEN_ONE.g_mapping_done then
21575: l_LOCATION_ID := r_WLR.information176;
21576: else
21577: l_LOCATION_ID := r_WLR.information174;
21578: end if;

Line 21604: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

21600: l_object_found_in_target := TRUE;
21601: --
21602: if l_process_date between r_WLR_unique.information2 and r_WLR_unique.information3 then
21603: l_update := true;
21604: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'
21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;

Line 21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'

21601: --
21602: if l_process_date between r_WLR_unique.information2 and r_WLR_unique.information3 then
21603: l_update := true;
21604: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'
21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;

Line 21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;

21603: l_update := true;
21604: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'
21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;
21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;

Line 21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;

21604: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'
21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;
21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;
21612: --

Line 21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;

21605: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'WK_LOC_RT_ID'
21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;
21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;
21612: --
21613: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

21606: then
21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;
21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;
21612: --
21613: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21614: --

Line 21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;

21607: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'WK_LOC_RT_ID' ;
21608: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_WLR_unique.information1 ;
21609: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_WLR_unique.information1 ;
21610: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;
21612: --
21613: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21614: --
21615: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 21615: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

21611: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_WLR_unique.table_route_id;
21612: --
21613: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
21614: --
21615: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
21616: --
21617: -- log_data('WLR',l_new_value,l_prefix || r_WLR_unique.name|| l_suffix,'REUSED');
21618: --
21619: end if ;

Line 21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

21643: p_from_date => l_min_esd,
21644: p_to_date => l_max_eed );
21645: if l_dt_rec_found THEN
21646: --END TEMPIK
21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then

21644: p_to_date => l_max_eed );
21645: if l_dt_rec_found THEN
21646: --END TEMPIK
21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;

21645: if l_dt_rec_found THEN
21646: --END TEMPIK
21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;

Line 21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;

21646: --END TEMPIK
21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --

Line 21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

21647: if r_WLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --
21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

21648: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'WK_LOC_RT_ID' then
21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --
21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21656: --

Line 21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;

21649: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21650: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR_unique.information1 ;
21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --
21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21656: --
21657: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

21651: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
21652: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --
21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21656: --
21657: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21658: end if ;
21659: --

Line 21657: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

21653: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21654: --
21655: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
21656: --
21657: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21658: end if ;
21659: --
21660: l_object_found_in_target := true ;
21661: --TEMPIK

Line 21691: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

21687: end if ;
21688: --
21689:
21690: l_effective_date := r_WLR.information2;
21691: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21692: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21693: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21694: end if;
21695:

Line 21692: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

21688: --
21689:
21690: l_effective_date := r_WLR.information2;
21691: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21692: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21693: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21694: end if;
21695:
21696: if l_first_rec and not l_update then

Line 21693: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

21689:
21690: l_effective_date := r_WLR.information2;
21691: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
21692: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
21693: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
21694: end if;
21695:
21696: if l_first_rec and not l_update then
21697: -- Call Create routine.

Line 21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;

21746: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
21747: -- Update all relevent cer records with new pk_id
21748: hr_utility.set_location('Before plsql table ',222);
21749: hr_utility.set_location('new_value id '||l_wk_loc_rt_id,222);
21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;
21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;
21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;

Line 21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;

21747: -- Update all relevent cer records with new pk_id
21748: hr_utility.set_location('Before plsql table ',222);
21749: hr_utility.set_location('new_value id '||l_wk_loc_rt_id,222);
21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;
21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;
21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21755: hr_utility.set_location('After plsql table ',222);

Line 21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;

21748: hr_utility.set_location('Before plsql table ',222);
21749: hr_utility.set_location('new_value id '||l_wk_loc_rt_id,222);
21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;
21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;
21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21755: hr_utility.set_location('After plsql table ',222);
21756: --

Line 21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

21749: hr_utility.set_location('new_value id '||l_wk_loc_rt_id,222);
21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;
21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;
21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21755: hr_utility.set_location('After plsql table ',222);
21756: --
21757: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;

21750: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'WK_LOC_RT_ID' ;
21751: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_WLR.information1 ;
21752: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_WK_LOC_RT_ID ;
21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21755: hr_utility.set_location('After plsql table ',222);
21756: --
21757: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21758: --

Line 21757: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

21753: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
21754: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_WLR_unique.table_route_id;
21755: hr_utility.set_location('After plsql table ',222);
21756: --
21757: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21758: --
21759: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21760: --
21761: else

Line 21759: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

21755: hr_utility.set_location('After plsql table ',222);
21756: --
21757: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
21758: --
21759: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
21760: --
21761: else
21762: --
21763: -- Call Update routine for the pk_id created in prev run .

Line 21875: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'WLR',r_wlr.information5 );

21871: end loop;
21872: --
21873: exception when others then
21874: --
21875: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'WLR',r_wlr.information5 );
21876: --
21877: end create_WLR_rows;
21878:
21879: --

Line 22020: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

22016: end if ;
22017: -- End Prefix Sufix derivation
22018: for r_PFR_unique in c_unique_PFR('PFR') loop
22019:
22020: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22021: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22022: r_PFR_unique.information3 >=
22023: ben_pd_copy_to_ben_one.g_copy_effective_date)
22024: ) then

Line 22021: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22017: -- End Prefix Sufix derivation
22018: for r_PFR_unique in c_unique_PFR('PFR') loop
22019:
22020: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22021: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22022: r_PFR_unique.information3 >=
22023: ben_pd_copy_to_ben_one.g_copy_effective_date)
22024: ) then
22025: --

Line 22023: ben_pd_copy_to_ben_one.g_copy_effective_date)

22019:
22020: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22021: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22022: r_PFR_unique.information3 >=
22023: ben_pd_copy_to_ben_one.g_copy_effective_date)
22024: ) then
22025: --
22026: hr_utility.set_location(' r_PFR_unique.table_route_id '||r_PFR_unique.table_route_id,10);
22027: hr_utility.set_location(' r_PFR_unique.information1 '||r_PFR_unique.information1,10);

Line 22041: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22037: open c_PFR_min_max_dates(r_PFR_unique.table_route_id, r_PFR_unique.information1 ) ;
22038: fetch c_PFR_min_max_dates into l_min_esd,l_max_eed ;
22039: --
22040:
22041: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22042: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22043: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22044: end if;
22045: l_min_esd := greatest(l_min_esd,r_PFR_unique.information2);

Line 22042: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

22038: fetch c_PFR_min_max_dates into l_min_esd,l_max_eed ;
22039: --
22040:
22041: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22042: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22043: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22044: end if;
22045: l_min_esd := greatest(l_min_esd,r_PFR_unique.information2);
22046: open c_PFR(r_PFR_unique.table_route_id,

Line 22043: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

22039: --
22040:
22041: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22042: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22043: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22044: end if;
22045: l_min_esd := greatest(l_min_esd,r_PFR_unique.information2);
22046: open c_PFR(r_PFR_unique.table_route_id,
22047: r_PFR_unique.information1,

Line 22070: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

22066: l_object_found_in_target := TRUE;
22067: --
22068: if l_process_date between r_PFR_unique.information2 and r_PFR_unique.information3 then
22069: l_update := true;
22070: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'
22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;

Line 22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'

22067: --
22068: if l_process_date between r_PFR_unique.information2 and r_PFR_unique.information3 then
22069: l_update := true;
22070: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'
22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;

Line 22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;

22069: l_update := true;
22070: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'
22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;
22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;

Line 22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;

22070: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'
22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;
22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;
22078: --

Line 22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;

22071: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID'
22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;
22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;
22078: --
22079: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

22072: then
22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;
22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;
22078: --
22079: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22080: --

Line 22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;

22073: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22074: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PFR_unique.information1 ;
22075: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PFR_unique.information1 ;
22076: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;
22078: --
22079: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22080: --
22081: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 22081: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

22077: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PFR_unique.table_route_id;
22078: --
22079: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22080: --
22081: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
22082: --
22083: -- log_data('PFR',l_new_value,l_prefix || r_PFR_unique.name|| l_suffix,'REUSED');
22084: --
22085: end if ;

Line 22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

22109: p_to_date => l_max_eed );
22110: if l_dt_rec_found THEN
22111: --END TEMPIK
22112: --
22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then

22110: if l_dt_rec_found THEN
22111: --END TEMPIK
22112: --
22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;

22111: --END TEMPIK
22112: --
22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;

Line 22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;

22112: --
22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --

Line 22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

22113: if r_PFR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --
22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

22114: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PCT_FL_TM_RT_ID' then
22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --
22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22122: --

Line 22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;

22115: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22116: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR_unique.information1 ;
22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --
22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22122: --
22123: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

22117: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22118: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --
22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22122: --
22123: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22124: end if ;
22125: --

Line 22123: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

22119: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22120: --
22121: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22122: --
22123: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22124: end if ;
22125: --
22126: l_object_found_in_target := true ;
22127: --TEMPIK

Line 22157: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22153: end if ;
22154: --
22155:
22156: l_effective_date := r_PFR.information2;
22157: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22158: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22159: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22160: end if;
22161:

Line 22158: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

22154: --
22155:
22156: l_effective_date := r_PFR.information2;
22157: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22158: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22159: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22160: end if;
22161:
22162: if l_first_rec and not l_update then

Line 22159: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

22155:
22156: l_effective_date := r_PFR.information2;
22157: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22158: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22159: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22160: end if;
22161:
22162: if l_first_rec and not l_update then
22163: -- Call Create routine.

Line 22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;

22212: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
22213: -- Update all relevent cer records with new pk_id
22214: hr_utility.set_location('Before plsql table ',222);
22215: hr_utility.set_location('new_value id '||l_pct_fl_tm_rt_id,222);
22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;
22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;
22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;

Line 22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;

22213: -- Update all relevent cer records with new pk_id
22214: hr_utility.set_location('Before plsql table ',222);
22215: hr_utility.set_location('new_value id '||l_pct_fl_tm_rt_id,222);
22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;
22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;
22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22221: hr_utility.set_location('After plsql table ',222);

Line 22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;

22214: hr_utility.set_location('Before plsql table ',222);
22215: hr_utility.set_location('new_value id '||l_pct_fl_tm_rt_id,222);
22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;
22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;
22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22221: hr_utility.set_location('After plsql table ',222);
22222: --

Line 22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

22215: hr_utility.set_location('new_value id '||l_pct_fl_tm_rt_id,222);
22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;
22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;
22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22221: hr_utility.set_location('After plsql table ',222);
22222: --
22223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;

22216: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PCT_FL_TM_RT_ID' ;
22217: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PFR.information1 ;
22218: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PCT_FL_TM_RT_ID ;
22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22221: hr_utility.set_location('After plsql table ',222);
22222: --
22223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22224: --

Line 22223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

22219: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22220: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PFR_unique.table_route_id;
22221: hr_utility.set_location('After plsql table ',222);
22222: --
22223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22224: --
22225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22226: --
22227: else

Line 22225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

22221: hr_utility.set_location('After plsql table ',222);
22222: --
22223: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22224: --
22225: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22226: --
22227: else
22228: --
22229: -- Call Update routine for the pk_id created in prev run .

Line 22338: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PFR',r_pfr.information5 );

22334: end loop;
22335: --
22336: exception when others then
22337: --
22338: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PFR',r_pfr.information5 );
22339: --
22340: end create_PFR_rows;
22341:
22342: --

Line 22483: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

22479: end if ;
22480: -- End Prefix Sufix derivation
22481: for r_HWR_unique in c_unique_HWR('HWR') loop
22482:
22483: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22484: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22485: r_HWR_unique.information3 >=
22486: ben_pd_copy_to_ben_one.g_copy_effective_date)
22487: ) then

Line 22484: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22480: -- End Prefix Sufix derivation
22481: for r_HWR_unique in c_unique_HWR('HWR') loop
22482:
22483: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22484: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22485: r_HWR_unique.information3 >=
22486: ben_pd_copy_to_ben_one.g_copy_effective_date)
22487: ) then
22488: --

Line 22486: ben_pd_copy_to_ben_one.g_copy_effective_date)

22482:
22483: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22484: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22485: r_HWR_unique.information3 >=
22486: ben_pd_copy_to_ben_one.g_copy_effective_date)
22487: ) then
22488: --
22489: hr_utility.set_location(' r_HWR_unique.table_route_id '||r_HWR_unique.table_route_id,10);
22490: hr_utility.set_location(' r_HWR_unique.information1 '||r_HWR_unique.information1,10);

Line 22504: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22500: open c_HWR_min_max_dates(r_HWR_unique.table_route_id, r_HWR_unique.information1 ) ;
22501: fetch c_HWR_min_max_dates into l_min_esd,l_max_eed ;
22502: --
22503:
22504: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22505: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22506: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22507: end if;
22508: l_min_esd := greatest(l_min_esd,r_HWR_unique.information2);

Line 22505: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

22501: fetch c_HWR_min_max_dates into l_min_esd,l_max_eed ;
22502: --
22503:
22504: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22505: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22506: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22507: end if;
22508: l_min_esd := greatest(l_min_esd,r_HWR_unique.information2);
22509: open c_HWR(r_HWR_unique.table_route_id,

Line 22506: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

22502: --
22503:
22504: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22505: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22506: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22507: end if;
22508: l_min_esd := greatest(l_min_esd,r_HWR_unique.information2);
22509: open c_HWR(r_HWR_unique.table_route_id,
22510: r_HWR_unique.information1,

Line 22533: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

22529: l_object_found_in_target := TRUE;
22530: --
22531: if l_process_date between r_HWR_unique.information2 and r_HWR_unique.information3 then
22532: l_update := true;
22533: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'
22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;

Line 22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'

22530: --
22531: if l_process_date between r_HWR_unique.information2 and r_HWR_unique.information3 then
22532: l_update := true;
22533: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'
22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;

Line 22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;

22532: l_update := true;
22533: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'
22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;
22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;

Line 22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;

22533: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'
22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;
22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;
22541: --

Line 22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;

22534: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID'
22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;
22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;
22541: --
22542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

22535: then
22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;
22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;
22541: --
22542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22543: --

Line 22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;

22536: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22537: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_HWR_unique.information1 ;
22538: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_HWR_unique.information1 ;
22539: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;
22541: --
22542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22543: --
22544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 22544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

22540: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_HWR_unique.table_route_id;
22541: --
22542: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
22543: --
22544: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
22545: --
22546: -- log_data('HWR',l_new_value,l_prefix || r_HWR_unique.name|| l_suffix,'REUSED');
22547: --
22548: end if ;

Line 22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

22572: p_from_date => l_min_esd,
22573: p_to_date => l_max_eed );
22574: if l_dt_rec_found THEN
22575: --END TEMPIK
22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then

22573: p_to_date => l_max_eed );
22574: if l_dt_rec_found THEN
22575: --END TEMPIK
22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;

22574: if l_dt_rec_found THEN
22575: --END TEMPIK
22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;

Line 22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;

22575: --END TEMPIK
22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --

Line 22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

22576: if r_HWR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --
22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

22577: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'HRS_WKD_IN_PERD_RT_ID' then
22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --
22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22585: --

Line 22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;

22578: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22579: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR_unique.information1 ;
22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --
22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22585: --
22586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

22580: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
22581: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --
22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22585: --
22586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22587: end if ;
22588: --

Line 22586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

22582: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22583: --
22584: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
22585: --
22586: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22587: end if ;
22588: --
22589: l_object_found_in_target := true ;
22590: --TEMPIK

Line 22620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22616: end if ;
22617: --
22618:
22619: l_effective_date := r_HWR.information2;
22620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22623: end if;
22624:

Line 22621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

22617: --
22618:
22619: l_effective_date := r_HWR.information2;
22620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22623: end if;
22624:
22625: if l_first_rec and not l_update then

Line 22622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

22618:
22619: l_effective_date := r_HWR.information2;
22620: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22621: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22622: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
22623: end if;
22624:
22625: if l_first_rec and not l_update then
22626: -- Call Create routine.

Line 22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;

22675: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
22676: -- Update all relevent cer records with new pk_id
22677: hr_utility.set_location('Before plsql table ',222);
22678: hr_utility.set_location('new_value id '||l_hrs_wkd_in_perd_rt_id,222);
22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;
22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;
22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;

Line 22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;

22676: -- Update all relevent cer records with new pk_id
22677: hr_utility.set_location('Before plsql table ',222);
22678: hr_utility.set_location('new_value id '||l_hrs_wkd_in_perd_rt_id,222);
22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;
22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;
22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22684: hr_utility.set_location('After plsql table ',222);

Line 22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;

22677: hr_utility.set_location('Before plsql table ',222);
22678: hr_utility.set_location('new_value id '||l_hrs_wkd_in_perd_rt_id,222);
22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;
22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;
22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22684: hr_utility.set_location('After plsql table ',222);
22685: --

Line 22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

22678: hr_utility.set_location('new_value id '||l_hrs_wkd_in_perd_rt_id,222);
22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;
22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;
22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22684: hr_utility.set_location('After plsql table ',222);
22685: --
22686: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;

22679: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'HRS_WKD_IN_PERD_RT_ID' ;
22680: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_HWR.information1 ;
22681: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_HRS_WKD_IN_PERD_RT_ID ;
22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22684: hr_utility.set_location('After plsql table ',222);
22685: --
22686: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22687: --

Line 22686: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

22682: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
22683: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_HWR_unique.table_route_id;
22684: hr_utility.set_location('After plsql table ',222);
22685: --
22686: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22687: --
22688: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22689: --
22690: else

Line 22688: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

22684: hr_utility.set_location('After plsql table ',222);
22685: --
22686: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
22687: --
22688: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
22689: --
22690: else
22691: --
22692: -- Call Update routine for the pk_id created in prev run .

Line 22802: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'HWR',r_hwr.information5 );

22798: end loop;
22799: --
22800: exception when others then
22801: --
22802: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'HWR',r_hwr.information5 );
22803: --
22804: end create_HWR_rows;
22805:
22806: --

Line 22947: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

22943: end if ;
22944: -- End Prefix Sufix derivation
22945: for r_CLR_unique in c_unique_CLR('CLR') loop
22946:
22947: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22948: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22949: r_CLR_unique.information3 >=
22950: ben_pd_copy_to_ben_one.g_copy_effective_date)
22951: ) then

Line 22948: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22944: -- End Prefix Sufix derivation
22945: for r_CLR_unique in c_unique_CLR('CLR') loop
22946:
22947: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22948: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22949: r_CLR_unique.information3 >=
22950: ben_pd_copy_to_ben_one.g_copy_effective_date)
22951: ) then
22952: --

Line 22950: ben_pd_copy_to_ben_one.g_copy_effective_date)

22946:
22947: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
22948: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22949: r_CLR_unique.information3 >=
22950: ben_pd_copy_to_ben_one.g_copy_effective_date)
22951: ) then
22952: --
22953: hr_utility.set_location(' r_CLR_unique.table_route_id '||r_CLR_unique.table_route_id,10);
22954: hr_utility.set_location(' r_CLR_unique.information1 '||r_CLR_unique.information1,10);

Line 22968: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

22964: open c_CLR_min_max_dates(r_CLR_unique.table_route_id, r_CLR_unique.information1 ) ;
22965: fetch c_CLR_min_max_dates into l_min_esd,l_max_eed ;
22966: --
22967:
22968: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22969: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22970: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22971: end if;
22972: l_min_esd := greatest(l_min_esd,r_CLR_unique.information2);

Line 22969: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

22965: fetch c_CLR_min_max_dates into l_min_esd,l_max_eed ;
22966: --
22967:
22968: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22969: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22970: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22971: end if;
22972: l_min_esd := greatest(l_min_esd,r_CLR_unique.information2);
22973: open c_CLR(r_CLR_unique.table_route_id,

Line 22970: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

22966: --
22967:
22968: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
22969: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
22970: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
22971: end if;
22972: l_min_esd := greatest(l_min_esd,r_CLR_unique.information2);
22973: open c_CLR(r_CLR_unique.table_route_id,
22974: r_CLR_unique.information1,

Line 22998: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

22994: l_object_found_in_target := TRUE;
22995: --
22996: if l_process_date between r_CLR_unique.information2 and r_CLR_unique.information3 then
22997: l_update := true;
22998: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'
23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;

Line 22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'

22995: --
22996: if l_process_date between r_CLR_unique.information2 and r_CLR_unique.information3 then
22997: l_update := true;
22998: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'
23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;

Line 23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;

22997: l_update := true;
22998: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'
23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;
23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;

Line 23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;

22998: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'
23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;
23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;
23006: --

Line 23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;

22999: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID'
23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;
23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;
23006: --
23007: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

23000: then
23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;
23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;
23006: --
23007: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23008: --

Line 23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;

23001: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'COMP_LVL_RT_ID' ;
23002: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_CLR_unique.information1 ;
23003: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_CLR_unique.information1 ;
23004: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;
23006: --
23007: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23008: --
23009: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 23009: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

23005: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_CLR_unique.table_route_id;
23006: --
23007: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23008: --
23009: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
23010: --
23011: -- log_data('CLR',l_new_value,l_prefix || r_CLR_unique.name|| l_suffix,'REUSED');
23012: --
23013: end if ;

Line 23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

23037: p_from_date => l_min_esd,
23038: p_to_date => l_max_eed );
23039: if l_dt_rec_found THEN
23040: --END TEMPIK
23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then

23038: p_to_date => l_max_eed );
23039: if l_dt_rec_found THEN
23040: --END TEMPIK
23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;

23039: if l_dt_rec_found THEN
23040: --END TEMPIK
23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;

Line 23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;

23040: --END TEMPIK
23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --

Line 23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

23041: if r_CLR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --
23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

23042: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'COMP_LVL_RT_ID' then
23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --
23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23050: --

Line 23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;

23043: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23044: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR_unique.information1 ;
23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --
23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23050: --
23051: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

23045: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23046: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --
23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23050: --
23051: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23052: end if ;
23053: --

Line 23051: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

23047: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23048: --
23049: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23050: --
23051: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23052: end if ;
23053: --
23054: l_object_found_in_target := true ;
23055: --TEMPIK

Line 23085: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23081: end if ;
23082: --
23083:
23084: l_effective_date := r_CLR.information2;
23085: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23086: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23087: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23088: end if;
23089:

Line 23086: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

23082: --
23083:
23084: l_effective_date := r_CLR.information2;
23085: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23086: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23087: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23088: end if;
23089:
23090: if l_first_rec and not l_update then

Line 23087: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

23083:
23084: l_effective_date := r_CLR.information2;
23085: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23086: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23087: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23088: end if;
23089:
23090: if l_first_rec and not l_update then
23091: -- Call Create routine.

Line 23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;

23140: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
23141: -- Update all relevent cer records with new pk_id
23142: hr_utility.set_location('Before plsql table ',222);
23143: hr_utility.set_location('new_value id '||l_comp_lvl_rt_id,222);
23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;
23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;
23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;

Line 23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;

23141: -- Update all relevent cer records with new pk_id
23142: hr_utility.set_location('Before plsql table ',222);
23143: hr_utility.set_location('new_value id '||l_comp_lvl_rt_id,222);
23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;
23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;
23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23149: hr_utility.set_location('After plsql table ',222);

Line 23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;

23142: hr_utility.set_location('Before plsql table ',222);
23143: hr_utility.set_location('new_value id '||l_comp_lvl_rt_id,222);
23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;
23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;
23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23149: hr_utility.set_location('After plsql table ',222);
23150: --

Line 23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

23143: hr_utility.set_location('new_value id '||l_comp_lvl_rt_id,222);
23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;
23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;
23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23149: hr_utility.set_location('After plsql table ',222);
23150: --
23151: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;

23144: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'COMP_LVL_RT_ID' ;
23145: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_CLR.information1 ;
23146: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_COMP_LVL_RT_ID ;
23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23149: hr_utility.set_location('After plsql table ',222);
23150: --
23151: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23152: --

Line 23151: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

23147: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23148: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_CLR_unique.table_route_id;
23149: hr_utility.set_location('After plsql table ',222);
23150: --
23151: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23152: --
23153: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23154: --
23155: else

Line 23153: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

23149: hr_utility.set_location('After plsql table ',222);
23150: --
23151: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23152: --
23153: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23154: --
23155: else
23156: --
23157: -- Call Update routine for the pk_id created in prev run .

Line 23267: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CLR',r_clr.information5 );

23263: end loop;
23264: --
23265: exception when others then
23266: --
23267: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'CLR',r_clr.information5 );
23268: --
23269: end create_CLR_rows;
23270:
23271: ---------------------------------------------------------------

Line 23406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

23402: end if ;
23403: -- End Prefix Sufix derivation
23404: for r_LSR_unique in c_unique_LSR('LSR') loop
23405:
23406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23408: r_LSR_unique.information3 >=
23409: ben_pd_copy_to_ben_one.g_copy_effective_date)
23410: ) then

Line 23407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23403: -- End Prefix Sufix derivation
23404: for r_LSR_unique in c_unique_LSR('LSR') loop
23405:
23406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23408: r_LSR_unique.information3 >=
23409: ben_pd_copy_to_ben_one.g_copy_effective_date)
23410: ) then
23411: --

Line 23409: ben_pd_copy_to_ben_one.g_copy_effective_date)

23405:
23406: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23407: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23408: r_LSR_unique.information3 >=
23409: ben_pd_copy_to_ben_one.g_copy_effective_date)
23410: ) then
23411: --
23412: hr_utility.set_location(' r_LSR_unique.table_route_id '||r_LSR_unique.table_route_id,10);
23413: hr_utility.set_location(' r_LSR_unique.information1 '||r_LSR_unique.information1,10);

Line 23427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23423: open c_LSR_min_max_dates(r_LSR_unique.table_route_id, r_LSR_unique.information1 ) ;
23424: fetch c_LSR_min_max_dates into l_min_esd,l_max_eed ;
23425: --
23426:
23427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23430: end if;
23431: l_min_esd := greatest(l_min_esd,r_LSR_unique.information2);

Line 23428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

23424: fetch c_LSR_min_max_dates into l_min_esd,l_max_eed ;
23425: --
23426:
23427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23430: end if;
23431: l_min_esd := greatest(l_min_esd,r_LSR_unique.information2);
23432: open c_LSR(r_LSR_unique.table_route_id,

Line 23429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

23425: --
23426:
23427: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23428: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23429: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23430: end if;
23431: l_min_esd := greatest(l_min_esd,r_LSR_unique.information2);
23432: open c_LSR(r_LSR_unique.table_route_id,
23433: r_LSR_unique.information1,

Line 23454: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

23450: l_object_found_in_target := TRUE;
23451: --
23452: if l_process_date between r_LSR_unique.information2 and r_LSR_unique.information3 then
23453: l_update := true;
23454: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'
23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;

Line 23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'

23451: --
23452: if l_process_date between r_LSR_unique.information2 and r_LSR_unique.information3 then
23453: l_update := true;
23454: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'
23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;

Line 23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;

23453: l_update := true;
23454: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'
23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;
23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;

Line 23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;

23454: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'
23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;
23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;
23462: --

Line 23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;

23455: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'VRBL_RT_PRFL_ID'
23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;
23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;
23462: --
23463: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

23456: then
23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;
23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;
23462: --
23463: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23464: --

Line 23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;

23457: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'VRBL_RT_PRFL_ID' ;
23458: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LSR_unique.information1 ;
23459: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LSR_unique.information1 ;
23460: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;
23462: --
23463: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23464: --
23465: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 23465: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

23461: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LSR_unique.table_route_id;
23462: --
23463: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23464: --
23465: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
23466: --
23467: -- log_data('LSR',l_new_value,l_prefix || r_LSR_unique.name|| l_suffix,'REUSED');
23468: --
23469: end if ;

Line 23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

23493: p_from_date => l_min_esd,
23494: p_to_date => l_max_eed );
23495: if l_dt_rec_found THEN
23496: --END TEMPIK
23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then

23494: p_to_date => l_max_eed );
23495: if l_dt_rec_found THEN
23496: --END TEMPIK
23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;

23495: if l_dt_rec_found THEN
23496: --END TEMPIK
23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;

Line 23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;

23496: --END TEMPIK
23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --

Line 23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

23497: if r_LSR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --
23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

23498: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'LOS_RT_ID' then
23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --
23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23506: --

Line 23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;

23499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR_unique.information1 ;
23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --
23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23506: --
23507: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

23501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
23502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --
23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23506: --
23507: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23508: end if ;
23509: --

Line 23507: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

23503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23504: --
23505: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
23506: --
23507: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23508: end if ;
23509: --
23510: l_object_found_in_target := true ;
23511: --TEMPIK

Line 23541: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23537: end if ;
23538: --
23539:
23540: l_effective_date := r_LSR.information2;
23541: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23542: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23543: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23544: end if;
23545:

Line 23542: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

23538: --
23539:
23540: l_effective_date := r_LSR.information2;
23541: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23542: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23543: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23544: end if;
23545:
23546: if l_first_rec and not l_update then

Line 23543: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

23539:
23540: l_effective_date := r_LSR.information2;
23541: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23542: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23543: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
23544: end if;
23545:
23546: if l_first_rec and not l_update then
23547: -- Call Create routine.

Line 23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;

23596: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
23597: -- Update all relevent cer records with new pk_id
23598: hr_utility.set_location('Before plsql table ',222);
23599: hr_utility.set_location('new_value id '||l_los_rt_id,222);
23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;
23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;
23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;

Line 23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;

23597: -- Update all relevent cer records with new pk_id
23598: hr_utility.set_location('Before plsql table ',222);
23599: hr_utility.set_location('new_value id '||l_los_rt_id,222);
23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;
23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;
23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23605: hr_utility.set_location('After plsql table ',222);

Line 23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;

23598: hr_utility.set_location('Before plsql table ',222);
23599: hr_utility.set_location('new_value id '||l_los_rt_id,222);
23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;
23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;
23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23605: hr_utility.set_location('After plsql table ',222);
23606: --

Line 23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

23599: hr_utility.set_location('new_value id '||l_los_rt_id,222);
23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;
23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;
23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23605: hr_utility.set_location('After plsql table ',222);
23606: --
23607: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;

23600: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'LOS_RT_ID' ;
23601: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_LSR.information1 ;
23602: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_LOS_RT_ID ;
23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23605: hr_utility.set_location('After plsql table ',222);
23606: --
23607: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23608: --

Line 23607: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

23603: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
23604: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_LSR_unique.table_route_id;
23605: hr_utility.set_location('After plsql table ',222);
23606: --
23607: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23608: --
23609: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23610: --
23611: else

Line 23609: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

23605: hr_utility.set_location('After plsql table ',222);
23606: --
23607: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
23608: --
23609: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
23610: --
23611: else
23612: --
23613: -- Call Update routine for the pk_id created in prev run .

Line 23723: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LSR',r_lsr.information5 );

23719: end loop;
23720: --
23721: exception when others then
23722: --
23723: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LSR',r_lsr.information5 );
23724: --
23725: end create_LSR_rows;
23726:
23727: --

Line 23862: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

23858: end if ;
23859: -- End Prefix Sufix derivation
23860: for r_LRN_unique in c_unique_LRN('LRN') loop
23861:
23862: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23863: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23864: r_LRN_unique.information3 >=
23865: ben_pd_copy_to_ben_one.g_copy_effective_date)
23866: ) then

Line 23863: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23859: -- End Prefix Sufix derivation
23860: for r_LRN_unique in c_unique_LRN('LRN') loop
23861:
23862: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23863: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23864: r_LRN_unique.information3 >=
23865: ben_pd_copy_to_ben_one.g_copy_effective_date)
23866: ) then
23867: --

Line 23865: ben_pd_copy_to_ben_one.g_copy_effective_date)

23861:
23862: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
23863: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23864: r_LRN_unique.information3 >=
23865: ben_pd_copy_to_ben_one.g_copy_effective_date)
23866: ) then
23867: --
23868: hr_utility.set_location(' r_LRN_unique.table_route_id '||r_LRN_unique.table_route_id,10);
23869: hr_utility.set_location(' r_LRN_unique.information1 '||r_LRN_unique.information1,10);

Line 23883: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23879: open c_LRN_min_max_dates(r_LRN_unique.table_route_id, r_LRN_unique.information1 ) ;
23880: fetch c_LRN_min_max_dates into l_min_esd,l_max_eed ;
23881: --
23882:
23883: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23884: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23885: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23886: end if;
23887: l_min_esd := greatest(l_min_esd,r_LRN_unique.information2);

Line 23884: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

23880: fetch c_LRN_min_max_dates into l_min_esd,l_max_eed ;
23881: --
23882:
23883: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23884: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23885: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23886: end if;
23887: l_min_esd := greatest(l_min_esd,r_LRN_unique.information2);
23888: open c_LRN(r_LRN_unique.table_route_id,

Line 23885: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

23881: --
23882:
23883: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23884: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23885: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
23886: end if;
23887: l_min_esd := greatest(l_min_esd,r_LRN_unique.information2);
23888: open c_LRN(r_LRN_unique.table_route_id,
23889: r_LRN_unique.information1,

Line 23910: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

23906: l_object_found_in_target := TRUE;
23907: --
23908: if l_process_date between r_LRN_unique.information2 and r_LRN_unique.information3 then
23909: l_update := true;
23910: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'
23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;

Line 23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'

23907: --
23908: if l_process_date between r_LRN_unique.information2 and r_LRN_unique.information3 then
23909: l_update := true;
23910: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'
23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;

Line 23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;

23909: l_update := true;
23910: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'
23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;
23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

Line 23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;

23910: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'
23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;
23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23918: --

Line 23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;

23911: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID'
23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;
23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23918: --
23919: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

23912: then
23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;
23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23918: --
23919: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23920: --

Line 23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

23913: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23914: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23915: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_LRN_unique.information1 ;
23916: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23918: --
23919: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23920: --
23921: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 23921: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

23917: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23918: --
23919: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
23920: --
23921: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
23922: --
23923: -- log_data('LRN',l_new_value,l_prefix || r_LRN_unique.name|| l_suffix,'REUSED');
23924: --
23925: end if ;

Line 23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or

23949: p_from_date => l_min_esd,
23950: p_to_date => l_max_eed );
23951: if l_dt_rec_found THEN
23952: --END TEMPIK
23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;

Line 23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then

23950: p_to_date => l_max_eed );
23951: if l_dt_rec_found THEN
23952: --END TEMPIK
23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

Line 23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;

23951: if l_dt_rec_found THEN
23952: --END TEMPIK
23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

Line 23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;

23952: --END TEMPIK
23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --

Line 23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;

23953: if r_LRN_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999) or
23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --
23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;

Line 23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

23954: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'LVG_RSN_RT_ID' then
23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --
23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
23962: --

Line 23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

23955: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
23956: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN_unique.information1 ;
23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --
23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
23962: --
23963: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;

23957: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_new_value ;
23958: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --
23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
23962: --
23963: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
23964: end if ;
23965: --

Line 23963: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

23959: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
23960: --
23961: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count) , p_copy_entity_txn_id) ;
23962: --
23963: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
23964: end if ;
23965: --
23966: l_object_found_in_target := true ;
23967: --TEMPIK

Line 23997: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

23993: end if ;
23994: --
23995:
23996: l_effective_date := r_LRN.information2;
23997: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23998: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23999: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24000: end if;
24001:

Line 23998: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

23994: --
23995:
23996: l_effective_date := r_LRN.information2;
23997: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23998: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23999: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24000: end if;
24001:
24002: if l_first_rec and not l_update then

Line 23999: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

23995:
23996: l_effective_date := r_LRN.information2;
23997: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
23998: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
23999: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24000: end if;
24001:
24002: if l_first_rec and not l_update then
24003: -- Call Create routine.

Line 24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;

24052: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
24053: -- Update all relevent cer records with new pk_id
24054: hr_utility.set_location('Before plsql table ',222);
24055: hr_utility.set_location('new_value id '||l_lvg_rsn_rt_id,222);
24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;
24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;
24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

Line 24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;

24053: -- Update all relevent cer records with new pk_id
24054: hr_utility.set_location('Before plsql table ',222);
24055: hr_utility.set_location('new_value id '||l_lvg_rsn_rt_id,222);
24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;
24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;
24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
24061: hr_utility.set_location('After plsql table ',222);

Line 24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;

24054: hr_utility.set_location('Before plsql table ',222);
24055: hr_utility.set_location('new_value id '||l_lvg_rsn_rt_id,222);
24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;
24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;
24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
24061: hr_utility.set_location('After plsql table ',222);
24062: --

Line 24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';

24055: hr_utility.set_location('new_value id '||l_lvg_rsn_rt_id,222);
24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;
24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;
24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
24061: hr_utility.set_location('After plsql table ',222);
24062: --
24063: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;

Line 24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;

24056: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'LVG_RSN_RT_ID' ;
24057: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_LRN.information1 ;
24058: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := l_LVG_RSN_RT_ID ;
24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
24061: hr_utility.set_location('After plsql table ',222);
24062: --
24063: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
24064: --

Line 24063: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;

24059: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'COPIED';
24060: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_LRN_unique.table_route_id;
24061: hr_utility.set_location('After plsql table ',222);
24062: --
24063: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
24064: --
24065: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
24066: --
24067: else

Line 24065: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

24061: hr_utility.set_location('After plsql table ',222);
24062: --
24063: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count),p_copy_entity_txn_id ) ;
24064: --
24065: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
24066: --
24067: else
24068: --
24069: -- Call Update routine for the pk_id created in prev run .

Line 24179: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LRN',r_lrn.information5 );

24175: end loop;
24176: --
24177: exception when others then
24178: --
24179: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'LRN',r_lrn.information5 );
24180: --
24181: end create_LRN_rows;
24182:
24183: --

Line 24324: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

24320: end if ;
24321: -- End Prefix Sufix derivation
24322: for r_ART_unique in c_unique_ART('ART') loop
24323:
24324: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24325: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24326: r_ART_unique.information3 >=
24327: ben_pd_copy_to_ben_one.g_copy_effective_date)
24328: ) then

Line 24325: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24321: -- End Prefix Sufix derivation
24322: for r_ART_unique in c_unique_ART('ART') loop
24323:
24324: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24325: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24326: r_ART_unique.information3 >=
24327: ben_pd_copy_to_ben_one.g_copy_effective_date)
24328: ) then
24329: --

Line 24327: ben_pd_copy_to_ben_one.g_copy_effective_date)

24323:
24324: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24325: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24326: r_ART_unique.information3 >=
24327: ben_pd_copy_to_ben_one.g_copy_effective_date)
24328: ) then
24329: --
24330: hr_utility.set_location(' r_ART_unique.table_route_id '||r_ART_unique.table_route_id,10);
24331: hr_utility.set_location(' r_ART_unique.information1 '||r_ART_unique.information1,10);

Line 24345: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24341: open c_ART_min_max_dates(r_ART_unique.table_route_id, r_ART_unique.information1 ) ;
24342: fetch c_ART_min_max_dates into l_min_esd,l_max_eed ;
24343: --
24344:
24345: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24346: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24347: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24348: end if;
24349: l_min_esd := greatest(l_min_esd,r_ART_unique.information2);

Line 24346: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

24342: fetch c_ART_min_max_dates into l_min_esd,l_max_eed ;
24343: --
24344:
24345: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24346: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24347: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24348: end if;
24349: l_min_esd := greatest(l_min_esd,r_ART_unique.information2);
24350: open c_ART(r_ART_unique.table_route_id,

Line 24347: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

24343: --
24344:
24345: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24346: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24347: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24348: end if;
24349: l_min_esd := greatest(l_min_esd,r_ART_unique.information2);
24350: open c_ART(r_ART_unique.table_route_id,
24351: r_ART_unique.information1,

Line 24374: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

24370: l_object_found_in_target := TRUE;
24371: --
24372: if l_process_date between r_ART_unique.information2 and r_ART_unique.information3 then
24373: l_update := true;
24374: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'
24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;

Line 24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'

24371: --
24372: if l_process_date between r_ART_unique.information2 and r_ART_unique.information3 then
24373: l_update := true;
24374: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'
24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;

Line 24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;

24373: l_update := true;
24374: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'
24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;
24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;

Line 24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;

24374: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'
24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;
24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;
24382: --

Line 24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;

24375: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'AGE_RT_ID'
24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;
24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;
24382: --
24383: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

24376: then
24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;
24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;
24382: --
24383: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24384: --

Line 24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;

24377: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'AGE_RT_ID' ;
24378: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_ART_unique.information1 ;
24379: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_ART_unique.information1 ;
24380: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;
24382: --
24383: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24384: --
24385: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 24385: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

24381: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_ART_unique.table_route_id;
24382: --
24383: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24384: --
24385: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
24386: --
24387: -- log_data('ART',l_new_value,l_prefix || r_ART_unique.name|| l_suffix,'REUSED');
24388: --
24389: end if ;

Line 24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

24413: p_from_date => l_min_esd,
24414: p_to_date => l_max_eed );
24415: if l_dt_rec_found THEN
24416: --END TEMPIK
24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then

24414: p_to_date => l_max_eed );
24415: if l_dt_rec_found THEN
24416: --END TEMPIK
24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;

24415: if l_dt_rec_found THEN
24416: --END TEMPIK
24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;

Line 24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;

24416: --END TEMPIK
24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --

Line 24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

24417: if r_ART_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --
24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

24418: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'AGE_RT_ID' then
24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --
24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24426: --

Line 24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;

24419: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24420: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART_unique.information1 ;
24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --
24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24426: --
24427: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

24421: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24422: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --
24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24426: --
24427: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24428: end if ;
24429: --

Line 24427: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

24423: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24424: --
24425: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24426: --
24427: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24428: end if ;
24429: --
24430: l_object_found_in_target := true ;
24431: --TEMPIK

Line 24461: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24457: end if ;
24458: --
24459:
24460: l_effective_date := r_ART.information2;
24461: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24462: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24463: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24464: end if;
24465:

Line 24462: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

24458: --
24459:
24460: l_effective_date := r_ART.information2;
24461: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24462: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24463: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24464: end if;
24465:
24466: if l_first_rec and not l_update then

Line 24463: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

24459:
24460: l_effective_date := r_ART.information2;
24461: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24462: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24463: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24464: end if;
24465:
24466: if l_first_rec and not l_update then
24467: -- Call Create routine.

Line 24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;

24516: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
24517: -- Update all relevent cer records with new pk_id
24518: hr_utility.set_location('Before plsql table ',222);
24519: hr_utility.set_location('new_value id '||l_age_rt_id,222);
24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;
24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;
24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;

Line 24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;

24517: -- Update all relevent cer records with new pk_id
24518: hr_utility.set_location('Before plsql table ',222);
24519: hr_utility.set_location('new_value id '||l_age_rt_id,222);
24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;
24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;
24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24525: hr_utility.set_location('After plsql table ',222);

Line 24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;

24518: hr_utility.set_location('Before plsql table ',222);
24519: hr_utility.set_location('new_value id '||l_age_rt_id,222);
24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;
24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;
24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24525: hr_utility.set_location('After plsql table ',222);
24526: --

Line 24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

24519: hr_utility.set_location('new_value id '||l_age_rt_id,222);
24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;
24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;
24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24525: hr_utility.set_location('After plsql table ',222);
24526: --
24527: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;

24520: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'AGE_RT_ID' ;
24521: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_ART.information1 ;
24522: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_AGE_RT_ID ;
24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24525: hr_utility.set_location('After plsql table ',222);
24526: --
24527: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
24528: --

Line 24527: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

24523: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
24524: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_ART_unique.table_route_id;
24525: hr_utility.set_location('After plsql table ',222);
24526: --
24527: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
24528: --
24529: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24530: --
24531: else

Line 24529: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

24525: hr_utility.set_location('After plsql table ',222);
24526: --
24527: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
24528: --
24529: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24530: --
24531: else
24532: --
24533: -- Call Update routine for the pk_id created in prev run .

Line 24643: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ART',r_art.information5 );

24639: end loop;
24640: --
24641: exception when others then
24642: --
24643: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'ART',r_art.information5 );
24644: --
24645: end create_ART_rows;
24646:
24647: --

Line 24817: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

24813: end if ;
24814: -- End Prefix Sufix derivation
24815: for r_SHR_unique in c_unique_SHR('SHR') loop
24816:
24817: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24818: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24819: r_SHR_unique.information3 >=
24820: ben_pd_copy_to_ben_one.g_copy_effective_date)
24821: ) then

Line 24818: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24814: -- End Prefix Sufix derivation
24815: for r_SHR_unique in c_unique_SHR('SHR') loop
24816:
24817: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24818: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24819: r_SHR_unique.information3 >=
24820: ben_pd_copy_to_ben_one.g_copy_effective_date)
24821: ) then
24822: --

Line 24820: ben_pd_copy_to_ben_one.g_copy_effective_date)

24816:
24817: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
24818: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24819: r_SHR_unique.information3 >=
24820: ben_pd_copy_to_ben_one.g_copy_effective_date)
24821: ) then
24822: --
24823: hr_utility.set_location(' r_SHR_unique.table_route_id '||r_SHR_unique.table_route_id,10);
24824: hr_utility.set_location(' r_SHR_unique.information1 '||r_SHR_unique.information1,10);

Line 24838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24834: open c_SHR_min_max_dates(r_SHR_unique.table_route_id, r_SHR_unique.information1 ) ;
24835: fetch c_SHR_min_max_dates into l_min_esd,l_max_eed ;
24836: --
24837:
24838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24839: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24840: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24841: end if;
24842: l_min_esd := greatest(l_min_esd,r_SHR_unique.information2);

Line 24839: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

24835: fetch c_SHR_min_max_dates into l_min_esd,l_max_eed ;
24836: --
24837:
24838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24839: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24840: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24841: end if;
24842: l_min_esd := greatest(l_min_esd,r_SHR_unique.information2);
24843: open c_SHR(r_SHR_unique.table_route_id,

Line 24840: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

24836: --
24837:
24838: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24839: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24840: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
24841: end if;
24842: l_min_esd := greatest(l_min_esd,r_SHR_unique.information2);
24843: open c_SHR(r_SHR_unique.table_route_id,
24844: r_SHR_unique.information1,

Line 24874: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

24870: l_object_found_in_target := TRUE;
24871: --
24872: if l_process_date between r_SHR_unique.information2 and r_SHR_unique.information3 then
24873: l_update := true;
24874: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'
24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;

Line 24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'

24871: --
24872: if l_process_date between r_SHR_unique.information2 and r_SHR_unique.information3 then
24873: l_update := true;
24874: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'
24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;

Line 24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;

24873: l_update := true;
24874: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'
24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;
24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;

Line 24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;

24874: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'
24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;
24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;
24882: --

Line 24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;

24875: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID'
24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;
24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;
24882: --
24883: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

24876: then
24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;
24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;
24882: --
24883: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24884: --

Line 24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;

24877: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24878: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_SHR_unique.information1 ;
24879: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_SHR_unique.information1 ;
24880: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;
24882: --
24883: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24884: --
24885: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 24885: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

24881: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_SHR_unique.table_route_id;
24882: --
24883: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
24884: --
24885: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
24886: --
24887: -- log_data('SHR',l_new_value,l_prefix || r_SHR_unique.name|| l_suffix,'REUSED');
24888: --
24889: end if ;

Line 24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

24913: p_from_date => l_min_esd,
24914: p_to_date => l_max_eed );
24915: if l_dt_rec_found THEN
24916: --END TEMPIK
24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then

24914: p_to_date => l_max_eed );
24915: if l_dt_rec_found THEN
24916: --END TEMPIK
24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;

24915: if l_dt_rec_found THEN
24916: --END TEMPIK
24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;

Line 24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;

24916: --END TEMPIK
24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --

Line 24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

24917: if r_SHR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --
24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

24918: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'SCHEDD_HRS_RT_ID' then
24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --
24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24926: --

Line 24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;

24919: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
24920: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR_unique.information1 ;
24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --
24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24926: --
24927: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

24921: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
24922: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --
24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24926: --
24927: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24928: end if ;
24929: --

Line 24927: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

24923: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
24924: --
24925: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
24926: --
24927: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
24928: end if ;
24929: --
24930: l_object_found_in_target := true ;
24931: --TEMPIK

Line 24961: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

24957: end if ;
24958: --
24959:
24960: l_effective_date := r_SHR.information2;
24961: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24962: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24963: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24964: end if;
24965:

Line 24962: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

24958: --
24959:
24960: l_effective_date := r_SHR.information2;
24961: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24962: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24963: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24964: end if;
24965:
24966: if l_first_rec and not l_update then

Line 24963: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

24959:
24960: l_effective_date := r_SHR.information2;
24961: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
24962: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
24963: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
24964: end if;
24965:
24966: if l_first_rec and not l_update then
24967: -- Call Create routine.

Line 25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;

25023: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
25024: -- Update all relevent cer records with new pk_id
25025: hr_utility.set_location('Before plsql table ',222);
25026: hr_utility.set_location('new_value id '||l_schedd_hrs_rt_id,222);
25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;
25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;
25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;

Line 25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;

25024: -- Update all relevent cer records with new pk_id
25025: hr_utility.set_location('Before plsql table ',222);
25026: hr_utility.set_location('new_value id '||l_schedd_hrs_rt_id,222);
25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;
25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;
25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
25032: hr_utility.set_location('After plsql table ',222);

Line 25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;

25025: hr_utility.set_location('Before plsql table ',222);
25026: hr_utility.set_location('new_value id '||l_schedd_hrs_rt_id,222);
25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;
25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;
25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
25032: hr_utility.set_location('After plsql table ',222);
25033: --

Line 25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

25026: hr_utility.set_location('new_value id '||l_schedd_hrs_rt_id,222);
25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;
25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;
25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
25032: hr_utility.set_location('After plsql table ',222);
25033: --
25034: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;

25027: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'SCHEDD_HRS_RT_ID' ;
25028: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_SHR.information1 ;
25029: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_SCHEDD_HRS_RT_ID ;
25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
25032: hr_utility.set_location('After plsql table ',222);
25033: --
25034: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25035: --

Line 25034: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

25030: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25031: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_SHR_unique.table_route_id;
25032: hr_utility.set_location('After plsql table ',222);
25033: --
25034: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25035: --
25036: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25037: --
25038: else

Line 25036: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

25032: hr_utility.set_location('After plsql table ',222);
25033: --
25034: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25035: --
25036: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25037: --
25038: else
25039: --
25040: -- Call Update routine for the pk_id created in prev run .

Line 25157: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'SHR',r_shr.information5 );

25153: end loop;
25154: --
25155: exception when others then
25156: --
25157: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'SHR',r_shr.information5 );
25158: --
25159: end create_SHR_rows;
25160:
25161: --

Line 25303: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

25299: end if ;
25300: -- End Prefix Sufix derivation
25301: for r_QIG_unique in c_unique_QIG('QIG') loop
25302:
25303: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25304: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25305: r_QIG_unique.information3 >=
25306: ben_pd_copy_to_ben_one.g_copy_effective_date)
25307: ) then

Line 25304: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25300: -- End Prefix Sufix derivation
25301: for r_QIG_unique in c_unique_QIG('QIG') loop
25302:
25303: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25304: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25305: r_QIG_unique.information3 >=
25306: ben_pd_copy_to_ben_one.g_copy_effective_date)
25307: ) then
25308: --

Line 25306: ben_pd_copy_to_ben_one.g_copy_effective_date)

25302:
25303: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25304: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25305: r_QIG_unique.information3 >=
25306: ben_pd_copy_to_ben_one.g_copy_effective_date)
25307: ) then
25308: --
25309: hr_utility.set_location(' r_QIG_unique.table_route_id '||r_QIG_unique.table_route_id,10);
25310: hr_utility.set_location(' r_QIG_unique.information1 '||r_QIG_unique.information1,10);

Line 25324: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25320: open c_QIG_min_max_dates(r_QIG_unique.table_route_id, r_QIG_unique.information1 ) ;
25321: fetch c_QIG_min_max_dates into l_min_esd,l_max_eed ;
25322: --
25323:
25324: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25325: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25326: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25327: end if;
25328: l_min_esd := greatest(l_min_esd,r_QIG_unique.information2);

Line 25325: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

25321: fetch c_QIG_min_max_dates into l_min_esd,l_max_eed ;
25322: --
25323:
25324: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25325: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25326: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25327: end if;
25328: l_min_esd := greatest(l_min_esd,r_QIG_unique.information2);
25329: open c_QIG(r_QIG_unique.table_route_id,

Line 25326: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

25322: --
25323:
25324: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25325: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25326: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25327: end if;
25328: l_min_esd := greatest(l_min_esd,r_QIG_unique.information2);
25329: open c_QIG(r_QIG_unique.table_route_id,
25330: r_QIG_unique.information1,

Line 25353: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

25349: l_object_found_in_target := TRUE;
25350: --
25351: if l_process_date between r_QIG_unique.information2 and r_QIG_unique.information3 then
25352: l_update := true;
25353: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'
25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;

Line 25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'

25350: --
25351: if l_process_date between r_QIG_unique.information2 and r_QIG_unique.information3 then
25352: l_update := true;
25353: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'
25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;

Line 25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;

25352: l_update := true;
25353: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'
25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;
25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;

Line 25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;

25353: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'
25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;
25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;
25361: --

Line 25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;

25354: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID'
25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;
25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;
25361: --
25362: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

25355: then
25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;
25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;
25361: --
25362: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25363: --

Line 25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;

25356: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25357: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_QIG_unique.information1 ;
25358: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_QIG_unique.information1 ;
25359: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;
25361: --
25362: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25363: --
25364: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 25364: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

25360: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_QIG_unique.table_route_id;
25361: --
25362: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25363: --
25364: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
25365: --
25366: -- log_data('QIG',l_new_value,l_prefix || r_QIG_unique.name|| l_suffix,'REUSED');
25367: --
25368: end if ;

Line 25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

25392: p_from_date => l_min_esd,
25393: p_to_date => l_max_eed );
25394: if l_dt_rec_found THEN
25395: --END TEMPIK
25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then

25393: p_to_date => l_max_eed );
25394: if l_dt_rec_found THEN
25395: --END TEMPIK
25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;

25394: if l_dt_rec_found THEN
25395: --END TEMPIK
25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;

Line 25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;

25395: --END TEMPIK
25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --

Line 25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

25396: if r_QIG_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --
25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

25397: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'QUA_IN_GR_RT_ID' then
25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --
25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25405: --

Line 25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;

25398: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25399: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG_unique.information1 ;
25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --
25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25405: --
25406: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

25400: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25401: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --
25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25405: --
25406: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25407: end if ;
25408: --

Line 25406: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

25402: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25403: --
25404: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25405: --
25406: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25407: end if ;
25408: --
25409: l_object_found_in_target := true ;
25410: --TEMPIK

Line 25440: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25436: end if ;
25437: --
25438:
25439: l_effective_date := r_QIG.information2;
25440: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25441: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25442: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25443: end if;
25444:

Line 25441: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

25437: --
25438:
25439: l_effective_date := r_QIG.information2;
25440: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25441: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25442: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25443: end if;
25444:
25445: if l_first_rec and not l_update then

Line 25442: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

25438:
25439: l_effective_date := r_QIG.information2;
25440: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25441: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25442: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25443: end if;
25444:
25445: if l_first_rec and not l_update then
25446: -- Call Create routine.

Line 25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;

25495: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
25496: -- Update all relevent cer records with new pk_id
25497: hr_utility.set_location('Before plsql table ',222);
25498: hr_utility.set_location('new_value id '||l_qua_in_gr_rt_id,222);
25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;
25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;
25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;

Line 25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;

25496: -- Update all relevent cer records with new pk_id
25497: hr_utility.set_location('Before plsql table ',222);
25498: hr_utility.set_location('new_value id '||l_qua_in_gr_rt_id,222);
25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;
25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;
25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25504: hr_utility.set_location('After plsql table ',222);

Line 25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;

25497: hr_utility.set_location('Before plsql table ',222);
25498: hr_utility.set_location('new_value id '||l_qua_in_gr_rt_id,222);
25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;
25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;
25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25504: hr_utility.set_location('After plsql table ',222);
25505: --

Line 25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

25498: hr_utility.set_location('new_value id '||l_qua_in_gr_rt_id,222);
25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;
25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;
25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25504: hr_utility.set_location('After plsql table ',222);
25505: --
25506: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;

25499: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'QUA_IN_GR_RT_ID' ;
25500: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_QIG.information1 ;
25501: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_QUA_IN_GR_RT_ID ;
25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25504: hr_utility.set_location('After plsql table ',222);
25505: --
25506: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25507: --

Line 25506: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

25502: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25503: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_QIG_unique.table_route_id;
25504: hr_utility.set_location('After plsql table ',222);
25505: --
25506: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25507: --
25508: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25509: --
25510: else

Line 25508: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

25504: hr_utility.set_location('After plsql table ',222);
25505: --
25506: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25507: --
25508: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25509: --
25510: else
25511: --
25512: -- Call Update routine for the pk_id created in prev run .

Line 25622: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'QIG',r_qig.information5 );

25618: end loop;
25619: --
25620: exception when others then
25621: --
25622: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'QIG',r_qig.information5 );
25623: --
25624: end create_QIG_rows;
25625:
25626: ---------------------------------------------------------------

Line 25771: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

25767: end if ;
25768: -- End Prefix Sufix derivation
25769: for r_PRR_unique in c_unique_PRR('PRR') loop
25770:
25771: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25772: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25773: r_PRR_unique.information3 >=
25774: ben_pd_copy_to_ben_one.g_copy_effective_date)
25775: ) then

Line 25772: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25768: -- End Prefix Sufix derivation
25769: for r_PRR_unique in c_unique_PRR('PRR') loop
25770:
25771: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25772: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25773: r_PRR_unique.information3 >=
25774: ben_pd_copy_to_ben_one.g_copy_effective_date)
25775: ) then
25776: --

Line 25774: ben_pd_copy_to_ben_one.g_copy_effective_date)

25770:
25771: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
25772: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25773: r_PRR_unique.information3 >=
25774: ben_pd_copy_to_ben_one.g_copy_effective_date)
25775: ) then
25776: --
25777: hr_utility.set_location(' r_PRR_unique.table_route_id '||r_PRR_unique.table_route_id,10);
25778: hr_utility.set_location(' r_PRR_unique.information1 '||r_PRR_unique.information1,10);

Line 25792: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25788: open c_PRR_min_max_dates(r_PRR_unique.table_route_id, r_PRR_unique.information1 ) ;
25789: fetch c_PRR_min_max_dates into l_min_esd,l_max_eed ;
25790: --
25791:
25792: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25793: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25794: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25795: end if;
25796: l_min_esd := greatest(l_min_esd,r_PRR_unique.information2);

Line 25793: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

25789: fetch c_PRR_min_max_dates into l_min_esd,l_max_eed ;
25790: --
25791:
25792: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25793: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25794: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25795: end if;
25796: l_min_esd := greatest(l_min_esd,r_PRR_unique.information2);
25797: open c_PRR(r_PRR_unique.table_route_id,

Line 25794: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

25790: --
25791:
25792: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25793: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25794: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
25795: end if;
25796: l_min_esd := greatest(l_min_esd,r_PRR_unique.information2);
25797: open c_PRR(r_PRR_unique.table_route_id,
25798: r_PRR_unique.information1,

Line 25822: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

25818: l_object_found_in_target := TRUE;
25819: --
25820: if l_process_date between r_PRR_unique.information2 and r_PRR_unique.information3 then
25821: l_update := true;
25822: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'
25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;

Line 25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'

25819: --
25820: if l_process_date between r_PRR_unique.information2 and r_PRR_unique.information3 then
25821: l_update := true;
25822: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'
25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;

Line 25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;

25821: l_update := true;
25822: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'
25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;
25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;

Line 25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;

25822: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'
25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;
25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;
25830: --

Line 25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;

25823: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID'
25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;
25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;
25830: --
25831: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

25824: then
25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;
25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;
25830: --
25831: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25832: --

Line 25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;

25825: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PERF_RTNG_RT_ID' ;
25826: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PRR_unique.information1 ;
25827: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PRR_unique.information1 ;
25828: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;
25830: --
25831: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25832: --
25833: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 25833: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

25829: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PRR_unique.table_route_id;
25830: --
25831: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
25832: --
25833: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
25834: --
25835: -- log_data('PRR',l_new_value,l_prefix || r_PRR_unique.name|| l_suffix,'REUSED');
25836: --
25837: end if ;

Line 25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

25861: p_from_date => l_min_esd,
25862: p_to_date => l_max_eed );
25863: if l_dt_rec_found THEN
25864: --END TEMPIK
25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then

25862: p_to_date => l_max_eed );
25863: if l_dt_rec_found THEN
25864: --END TEMPIK
25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;

25863: if l_dt_rec_found THEN
25864: --END TEMPIK
25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;

Line 25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;

25864: --END TEMPIK
25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --

Line 25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

25865: if r_PRR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --
25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

25866: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PERF_RTNG_RT_ID' then
25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --
25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25874: --

Line 25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;

25867: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25868: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR_unique.information1 ;
25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --
25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25874: --
25875: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

25869: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
25870: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --
25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25874: --
25875: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25876: end if ;
25877: --

Line 25875: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

25871: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25872: --
25873: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
25874: --
25875: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25876: end if ;
25877: --
25878: l_object_found_in_target := true ;
25879: --TEMPIK

Line 25909: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

25905: end if ;
25906: --
25907:
25908: l_effective_date := r_PRR.information2;
25909: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25910: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25911: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25912: end if;
25913:

Line 25910: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

25906: --
25907:
25908: l_effective_date := r_PRR.information2;
25909: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25910: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25911: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25912: end if;
25913:
25914: if l_first_rec and not l_update then

Line 25911: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

25907:
25908: l_effective_date := r_PRR.information2;
25909: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
25910: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
25911: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
25912: end if;
25913:
25914: if l_first_rec and not l_update then
25915: -- Call Create routine.

Line 25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;

25965: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
25966: -- Update all relevent cer records with new pk_id
25967: hr_utility.set_location('Before plsql table ',222);
25968: hr_utility.set_location('new_value id '||l_perf_rtng_rt_id,222);
25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;
25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;
25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;

Line 25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;

25966: -- Update all relevent cer records with new pk_id
25967: hr_utility.set_location('Before plsql table ',222);
25968: hr_utility.set_location('new_value id '||l_perf_rtng_rt_id,222);
25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;
25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;
25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25974: hr_utility.set_location('After plsql table ',222);

Line 25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;

25967: hr_utility.set_location('Before plsql table ',222);
25968: hr_utility.set_location('new_value id '||l_perf_rtng_rt_id,222);
25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;
25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;
25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25974: hr_utility.set_location('After plsql table ',222);
25975: --

Line 25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

25968: hr_utility.set_location('new_value id '||l_perf_rtng_rt_id,222);
25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;
25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;
25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25974: hr_utility.set_location('After plsql table ',222);
25975: --
25976: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;

25969: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PERF_RTNG_RT_ID' ;
25970: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PRR.information1 ;
25971: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PERF_RTNG_RT_ID ;
25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25974: hr_utility.set_location('After plsql table ',222);
25975: --
25976: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25977: --

Line 25976: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

25972: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
25973: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PRR_unique.table_route_id;
25974: hr_utility.set_location('After plsql table ',222);
25975: --
25976: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25977: --
25978: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25979: --
25980: else

Line 25978: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

25974: hr_utility.set_location('After plsql table ',222);
25975: --
25976: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
25977: --
25978: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
25979: --
25980: else
25981: --
25982: -- Call Update routine for the pk_id created in prev run .

Line 26093: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PRR',r_prr.information5 );

26089: end loop;
26090: --
26091: exception when others then
26092: --
26093: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PRR',r_prr.information5 );
26094: --
26095: end create_PRR_rows;
26096:
26097: ---------------------------------------------------------------

Line 26233: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or

26229: end if ;
26230: -- End Prefix Sufix derivation
26231: for r_PGR_unique in c_unique_PGR('PGR') loop
26232:
26233: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
26234: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26235: r_PGR_unique.information3 >=
26236: ben_pd_copy_to_ben_one.g_copy_effective_date)
26237: ) then

Line 26234: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

26230: -- End Prefix Sufix derivation
26231: for r_PGR_unique in c_unique_PGR('PGR') loop
26232:
26233: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
26234: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26235: r_PGR_unique.information3 >=
26236: ben_pd_copy_to_ben_one.g_copy_effective_date)
26237: ) then
26238: --

Line 26236: ben_pd_copy_to_ben_one.g_copy_effective_date)

26232:
26233: if (ben_pd_copy_to_ben_one.g_copy_effective_date is null or
26234: (ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26235: r_PGR_unique.information3 >=
26236: ben_pd_copy_to_ben_one.g_copy_effective_date)
26237: ) then
26238: --
26239: hr_utility.set_location(' r_PGR_unique.table_route_id '||r_PGR_unique.table_route_id,10);
26240: hr_utility.set_location(' r_PGR_unique.information1 '||r_PGR_unique.information1,10);

Line 26254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

26250: open c_PGR_min_max_dates(r_PGR_unique.table_route_id, r_PGR_unique.information1 ) ;
26251: fetch c_PGR_min_max_dates into l_min_esd,l_max_eed ;
26252: --
26253:
26254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26255: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26256: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
26257: end if;
26258: l_min_esd := greatest(l_min_esd,r_PGR_unique.information2);

Line 26255: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

26251: fetch c_PGR_min_max_dates into l_min_esd,l_max_eed ;
26252: --
26253:
26254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26255: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26256: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
26257: end if;
26258: l_min_esd := greatest(l_min_esd,r_PGR_unique.information2);
26259: open c_PGR(r_PGR_unique.table_route_id,

Line 26256: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;

26252: --
26253:
26254: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26255: l_min_esd < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26256: l_min_esd := ben_pd_copy_to_ben_one.g_copy_effective_date;
26257: end if;
26258: l_min_esd := greatest(l_min_esd,r_PGR_unique.information2);
26259: open c_PGR(r_PGR_unique.table_route_id,
26260: r_PGR_unique.information1,

Line 26281: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)

26277: l_object_found_in_target := TRUE;
26278: --
26279: if l_process_date between r_PGR_unique.information2 and r_PGR_unique.information3 then
26280: l_update := true;
26281: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'
26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;

Line 26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'

26278: --
26279: if l_process_date between r_PGR_unique.information2 and r_PGR_unique.information3 then
26280: l_update := true;
26281: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'
26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;

Line 26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;

26280: l_update := true;
26281: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'
26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;
26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;

Line 26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;

26281: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).old_value, -999)
26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'
26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;
26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;
26289: --

Line 26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;

26282: or nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID'
26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;
26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;
26289: --
26290: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;

Line 26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';

26283: then
26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;
26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;
26289: --
26290: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
26291: --

Line 26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;

26284: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).pk_id_column := 'PPL_GRP_RT_ID' ;
26285: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).old_value := r_PGR_unique.information1 ;
26286: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).new_value := r_PGR_unique.information1 ;
26287: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).copy_reuse_type := 'REUSED';
26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;
26289: --
26290: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
26291: --
26292: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

Line 26292: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;

26288: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.g_count).table_route_id := r_PGR_unique.table_route_id;
26289: --
26290: -- update_cer_with_target( g_pk_tbl(g_count),p_copy_entity_txn_id ) ;
26291: --
26292: BEN_PD_COPY_TO_BEN_ONE.g_count := BEN_PD_COPY_TO_BEN_ONE.g_count + 1 ;
26293: --
26294: -- log_data('PGR',l_new_value,l_prefix || r_PGR_unique.name|| l_suffix,'REUSED');
26295: --
26296: end if ;

Line 26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or

26320: p_from_date => l_min_esd,
26321: p_to_date => l_max_eed );
26322: if l_dt_rec_found THEN
26323: --END TEMPIK
26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

Line 26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then

26321: p_to_date => l_max_eed );
26322: if l_dt_rec_found THEN
26323: --END TEMPIK
26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

Line 26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;

26322: if l_dt_rec_found THEN
26323: --END TEMPIK
26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;

Line 26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;

26323: --END TEMPIK
26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --

Line 26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;

26324: if r_PGR_unique.information1 <> nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).old_value, -999) or
26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --
26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

Line 26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';

26325: nvl(BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT-1).pk_id_column, '999') <> 'PPL_GRP_RT_ID' then
26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --
26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
26333: --

Line 26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;

26326: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26327: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR_unique.information1 ;
26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --
26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
26333: --
26334: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

Line 26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;

26328: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_new_value ;
26329: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'REUSED';
26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --
26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
26333: --
26334: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
26335: end if ;
26336: --

Line 26334: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

26330: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26331: --
26332: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT) , p_copy_entity_txn_id) ;
26333: --
26334: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
26335: end if ;
26336: --
26337: l_object_found_in_target := true ;
26338: --TEMPIK

Line 26368: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and

26364: end if ;
26365: --
26366:
26367: l_effective_date := r_PGR.information2;
26368: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26369: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26370: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
26371: end if;
26372:

Line 26369: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then

26365: --
26366:
26367: l_effective_date := r_PGR.information2;
26368: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26369: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26370: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
26371: end if;
26372:
26373: if l_first_rec and not l_update then

Line 26370: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;

26366:
26367: l_effective_date := r_PGR.information2;
26368: if ( ben_pd_copy_to_ben_one.g_copy_effective_date is not null and
26369: l_effective_date < ben_pd_copy_to_ben_one.g_copy_effective_date ) then
26370: l_effective_date := ben_pd_copy_to_ben_one.g_copy_effective_date;
26371: end if;
26372:
26373: if l_first_rec and not l_update then
26374: -- Call Create routine.

Line 26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;

26423: -- insert the table_name,old_pk_id,new_pk_id into a plsql record
26424: -- Update all relevent cer records with new pk_id
26425: hr_utility.set_location('Before plsql table ',222);
26426: hr_utility.set_location('new_value id '||l_ppl_grp_rt_id,222);
26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;
26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;
26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;

Line 26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;

26424: -- Update all relevent cer records with new pk_id
26425: hr_utility.set_location('Before plsql table ',222);
26426: hr_utility.set_location('new_value id '||l_ppl_grp_rt_id,222);
26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;
26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;
26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26432: hr_utility.set_location('After plsql table ',222);

Line 26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;

26425: hr_utility.set_location('Before plsql table ',222);
26426: hr_utility.set_location('new_value id '||l_ppl_grp_rt_id,222);
26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;
26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;
26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26432: hr_utility.set_location('After plsql table ',222);
26433: --

Line 26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';

26426: hr_utility.set_location('new_value id '||l_ppl_grp_rt_id,222);
26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;
26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;
26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26432: hr_utility.set_location('After plsql table ',222);
26433: --
26434: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

Line 26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;

26427: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).pk_id_column := 'PPL_GRP_RT_ID' ;
26428: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).old_value := r_PGR.information1 ;
26429: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).new_value := l_PPL_GRP_RT_ID ;
26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26432: hr_utility.set_location('After plsql table ',222);
26433: --
26434: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
26435: --

Line 26434: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;

26430: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).copy_reuse_type := 'COPIED';
26431: BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT).table_route_id := r_PGR_unique.table_route_id;
26432: hr_utility.set_location('After plsql table ',222);
26433: --
26434: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
26435: --
26436: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
26437: --
26438: else

Line 26436: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;

26432: hr_utility.set_location('After plsql table ',222);
26433: --
26434: -- update_cer_with_target( BEN_PD_COPY_TO_BEN_ONE.g_pk_tbl(BEN_PD_COPY_TO_BEN_ONE.G_COUNT),p_copy_entity_txn_id ) ;
26435: --
26436: BEN_PD_COPY_TO_BEN_ONE.G_COUNT := BEN_PD_COPY_TO_BEN_ONE.G_COUNT + 1 ;
26437: --
26438: else
26439: --
26440: -- Call Update routine for the pk_id created in prev run .

Line 26550: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PGR',r_pgr.information5 );

26546: end loop;
26547: --
26548: exception when others then
26549: --
26550: BEN_PD_COPY_TO_BEN_ONE.raise_error_message( 'PGR',r_pgr.information5 );
26551: --
26552: end create_PGR_rows;
26553:
26554: procedure create_all_rt_prf_ben_rows

Line 26570: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CTY') then

26566: -- Initialization
26567: --
26568: -- Create all oipl rows.
26569: --
26570: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CTY') then
26571: BEN_PD_COPY_TO_BEN_THREE.create_CTY_rows(
26572: p_validate => p_validate
26573: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26574: ,p_effective_date => p_effective_date

Line 26583: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('JRT') then

26579: );
26580: end if;
26581: --
26582: --
26583: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('JRT') then
26584: BEN_PD_COPY_TO_BEN_THREE.create_JRT_rows(
26585: p_validate => p_validate
26586: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26587: ,p_effective_date => p_effective_date

Line 26596: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('HSR') then

26592: end if;
26593: --
26594: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_JRT_rows ');
26595: --
26596: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('HSR') then
26597: BEN_PD_COPY_TO_BEN_THREE.create_HSR_rows(
26598: p_validate => p_validate
26599: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26600: ,p_effective_date => p_effective_date

Line 26609: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('GRR') then

26605: --
26606: end if;
26607: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_HSR_rows ');
26608: --
26609: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('GRR') then
26610: BEN_PD_COPY_TO_BEN_THREE.create_GRR_rows(
26611: p_validate => p_validate
26612: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26613: ,p_effective_date => p_effective_date

Line 26622: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('FTR') then

26618: end if;
26619: --
26620: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_GRR_rows');
26621: --
26622: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('FTR') then
26623: BEN_PD_COPY_TO_BEN_THREE.create_FTR_rows(
26624: p_validate => p_validate
26625: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26626: ,p_effective_date => p_effective_date

Line 26635: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('BUR') then

26631: end if;
26632: --
26633: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_FTR_rows');
26634: --
26635: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('BUR') then
26636: BEN_PD_COPY_TO_BEN_THREE.create_BUR_rows(
26637: p_validate => p_validate
26638: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26639: ,p_effective_date => p_effective_date

Line 26648: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ESR') then

26644: end if;
26645: --
26646: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_BUR_rows');
26647: --
26648: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ESR') then
26649: BEN_PD_COPY_TO_BEN_THREE.create_ESR_rows(
26650: p_validate => p_validate
26651: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26652: ,p_effective_date => p_effective_date

Line 26660: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ASR') then

26656: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26657: end if;
26658: --
26659: --
26660: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ASR') then
26661: BEN_PD_COPY_TO_BEN_THREE.create_ASR_rows(
26662: p_validate => p_validate
26663: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26664: ,p_effective_date => p_effective_date

Line 26672: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TUR') then

26668: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26669: end if;
26670: --
26671: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_ASR_rows ');
26672: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TUR') then
26673: BEN_PD_COPY_TO_BEN_THREE.create_TUR_rows(
26674: p_validate => p_validate
26675: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26676: ,p_effective_date => p_effective_date

Line 26684: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('SAR') then

26680: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26681: end if;
26682: --
26683: --
26684: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('SAR') then
26685: BEN_PD_COPY_TO_BEN_THREE.create_SAR_rows(
26686: p_validate => p_validate
26687: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26688: ,p_effective_date => p_effective_date

Line 26696: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('QTR') then

26692: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26693: end if;
26694: --
26695: --
26696: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('QTR') then
26697: BEN_PD_COPY_TO_BEN_THREE.create_QTR_rows(
26698: p_validate => p_validate
26699: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26700: ,p_effective_date => p_effective_date

Line 26708: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PZR') then

26704: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26705: end if;
26706: --
26707: --
26708: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PZR') then
26709: BEN_PD_COPY_TO_BEN_THREE.create_PZR_rows(
26710: p_validate => p_validate
26711: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26712: ,p_effective_date => p_effective_date

Line 26720: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PTR') then

26716: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26717: end if;
26718: --
26719: --
26720: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PTR') then
26721: BEN_PD_COPY_TO_BEN_THREE.create_PTR_rows(
26722: p_validate => p_validate
26723: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26724: ,p_effective_date => p_effective_date

Line 26732: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('GNR') then

26728: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26729: end if;
26730: --
26731: --
26732: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('GNR') then
26733: BEN_PD_COPY_TO_BEN_THREE.create_GNR_rows(
26734: p_validate => p_validate
26735: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26736: ,p_effective_date => p_effective_date

Line 26745: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DBR') then

26741: end if;
26742: --
26743: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_GNR_rows ');
26744: --
26745: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DBR') then
26746: BEN_PD_COPY_TO_BEN_THREE.create_DBR_rows(
26747: p_validate => p_validate
26748: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26749: ,p_effective_date => p_effective_date

Line 26759: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LMM') then

26755: --
26756:
26757:
26758: --
26759: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LMM') then
26760: BEN_PD_COPY_TO_BEN_THREE.create_LMM_rows(
26761: p_validate => p_validate
26762: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26763: ,p_effective_date => p_effective_date

Line 26771: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LAR') then

26767: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26768: end if;
26769: --
26770: --
26771: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LAR') then
26772: BEN_PD_COPY_TO_BEN_THREE.create_LAR_rows(
26773: p_validate => p_validate
26774: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26775: ,p_effective_date => p_effective_date

Line 26783: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OUR') then

26779: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26780: end if;
26781: --
26782: --
26783: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OUR') then
26784: BEN_PD_COPY_TO_BEN_THREE.create_OUR_rows(
26785: p_validate => p_validate
26786: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26787: ,p_effective_date => p_effective_date

Line 26794: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LER1') then

26790: ,p_target_business_group_id => p_target_business_group_id
26791: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26792: end if;
26793: --
26794: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LER1') then
26795: BEN_PD_COPY_TO_BEN_THREE.create_LER1_rows(
26796: p_validate => p_validate
26797: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26798: ,p_effective_date => p_effective_date

Line 26807: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PR_') then

26803: end if;
26804: --
26805: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_LER1_rows ');
26806: --
26807: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PR_') then
26808: BEN_PD_COPY_TO_BEN_THREE.create_PR__rows(
26809: p_validate => p_validate
26810: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26811: ,p_effective_date => p_effective_date

Line 26820: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PBR') then

26816: end if;
26817: --
26818: --dbms_output.put_line( 'BEN_PD_COPY_TO_BEN_THREE.create_PR__rows');
26819: --
26820: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PBR') then
26821: BEN_PD_COPY_TO_BEN_THREE.create_PBR_rows(
26822: p_validate => p_validate
26823: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26824: ,p_effective_date => p_effective_date

Line 26831: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('BRG') then

26827: ,p_target_business_group_id => p_target_business_group_id
26828: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26829: end if;
26830: --
26831: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('BRG') then
26832: BEN_PD_COPY_TO_BEN_THREE.create_BRG_rows(
26833: p_validate => p_validate
26834: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26835: ,p_effective_date => p_effective_date

Line 26843: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CMR') then

26839: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26840: end if;
26841: --
26842: --
26843: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CMR') then
26844: BEN_PD_COPY_TO_BEN_THREE.create_CMR_rows(
26845: p_validate => p_validate
26846: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26847: ,p_effective_date => p_effective_date

Line 26855: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('VMR') then

26851: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26852: end if;
26853: --
26854: --
26855: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('VMR') then
26856: BEN_PD_COPY_TO_BEN_THREE.create_VMR_rows(
26857: p_validate => p_validate
26858: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26859: ,p_effective_date => p_effective_date

Line 26867: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('NOC') then

26863: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26864: end if;
26865: --
26866: --
26867: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('NOC') then
26868: BEN_PD_COPY_TO_BEN_THREE.create_NOC_rows(
26869: p_validate => p_validate
26870: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26871: ,p_effective_date => p_effective_date

Line 26879: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OMR') then

26875: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26876: end if;
26877: --
26878: --
26879: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OMR') then
26880: BEN_PD_COPY_TO_BEN_THREE.create_OMR_rows(
26881: p_validate => p_validate
26882: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26883: ,p_effective_date => p_effective_date

Line 26891: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TTP') then

26887: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26888: end if;
26889: --
26890: --
26891: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TTP') then
26892: BEN_PD_COPY_TO_BEN_THREE.create_TTP_rows(
26893: p_validate => p_validate
26894: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26895: ,p_effective_date => p_effective_date

Line 26903: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TCV') then

26899: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26900: end if;
26901: --
26902: --
26903: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('TCV') then
26904: BEN_PD_COPY_TO_BEN_THREE.create_TCV_rows(
26905: p_validate => p_validate
26906: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26907: ,p_effective_date => p_effective_date

Line 26915: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('VPR') then

26911: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26912: end if;
26913: --
26914: --
26915: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('VPR') then
26916: BEN_PD_COPY_TO_BEN_THREE.create_VPR_rows(
26917: p_validate => p_validate
26918: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26919: ,p_effective_date => p_effective_date

Line 26927: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PRT') then

26923: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26924: end if;
26925: --
26926: --
26927: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PRT') then
26928: BEN_PD_COPY_TO_BEN_THREE.create_PRT_rows(
26929: p_validate => p_validate
26930: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26931: ,p_effective_date => p_effective_date

Line 26939: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CPN') then

26935: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26936: end if;
26937: --
26938: --
26939: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CPN') then
26940: BEN_PD_COPY_TO_BEN_THREE.create_CPN_rows(
26941: p_validate => p_validate
26942: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26943: ,p_effective_date => p_effective_date

Line 26951: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PST') then

26947: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26948: end if;
26949: --
26950: --
26951: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PST') then
26952: BEN_PD_COPY_TO_BEN_THREE.create_PST_rows(
26953: p_validate => p_validate
26954: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26955: ,p_effective_date => p_effective_date

Line 26963: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('WLR') then

26959: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26960: end if;
26961: --
26962: --
26963: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('WLR') then
26964: BEN_PD_COPY_TO_BEN_THREE.create_WLR_rows(
26965: p_validate => p_validate
26966: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26967: ,p_effective_date => p_effective_date

Line 26975: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PFR') then

26971: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26972: end if;
26973: --
26974: --
26975: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PFR') then
26976: BEN_PD_COPY_TO_BEN_THREE.create_PFR_rows(
26977: p_validate => p_validate
26978: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26979: ,p_effective_date => p_effective_date

Line 26987: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('HWR') then

26983: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26984: end if;
26985: --
26986: --
26987: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('HWR') then
26988: BEN_PD_COPY_TO_BEN_THREE.create_HWR_rows(
26989: p_validate => p_validate
26990: ,p_copy_entity_txn_id => p_copy_entity_txn_id
26991: ,p_effective_date => p_effective_date

Line 26999: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CLR') then

26995: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
26996: end if;
26997: --
26998: --
26999: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CLR') then
27000: BEN_PD_COPY_TO_BEN_THREE.create_CLR_rows(
27001: p_validate => p_validate
27002: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27003: ,p_effective_date => p_effective_date

Line 27011: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LSR') then

27007: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27008: end if;
27009: --
27010: --
27011: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LSR') then
27012: BEN_PD_COPY_TO_BEN_THREE.create_LSR_rows(
27013: p_validate => p_validate
27014: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27015: ,p_effective_date => p_effective_date

Line 27023: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LRN') then

27019: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27020: end if;
27021: --
27022: --
27023: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('LRN') then
27024: BEN_PD_COPY_TO_BEN_THREE.create_LRN_rows(
27025: p_validate => p_validate
27026: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27027: ,p_effective_date => p_effective_date

Line 27035: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ART') then

27031: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27032: end if;
27033: --
27034: --
27035: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ART') then
27036: BEN_PD_COPY_TO_BEN_THREE.create_ART_rows(
27037: p_validate => p_validate
27038: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27039: ,p_effective_date => p_effective_date

Line 27047: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('SHR') then

27043: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27044: end if;
27045: --
27046: --
27047: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('SHR') then
27048: BEN_PD_COPY_TO_BEN_THREE.create_SHR_rows(
27049: p_validate => p_validate
27050: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27051: ,p_effective_date => p_effective_date

Line 27059: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('QIG') then

27055: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27056: end if;
27057: --
27058: --
27059: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('QIG') then
27060: BEN_PD_COPY_TO_BEN_THREE.create_QIG_rows(
27061: p_validate => p_validate
27062: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27063: ,p_effective_date => p_effective_date

Line 27071: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PRR') then

27067: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27068: end if;
27069: --
27070: --
27071: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PRR') then
27072: BEN_PD_COPY_TO_BEN_THREE.create_PRR_rows(
27073: p_validate => p_validate
27074: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27075: ,p_effective_date => p_effective_date

Line 27086: if BEN_PD_COPY_TO_BEN_ONE.g_transaction_category = 'BEN_PDCRWZ' then

27082:
27083: --
27084: -- Foll. Criteria to be copied only in Create Plan Wizard flow
27085: --
27086: if BEN_PD_COPY_TO_BEN_ONE.g_transaction_category = 'BEN_PDCRWZ' then
27087: --
27088: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CQR') then
27089: BEN_PD_COPY_TO_BEN_THREE.create_CQR_rows(
27090: p_validate => p_validate

Line 27088: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CQR') then

27084: -- Foll. Criteria to be copied only in Create Plan Wizard flow
27085: --
27086: if BEN_PD_COPY_TO_BEN_ONE.g_transaction_category = 'BEN_PDCRWZ' then
27087: --
27088: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('CQR') then
27089: BEN_PD_COPY_TO_BEN_THREE.create_CQR_rows(
27090: p_validate => p_validate
27091: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27092: ,p_effective_date => p_effective_date

Line 27100: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PAP') then

27096: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27097: end if;
27098: --
27099: --
27100: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PAP') then
27101: BEN_PD_COPY_TO_BEN_THREE.create_PAP_rows(
27102: p_validate => p_validate
27103: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27104: ,p_effective_date => p_effective_date

Line 27112: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OPR') then

27108: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27109: end if;
27110: --
27111: --
27112: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('OPR') then
27113: BEN_PD_COPY_TO_BEN_THREE.create_OPR_rows(
27114: p_validate => p_validate
27115: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27116: ,p_effective_date => p_effective_date

Line 27124: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ENT') then

27120: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27121: end if;
27122: --
27123: --
27124: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ENT') then
27125: BEN_PD_COPY_TO_BEN_THREE.create_ENT_rows(
27126: p_validate => p_validate
27127: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27128: ,p_effective_date => p_effective_date

Line 27136: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ENL') then

27132: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27133: end if;
27134: --
27135: --
27136: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('ENL') then
27137: BEN_PD_COPY_TO_BEN_THREE.create_ENL_rows(
27138: p_validate => p_validate
27139: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27140: ,p_effective_date => p_effective_date

Line 27148: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EAR') then

27144: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27145: end if;
27146: --
27147: --
27148: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EAR') then
27149: BEN_PD_COPY_TO_BEN_THREE.create_EAR_rows(
27150: p_validate => p_validate
27151: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27152: ,p_effective_date => p_effective_date

Line 27160: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EAO') then

27156: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27157: end if;
27158: --
27159: --
27160: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EAO') then
27161: BEN_PD_COPY_TO_BEN_THREE.create_EAO_rows(
27162: p_validate => p_validate
27163: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27164: ,p_effective_date => p_effective_date

Line 27172: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DOT') then

27168: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27169: end if;
27170: --
27171: --
27172: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DOT') then
27173: BEN_PD_COPY_TO_BEN_THREE.create_DOT_rows(
27174: p_validate => p_validate
27175: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27176: ,p_effective_date => p_effective_date

Line 27184: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DOP') then

27180: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27181: end if;
27182: --
27183: --
27184: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DOP') then
27185: BEN_PD_COPY_TO_BEN_THREE.create_DOP_rows(
27186: p_validate => p_validate
27187: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27188: ,p_effective_date => p_effective_date

Line 27196: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCP') then

27192: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27193: end if;
27194: --
27195: --
27196: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCP') then
27197: BEN_PD_COPY_TO_BEN_THREE.create_DCP_rows(
27198: p_validate => p_validate
27199: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27200: ,p_effective_date => p_effective_date

Line 27208: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCO') then

27204: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27205: end if;
27206: --
27207: --
27208: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCO') then
27209: BEN_PD_COPY_TO_BEN_THREE.create_DCO_rows(
27210: p_validate => p_validate
27211: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27212: ,p_effective_date => p_effective_date

Line 27220: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCL') then

27216: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27217: end if;
27218: --
27219: --
27220: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('DCL') then
27221: BEN_PD_COPY_TO_BEN_THREE.create_DCL_rows(
27222: p_validate => p_validate
27223: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27224: ,p_effective_date => p_effective_date

Line 27232: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EPM') then

27228: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27229: end if;
27230: --
27231: --
27232: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('EPM') then
27233: BEN_PD_COPY_TO_BEN_THREE.create_EPM_rows(
27234: p_validate => p_validate
27235: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27236: ,p_effective_date => p_effective_date

Line 27244: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PGR') then

27240: ,p_prefix_suffix_cd => p_prefix_suffix_cd );
27241: end if;
27242: --
27243: --
27244: if BEN_PD_COPY_TO_BEN_ONE.data_exists_for_table('PGR') then
27245: BEN_PD_COPY_TO_BEN_THREE.create_PGR_rows(
27246: p_validate => p_validate
27247: ,p_copy_entity_txn_id => p_copy_entity_txn_id
27248: ,p_effective_date => p_effective_date