[Home] [Help]
87: --
88: Cursor C_Sel1 Is
89: select t.created_by,
90: t.creation_date
91: from pqp_pension_types_f t
92: where t.pension_type_id = p_rec.pension_type_id
93: and t.effective_start_date =
94: pqp_pty_shd.g_old_rec.effective_start_date
95: and t.effective_end_date = (p_validation_start_date - 1);
94: pqp_pty_shd.g_old_rec.effective_start_date
95: and t.effective_end_date = (p_validation_start_date - 1);
96: --
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by pqp_pension_types_f.created_by%TYPE;
99: l_creation_date pqp_pension_types_f.creation_date%TYPE;
100: l_last_update_date pqp_pension_types_f.last_update_date%TYPE;
101: l_last_updated_by pqp_pension_types_f.last_updated_by%TYPE;
102: l_last_update_login pqp_pension_types_f.last_update_login%TYPE;
95: and t.effective_end_date = (p_validation_start_date - 1);
96: --
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by pqp_pension_types_f.created_by%TYPE;
99: l_creation_date pqp_pension_types_f.creation_date%TYPE;
100: l_last_update_date pqp_pension_types_f.last_update_date%TYPE;
101: l_last_updated_by pqp_pension_types_f.last_updated_by%TYPE;
102: l_last_update_login pqp_pension_types_f.last_update_login%TYPE;
103: --
96: --
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by pqp_pension_types_f.created_by%TYPE;
99: l_creation_date pqp_pension_types_f.creation_date%TYPE;
100: l_last_update_date pqp_pension_types_f.last_update_date%TYPE;
101: l_last_updated_by pqp_pension_types_f.last_updated_by%TYPE;
102: l_last_update_login pqp_pension_types_f.last_update_login%TYPE;
103: --
104: Begin
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by pqp_pension_types_f.created_by%TYPE;
99: l_creation_date pqp_pension_types_f.creation_date%TYPE;
100: l_last_update_date pqp_pension_types_f.last_update_date%TYPE;
101: l_last_updated_by pqp_pension_types_f.last_updated_by%TYPE;
102: l_last_update_login pqp_pension_types_f.last_update_login%TYPE;
103: --
104: Begin
105: hr_utility.set_location('Entering:'||l_proc, 5);
98: l_created_by pqp_pension_types_f.created_by%TYPE;
99: l_creation_date pqp_pension_types_f.creation_date%TYPE;
100: l_last_update_date pqp_pension_types_f.last_update_date%TYPE;
101: l_last_updated_by pqp_pension_types_f.last_updated_by%TYPE;
102: l_last_update_login pqp_pension_types_f.last_update_login%TYPE;
103: --
104: Begin
105: hr_utility.set_location('Entering:'||l_proc, 5);
106: --
107: -- Get the object version number for the insert
108: --
109: p_rec.object_version_number :=
110: dt_api.get_object_version_number
111: (p_base_table_name => 'pqp_pension_types_f'
112: ,p_base_key_column => 'pension_type_id'
113: ,p_base_key_value => p_rec.pension_type_id
114: );
115: --
150: End If;
151: --
152: --
153: --
154: -- Insert the row into: pqp_pension_types_f
155: --
156: insert into pqp_pension_types_f
157: (pension_type_id
158: ,effective_start_date
152: --
153: --
154: -- Insert the row into: pqp_pension_types_f
155: --
156: insert into pqp_pension_types_f
157: (pension_type_id
158: ,effective_start_date
159: ,effective_end_date
160: ,pension_type_name
500: Cursor C_Sel1 is select pqp_pension_types_s.nextval from sys.dual;
501: --
502: Cursor C_Sel2 is
503: Select null
504: from pqp_pension_types_f
505: where pension_type_id =
506: pqp_pty_ins.g_pension_type_id_i;
507: --
508: l_proc varchar2(72) := g_package||'pre_insert';
522: --
523: -- The primary key values are already in use.
524: --
525: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
526: fnd_message.set_token('TABLE_NAME','pqp_pension_types_f');
527: fnd_message.raise_error;
528: End If;
529: Close C_Sel2;
530: --
802: --
803: when hr_api.cannot_find_prog_unit then
804: --
805: hr_api.cannot_find_prog_unit_error
806: (p_module_name => 'PQP_PENSION_TYPES_F'
807: ,p_hook_type => 'AI');
808: --
809: end;
810: --
867: --
868: dt_api.validate_dt_mode
869: (p_effective_date => p_effective_date
870: ,p_datetrack_mode => p_datetrack_mode
871: ,p_base_table_name => 'pqp_pension_types_f'
872: ,p_base_key_column => 'pension_type_id'
873: ,p_base_key_value => p_rec.pension_type_id
874: ,p_enforce_foreign_locking => true
875: ,p_validation_start_date => l_validation_start_date