18: Begin
19: --
20: hr_utility.set_location('Entering'||l_proc, 5);
21: --
22: ben_ext_person.g_bnf_pl_bnf_id := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
19: --
20: hr_utility.set_location('Entering'||l_proc, 5);
21: --
22: ben_ext_person.g_bnf_pl_bnf_id := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
20: hr_utility.set_location('Entering'||l_proc, 5);
21: --
22: ben_ext_person.g_bnf_pl_bnf_id := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
21: --
22: ben_ext_person.g_bnf_pl_bnf_id := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
22: ben_ext_person.g_bnf_pl_bnf_id := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
23: ben_ext_person.g_bnf_ssn := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
24: ben_ext_person.g_bnf_lst_nm := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
25: ben_ext_person.g_bnf_fst_nm := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
26: ben_ext_person.g_bnf_mid_nm := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
27: ben_ext_person.g_bnf_fl_nm := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
28: ben_ext_person.g_bnf_suffix := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
29: ben_ext_person.g_bnf_prefix := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
30: ben_ext_person.g_bnf_title := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
31: ben_ext_person.g_bnf_prv_lst_nm := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
32: ben_ext_person.g_bnf_pre_nm_adjunct := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
33: ben_ext_person.g_bnf_prmy_cont := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
34: ben_ext_person.g_bnf_pct_dsgd := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
35: ben_ext_person.g_bnf_amt_dsgd := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
36: ben_ext_person.g_bnf_amt_uom := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
37: ben_ext_person.g_bnf_rlshp := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
38: ben_ext_person.g_bnf_contact_seq_num := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
39: ben_ext_person.g_bnf_shared_resd_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
40: ben_ext_person.g_bnf_email_address := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
41: ben_ext_person.g_bnf_known_as := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
42: ben_ext_person.g_bnf_nationality := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
43: ben_ext_person.g_bnf_tobacco_usage := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
44: ben_ext_person.g_bnf_gender := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
45: ben_ext_person.g_bnf_date_of_birth := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
46: ben_ext_person.g_bnf_marital_status := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
47: ben_ext_person.g_bnf_disabled_flag := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
48: ben_ext_person.g_bnf_student_status := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
49: ben_ext_person.g_bnf_date_of_death := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
50: ben_ext_person.g_bnf_language := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
51: ben_ext_person.g_bnf_prim_address1 := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
52: ben_ext_person.g_bnf_prim_address2 := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
53: ben_ext_person.g_bnf_prim_address3 := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
54: ben_ext_person.g_bnf_prim_city := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
55: ben_ext_person.g_bnf_prim_state := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
63: ben_ext_person.g_bnf_mobile := null;
56: ben_ext_person.g_bnf_prim_postal_code := null;
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
63: ben_ext_person.g_bnf_mobile := null;
64:
57: ben_ext_person.g_bnf_prim_country := null;
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
63: ben_ext_person.g_bnf_mobile := null;
64:
65: --
58: ben_ext_person.g_bnf_prim_effect_date := null;
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
63: ben_ext_person.g_bnf_mobile := null;
64:
65: --
66: hr_utility.set_location('Exiting'||l_proc, 15);
59: ben_ext_person.g_bnf_prim_region := null;
60: ben_ext_person.g_bnf_home_phone := null;
61: ben_ext_person.g_bnf_work_phone := null;
62: ben_ext_person.g_bnf_fax := null;
63: ben_ext_person.g_bnf_mobile := null;
64:
65: --
66: hr_utility.set_location('Exiting'||l_proc, 15);
67: --
266: --
267: FOR bnfcry IN c_bnfcry(p_prtt_enrt_rslt_id) LOOP
268: -- assign beneficiary info to global variables
269: --
270: ben_ext_person.g_bnf_ssn := bnfcry.bnf_ssn;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
267: FOR bnfcry IN c_bnfcry(p_prtt_enrt_rslt_id) LOOP
268: -- assign beneficiary info to global variables
269: --
270: ben_ext_person.g_bnf_ssn := bnfcry.bnf_ssn;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
268: -- assign beneficiary info to global variables
269: --
270: ben_ext_person.g_bnf_ssn := bnfcry.bnf_ssn;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
269: --
270: ben_ext_person.g_bnf_ssn := bnfcry.bnf_ssn;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
270: ben_ext_person.g_bnf_ssn := bnfcry.bnf_ssn;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
271: ben_ext_person.g_bnf_lst_nm := bnfcry.bnf_lst_nm;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
272: ben_ext_person.g_bnf_fst_nm := bnfcry.bnf_fst_nm;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
273: ben_ext_person.g_bnf_mid_nm := bnfcry.bnf_mid_nm;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
274: ben_ext_person.g_bnf_fl_nm := bnfcry.bnf_fl_nm;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
275: ben_ext_person.g_bnf_suffix := bnfcry.bnf_suffix;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
276: ben_ext_person.g_bnf_prefix := bnfcry.bnf_prefix;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
277: ben_ext_person.g_bnf_title := bnfcry.bnf_title;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
278: ben_ext_person.g_bnf_prv_lst_nm := bnfcry.bnf_prv_lst_nm;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
279: ben_ext_person.g_bnf_pre_nm_adjunct := bnfcry.bnf_pre_nm_adjunct;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
280: ben_ext_person.g_bnf_email_address := bnfcry.bnf_email;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
281: ben_ext_person.g_bnf_known_as := bnfcry.bnf_known_as;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
282: ben_ext_person.g_bnf_nationality := bnfcry.bnf_nationality;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
283: ben_ext_person.g_bnf_tobacco_usage := bnfcry.bnf_tobacco_usage;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
284: ben_ext_person.g_bnf_gender := bnfcry.bnf_gender;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
285: ben_ext_person.g_bnf_date_of_birth := bnfcry.bnf_dob;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
286: ben_ext_person.g_bnf_marital_status := bnfcry.bnf_marital_status;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
287: ben_ext_person.g_bnf_disabled_flag := bnfcry.bnf_disabled_flag;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
288: ben_ext_person.g_bnf_student_status := bnfcry.bnf_student_status;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
289: ben_ext_person.g_bnf_date_of_death := bnfcry.bnf_dod;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
290: ben_ext_person.g_bnf_language := bnfcry.bnf_language;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
298: ben_ext_person.g_bnf_pl_bnf_id := bnfcry.pl_bnf_id;
291: ben_ext_person.g_bnf_prmy_cont := bnfcry.bnf_prmy_cont;
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
298: ben_ext_person.g_bnf_pl_bnf_id := bnfcry.pl_bnf_id;
299:
292: ben_ext_person.g_bnf_pct_dsgd := bnfcry.bnf_pct_dsgd;
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
298: ben_ext_person.g_bnf_pl_bnf_id := bnfcry.pl_bnf_id;
299:
300: --
293: ben_ext_person.g_bnf_amt_dsgd := bnfcry.bnf_amt_dsgd;
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
298: ben_ext_person.g_bnf_pl_bnf_id := bnfcry.pl_bnf_id;
299:
300: --
301: hr_utility.set_location('Beneficiary id ' || bnfcry.bnf_person_id,178);
294: ben_ext_person.g_bnf_amt_uom := bnfcry.bnf_amt_uom;
295: ben_ext_person.g_bnf_rlshp := bnfcry.bnf_rlshp;
296: ben_ext_person.g_bnf_contact_seq_num := bnfcry.bnf_contact_seq_num;
297: ben_ext_person.g_bnf_shared_resd_flag := bnfcry.rltd_per_rsds_w_dsgntr_flag;
298: ben_ext_person.g_bnf_pl_bnf_id := bnfcry.pl_bnf_id;
299:
300: --
301: hr_utility.set_location('Beneficiary id ' || bnfcry.bnf_person_id,178);
302: --
303: -- retrieve beneficiary address if required
304: l_relatated_true := 'N' ;
305: if ben_extract.g_ba_csr = 'Y' then
306: open prim_address_c(bnfcry.bnf_person_id);
307: fetch prim_address_c into ben_ext_person.g_bnf_prim_address1
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
304: l_relatated_true := 'N' ;
305: if ben_extract.g_ba_csr = 'Y' then
306: open prim_address_c(bnfcry.bnf_person_id);
307: fetch prim_address_c into ben_ext_person.g_bnf_prim_address1
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
305: if ben_extract.g_ba_csr = 'Y' then
306: open prim_address_c(bnfcry.bnf_person_id);
307: fetch prim_address_c into ben_ext_person.g_bnf_prim_address1
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
306: open prim_address_c(bnfcry.bnf_person_id);
307: fetch prim_address_c into ben_ext_person.g_bnf_prim_address1
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
307: fetch prim_address_c into ben_ext_person.g_bnf_prim_address1
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
308: , ben_ext_person.g_bnf_prim_address2
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
309: , ben_ext_person.g_bnf_prim_address3
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
310: , ben_ext_person.g_bnf_prim_city
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
311: , ben_ext_person.g_bnf_prim_state
312: , ben_ext_person.g_bnf_prim_postal_code
313: , ben_ext_person.g_bnf_prim_country
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
314: , ben_ext_person.g_bnf_prim_effect_date
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
315: , ben_ext_person.g_bnf_prim_region;
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
316: if prim_address_c%notfound then
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
317: open prim_rltd_address_c(bnfcry.bnf_person_id);
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
318: fetch prim_rltd_address_c into ben_ext_person.g_bnf_prim_address1
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
326: , ben_ext_person.g_bnf_prim_region;
319: , ben_ext_person.g_bnf_prim_address2
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
326: , ben_ext_person.g_bnf_prim_region;
327: close prim_rltd_address_c;
320: , ben_ext_person.g_bnf_prim_address3
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
326: , ben_ext_person.g_bnf_prim_region;
327: close prim_rltd_address_c;
328: l_relatated_true := 'Y' ;
321: , ben_ext_person.g_bnf_prim_city
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
326: , ben_ext_person.g_bnf_prim_region;
327: close prim_rltd_address_c;
328: l_relatated_true := 'Y' ;
329: end if;
322: , ben_ext_person.g_bnf_prim_state
323: , ben_ext_person.g_bnf_prim_postal_code
324: , ben_ext_person.g_bnf_prim_country
325: , ben_ext_person.g_bnf_prim_effect_date
326: , ben_ext_person.g_bnf_prim_region;
327: close prim_rltd_address_c;
328: l_relatated_true := 'Y' ;
329: end if;
330: close prim_address_c;
334:
335: if ben_extract.g_bp_csr = 'Y' then
336: if l_relatated_true = 'N' then
337: open ext_phone_c(bnfcry.bnf_person_id);
338: fetch ext_phone_c into ben_ext_person.g_bnf_home_phone
339: , ben_ext_person.g_bnf_work_phone
340: , ben_ext_person.g_bnf_fax
341: , ben_ext_person.g_bnf_mobile;
342: close ext_phone_c;
335: if ben_extract.g_bp_csr = 'Y' then
336: if l_relatated_true = 'N' then
337: open ext_phone_c(bnfcry.bnf_person_id);
338: fetch ext_phone_c into ben_ext_person.g_bnf_home_phone
339: , ben_ext_person.g_bnf_work_phone
340: , ben_ext_person.g_bnf_fax
341: , ben_ext_person.g_bnf_mobile;
342: close ext_phone_c;
343: else
336: if l_relatated_true = 'N' then
337: open ext_phone_c(bnfcry.bnf_person_id);
338: fetch ext_phone_c into ben_ext_person.g_bnf_home_phone
339: , ben_ext_person.g_bnf_work_phone
340: , ben_ext_person.g_bnf_fax
341: , ben_ext_person.g_bnf_mobile;
342: close ext_phone_c;
343: else
344:
337: open ext_phone_c(bnfcry.bnf_person_id);
338: fetch ext_phone_c into ben_ext_person.g_bnf_home_phone
339: , ben_ext_person.g_bnf_work_phone
340: , ben_ext_person.g_bnf_fax
341: , ben_ext_person.g_bnf_mobile;
342: close ext_phone_c;
343: else
344:
345: open ext_related_phone_c(bnfcry.bnf_person_id);
342: close ext_phone_c;
343: else
344:
345: open ext_related_phone_c(bnfcry.bnf_person_id);
346: fetch ext_related_phone_c into ben_ext_person.g_bnf_home_phone
347: , ben_ext_person.g_bnf_work_phone
348: , ben_ext_person.g_bnf_fax
349: , ben_ext_person.g_bnf_mobile;
350: hr_utility.set_location('sec_ph'|| ben_ext_person.g_bnf_home_phone,178);
343: else
344:
345: open ext_related_phone_c(bnfcry.bnf_person_id);
346: fetch ext_related_phone_c into ben_ext_person.g_bnf_home_phone
347: , ben_ext_person.g_bnf_work_phone
348: , ben_ext_person.g_bnf_fax
349: , ben_ext_person.g_bnf_mobile;
350: hr_utility.set_location('sec_ph'|| ben_ext_person.g_bnf_home_phone,178);
351: close ext_related_phone_c;
344:
345: open ext_related_phone_c(bnfcry.bnf_person_id);
346: fetch ext_related_phone_c into ben_ext_person.g_bnf_home_phone
347: , ben_ext_person.g_bnf_work_phone
348: , ben_ext_person.g_bnf_fax
349: , ben_ext_person.g_bnf_mobile;
350: hr_utility.set_location('sec_ph'|| ben_ext_person.g_bnf_home_phone,178);
351: close ext_related_phone_c;
352: end if ;
345: open ext_related_phone_c(bnfcry.bnf_person_id);
346: fetch ext_related_phone_c into ben_ext_person.g_bnf_home_phone
347: , ben_ext_person.g_bnf_work_phone
348: , ben_ext_person.g_bnf_fax
349: , ben_ext_person.g_bnf_mobile;
350: hr_utility.set_location('sec_ph'|| ben_ext_person.g_bnf_home_phone,178);
351: close ext_related_phone_c;
352: end if ;
353: end if ;
346: fetch ext_related_phone_c into ben_ext_person.g_bnf_home_phone
347: , ben_ext_person.g_bnf_work_phone
348: , ben_ext_person.g_bnf_fax
349: , ben_ext_person.g_bnf_mobile;
350: hr_utility.set_location('sec_ph'|| ben_ext_person.g_bnf_home_phone,178);
351: close ext_related_phone_c;
352: end if ;
353: end if ;
354: --