63: --
64: l_proc varchar2(72) := g_package||'dt_update_dml';
65: --
66: Begin
67: hr_utility.set_location('Entering:'||l_proc, 5);
68: --
69: If (p_datetrack_mode = 'CORRECTION') then
70: hr_utility.set_location(l_proc, 10);
71: --
66: Begin
67: hr_utility.set_location('Entering:'||l_proc, 5);
68: --
69: If (p_datetrack_mode = 'CORRECTION') then
70: hr_utility.set_location(l_proc, 10);
71: --
72: -- Because we are updating a row we must get the next object
73: -- version number.
74: --
286: p_rec.effective_start_date := p_validation_start_date;
287: p_rec.effective_end_date := p_validation_end_date;
288: End If;
289: --
290: hr_utility.set_location(' Leaving:'||l_proc, 15);
291: Exception
292: When hr_api.check_integrity_violated Then
293: -- A check constraint has been violated
294: ben_pln_shd.g_api_dml := false; -- Unset the api dml status
344: --
345: l_proc varchar2(72) := g_package||'update_dml';
346: --
347: Begin
348: hr_utility.set_location('Entering:'||l_proc, 5);
349: --
350: dt_update_dml(p_rec => p_rec,
351: p_effective_date => p_effective_date,
352: p_datetrack_mode => p_datetrack_mode,
352: p_datetrack_mode => p_datetrack_mode,
353: p_validation_start_date => p_validation_start_date,
354: p_validation_end_date => p_validation_end_date);
355: --
356: hr_utility.set_location(' Leaving:'||l_proc, 10);
357: End update_dml;
358: --
359: -- ----------------------------------------------------------------------------
360: -- |----------------------------< dt_pre_update >-----------------------------|
409: l_proc varchar2(72) := g_package||'dt_pre_update';
410: l_dummy_version_number number;
411: --
412: Begin
413: hr_utility.set_location('Entering:'||l_proc, 5);
414: If (p_datetrack_mode <> 'CORRECTION') then
415: hr_utility.set_location(l_proc, 10);
416: --
417: -- Update the current effective end date
411: --
412: Begin
413: hr_utility.set_location('Entering:'||l_proc, 5);
414: If (p_datetrack_mode <> 'CORRECTION') then
415: hr_utility.set_location(l_proc, 10);
416: --
417: -- Update the current effective end date
418: --
419: ben_pln_shd.upd_effective_end_date
424: p_validation_end_date => p_validation_end_date,
425: p_object_version_number => l_dummy_version_number);
426: --
427: If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
428: hr_utility.set_location(l_proc, 15);
429: --
430: -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
431: -- delete any future rows
432: --
436: p_datetrack_mode => p_datetrack_mode,
437: p_validation_start_date => p_validation_start_date,
438: p_validation_end_date => p_validation_end_date);
439: End If;
440: hr_utility.set_location(l_proc, 20);
441: --
442: -- We must now insert the updated row
443: --
444: ben_pln_ins.insert_dml
447: p_datetrack_mode => p_datetrack_mode,
448: p_validation_start_date => p_validation_start_date,
449: p_validation_end_date => p_validation_end_date);
450: End If;
451: hr_utility.set_location(' Leaving:'||l_proc, 20);
452: End dt_pre_update;
453: --
454: -- ----------------------------------------------------------------------------
455: -- |------------------------------< pre_update >------------------------------|
493: --
494: l_proc varchar2(72) := g_package||'pre_update';
495: --
496: Begin
497: hr_utility.set_location('Entering:'||l_proc, 5);
498: --
499: --
500: --
501: dt_pre_update
513: p_name => p_rec.name
514: ) ;
515: --Bug : 3460429
516:
517: hr_utility.set_location(' Leaving:'||l_proc, 10);
518: End pre_update;
519: --
520: -- ----------------------------------------------------------------------------
521: -- |-----------------------------< post_update >------------------------------|
558: --
559: l_proc varchar2(72) := g_package||'post_update';
560: --
561: Begin
562: hr_utility.set_location('Entering:'||l_proc, 5);
563: --
564: --
565: -- Start of API User Hook for post_update.
566: -- Added for GSP validations
975: end;
976: --
977: -- End of API User Hook for post_update.
978: --
979: hr_utility.set_location(' Leaving:'||l_proc, 10);
980: End post_update;
981: --
982: --
983: -- ----------------------------------------------------------------------------
994: l_validation_start_date date;
995: l_validation_end_date date;
996: --
997: Begin
998: hr_utility.set_location('Entering:'||l_proc, 5);
999: --
1000: -- Ensure that the DateTrack update mode is valid
1001: --
1002: dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
1017: --
1018: -- 2. Call the supporting update validate operations.
1019: --
1020: ben_pln_upd2.convert_defs(p_rec);
1021: hr_utility.set_location('xxxxx l_validation_start_date '||l_validation_start_date, 100);
1022: hr_utility.set_location('xxxx l_validation_end_date '||l_validation_end_date, 100);
1023: ben_pln_bus.update_validate
1024: (p_rec => p_rec,
1025: p_effective_date => p_effective_date,
1018: -- 2. Call the supporting update validate operations.
1019: --
1020: ben_pln_upd2.convert_defs(p_rec);
1021: hr_utility.set_location('xxxxx l_validation_start_date '||l_validation_start_date, 100);
1022: hr_utility.set_location('xxxx l_validation_end_date '||l_validation_end_date, 100);
1023: ben_pln_bus.update_validate
1024: (p_rec => p_rec,
1025: p_effective_date => p_effective_date,
1026: p_datetrack_mode => p_datetrack_mode,
1256: l_rec ben_pln_shd.g_rec_type;
1257: l_proc varchar2(72) := g_package||'upd';
1258: --
1259: Begin
1260: hr_utility.set_location('Entering:'||l_proc, 5);
1261: --
1262: -- Call conversion function to turn arguments into the
1263: -- l_rec structure.
1264: --
1465: p_effective_start_date := l_rec.effective_start_date;
1466: p_effective_end_date := l_rec.effective_end_date;
1467: --
1468: --
1469: hr_utility.set_location(' Leaving:'||l_proc, 10);
1470: End upd;
1471: --
1472: end ben_pln_upd;