14: --
15: l_proc varchar2(72) := g_package||'return_api_dml_status';
16: --
17: Begin
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
23: End return_api_dml_status;
24: --
25: -- ----------------------------------------------------------------------------
26: -- |---------------------------< constraint_error >---------------------------|
30: --
31: l_proc varchar2(72) := g_package||'constraint_error';
32: --
33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'GHR_DUTY_STATIONS_F_PK') Then
37: fnd_message.set_name('GHR', 'HR_6153_ALL_PROCEDURE_FAIL');
38: fnd_message.set_token('PROCEDURE', l_proc);
47: fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
48: fnd_message.raise_error;
49: End If;
50: --
51: hr_utility.set_location(' Leaving:'||l_proc, 10);
52: End constraint_error;
53: --
54: -- ----------------------------------------------------------------------------
55: -- |-----------------------------< api_updating >-----------------------------|
85: l_proc varchar2(72) := g_package||'api_updating';
86: l_fct_ret boolean;
87: --
88: Begin
89: hr_utility.set_location('Entering:'||l_proc, 5);
90: --
91: If (p_effective_date is null or
92: p_duty_station_id is null or
93: p_object_version_number is null ) Then
98: l_fct_ret := false;
99: Else
100: If (p_duty_station_id = g_old_rec.duty_station_id and
101: p_object_version_number = g_old_rec.object_version_number) Then
102: hr_utility.set_location(l_proc, 10);
103: --
104: -- The g_old_rec is current therefore we must
105: -- set the returning function to true
106: --
125: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
126: fnd_message.raise_error;
127: End If;
128:
129: hr_utility.set_location(l_proc, 15);
130: l_fct_ret := true;
131: End If;
132: End If;
133: hr_utility.set_location(' Leaving:'||l_proc, 20);
129: hr_utility.set_location(l_proc, 15);
130: l_fct_ret := true;
131: End If;
132: End If;
133: hr_utility.set_location(' Leaving:'||l_proc, 20);
134: Return (l_fct_ret);
135: --
136: End api_updating;
137: --
148: --
149: l_proc varchar2(72) := g_package||'find_dt_del_modes';
150: --
151: Begin
152: hr_utility.set_location('Entering:'||l_proc, 5);
153: --
154: -- Call the corresponding datetrack api
155: --
156: dt_api.find_dt_del_modes
163: p_future_change => p_future_change,
164: p_delete_next_change => p_delete_next_change);
165: --
166: p_zap := FALSE;
167: hr_utility.set_location(' Leaving:'||l_proc, 10);
168: End find_dt_del_modes;
169: --
170: -- ----------------------------------------------------------------------------
171: -- |--------------------------< find_dt_upd_modes >---------------------------|
180: --
181: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
182: --
183: Begin
184: hr_utility.set_location('Entering:'||l_proc, 5);
185: --
186: -- Call the corresponding datetrack api
187: --
188: dt_api.find_dt_upd_modes
194: p_update => p_update,
195: p_update_override => p_update_override,
196: p_update_change_insert => p_update_change_insert);
197: --
198: hr_utility.set_location(' Leaving:'||l_proc, 10);
199: End find_dt_upd_modes;
200: --
201: -- ----------------------------------------------------------------------------
202: -- |------------------------< upd_effective_end_date >------------------------|
212: l_proc varchar2(72) := g_package||'upd_effective_end_date';
213: l_object_version_number ghr_duty_stations_f.object_version_number%type;
214: --
215: Begin
216: hr_utility.set_location('Entering:'||l_proc, 5);
217: --
218: -- Because we are updating a row we must get the next object
219: -- version number.
220: --
223: (p_base_table_name => 'ghr_duty_stations_f',
224: p_base_key_column => 'duty_station_id',
225: p_base_key_value => p_base_key_value);
226: --
227: hr_utility.set_location(l_proc, 10);
228: g_api_dml := true; -- Set the api dml status
229: --
230: -- Update the specified datetrack row setting the effective
231: -- end date to the specified new effective end date.
238: and t.effective_end_date;
239: --
240: g_api_dml := false; -- Unset the api dml status
241: p_object_version_number := l_object_version_number;
242: hr_utility.set_location(' Leaving:'||l_proc, 15);
243: --
244: Exception
245: When Others Then
246: g_api_dml := false; -- Unset the api dml status
289: --
290: --
291: --
292: Begin
293: hr_utility.set_location('Entering:'||l_proc, 5);
294: --
295: -- Ensure that all the mandatory arguments are not null
296: --
297: hr_api.mandatory_arg_error(p_api_name => l_proc,
330: If (p_object_version_number <> g_old_rec.object_version_number) Then
331: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
332: fnd_message.raise_error;
333: End If;
334: hr_utility.set_location(l_proc, 15);
335: --
336: --
337: -- Validate the datetrack mode mode getting the validation start
338: -- and end dates for the specified datetrack operation.
362: --
363: p_validation_start_date := l_validation_start_date;
364: p_validation_end_date := l_validation_end_date;
365: --
366: hr_utility.set_location(' Leaving:'||l_proc, 30);
367: --
368: -- We need to trap the ORA LOCK exception
369: --
370: Exception
410: l_proc varchar2(72) := g_package||'convert_args';
411: --
412: Begin
413: --
414: hr_utility.set_location('Entering:'||l_proc, 5);
415: --
416: -- Convert arguments into local l_rec structure.
417: --
418: l_rec.duty_station_id := p_duty_station_id;
430: l_rec.object_version_number := p_object_version_number;
431: --
432: -- Return the plsql record structure.
433: --
434: hr_utility.set_location(' Leaving:'||l_proc, 10);
435: Return(l_rec);
436: --
437: End convert_args;
438: --