87: --
88: Cursor C_Sel1 Is
89: select t.created_by,
90: t.creation_date
91: from per_spinal_point_steps_f t
92: where t.step_id = p_rec.step_id
93: and t.effective_start_date =
94: per_sps_shd.g_old_rec.effective_start_date
95: and t.effective_end_date = (p_validation_start_date - 1);
94: per_sps_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 per_spinal_point_steps_f.created_by%TYPE;
99: l_creation_date per_spinal_point_steps_f.creation_date%TYPE;
100: l_last_update_date per_spinal_point_steps_f.last_update_date%TYPE;
101: l_last_updated_by per_spinal_point_steps_f.last_updated_by%TYPE;
102: l_last_update_login per_spinal_point_steps_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 per_spinal_point_steps_f.created_by%TYPE;
99: l_creation_date per_spinal_point_steps_f.creation_date%TYPE;
100: l_last_update_date per_spinal_point_steps_f.last_update_date%TYPE;
101: l_last_updated_by per_spinal_point_steps_f.last_updated_by%TYPE;
102: l_last_update_login per_spinal_point_steps_f.last_update_login%TYPE;
103: --
96: --
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by per_spinal_point_steps_f.created_by%TYPE;
99: l_creation_date per_spinal_point_steps_f.creation_date%TYPE;
100: l_last_update_date per_spinal_point_steps_f.last_update_date%TYPE;
101: l_last_updated_by per_spinal_point_steps_f.last_updated_by%TYPE;
102: l_last_update_login per_spinal_point_steps_f.last_update_login%TYPE;
103: --
104: Begin
97: l_proc varchar2(72) := g_package||'dt_insert_dml';
98: l_created_by per_spinal_point_steps_f.created_by%TYPE;
99: l_creation_date per_spinal_point_steps_f.creation_date%TYPE;
100: l_last_update_date per_spinal_point_steps_f.last_update_date%TYPE;
101: l_last_updated_by per_spinal_point_steps_f.last_updated_by%TYPE;
102: l_last_update_login per_spinal_point_steps_f.last_update_login%TYPE;
103: --
104: Begin
105: hr_utility.set_location('Entering:'||l_proc, 5);
98: l_created_by per_spinal_point_steps_f.created_by%TYPE;
99: l_creation_date per_spinal_point_steps_f.creation_date%TYPE;
100: l_last_update_date per_spinal_point_steps_f.last_update_date%TYPE;
101: l_last_updated_by per_spinal_point_steps_f.last_updated_by%TYPE;
102: l_last_update_login per_spinal_point_steps_f.last_update_login%TYPE;
103: --
104: Begin
105: hr_utility.set_location('Entering:'||l_proc, 5);
106: --
119: -- Get the object version number for the insert
120: --
121: p_rec.object_version_number :=
122: dt_api.get_object_version_number
123: (p_base_table_name => 'per_spinal_point_steps_f'
124: ,p_base_key_column => 'step_id'
125: ,p_base_key_value => p_rec.step_id
126: );
127: --
152: End If;
153: --
154: per_sps_shd.g_api_dml := true; -- Set the api dml status
155: --
156: -- Insert the row into: per_spinal_point_steps_f
157: --
158: insert into per_spinal_point_steps_f
159: (step_id
160: ,effective_start_date
154: per_sps_shd.g_api_dml := true; -- Set the api dml status
155: --
156: -- Insert the row into: per_spinal_point_steps_f
157: --
158: insert into per_spinal_point_steps_f
159: (step_id
160: ,effective_start_date
161: ,effective_end_date
162: ,business_group_id
352: Cursor C_Sel1 is select per_spinal_point_steps_s.nextval from sys.dual;
353: --
354: Cursor C_Sel2 is
355: Select null
356: from per_spinal_point_steps_f
357: where step_id =
358: per_sps_ins.g_step_id_i;
359: --
360: l_proc varchar2(72) := g_package||'pre_insert';
374: --
375: -- The primary key values are already in use.
376: --
377: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
378: fnd_message.set_token('TABLE_NAME','per_spinal_point_steps_f');
379: fnd_message.raise_error;
380: End If;
381: Close C_Sel2;
382: --
628: --
629: when hr_api.cannot_find_prog_unit then
630: --
631: hr_api.cannot_find_prog_unit_error
632: (p_module_name => 'PER_SPINAL_POINT_STEPS_F'
633: ,p_hook_type => 'AI');
634: --
635: end;
636: --
693: --
694: dt_api.validate_dt_mode
695: (p_effective_date => p_effective_date
696: ,p_datetrack_mode => p_datetrack_mode
697: ,p_base_table_name => 'per_spinal_point_steps_f'
698: ,p_base_key_column => 'step_id'
699: ,p_base_key_value => p_rec.step_id
700: ,p_parent_table_name1 => 'per_grade_spines_f'
701: ,p_parent_key_column1 => 'grade_spine_id'