Who's Online
0 registered (), 2 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
In which table is external learning data stored
by DMC
Yesterday at 03:43 PM
Pension Auto Enrolment
by CT
Yesterday at 09:46 AM
Vehicle Mileage Setup
by Shyam
Yesterday at 06:45 AM
11.5.10 "Extended Support" extended til..... when?
by Vigneswar Battu
17/05/12 10:59 AM
Hacking element definitions
by CT
15/05/12 08:42 AM
GB EOY reports
by Vigneswar Battu
09/05/12 02:07 PM
Oracle Payroll and Cash Management
by Vigneswar Battu
08/05/12 03:08 PM
BG setup/changes - brain dump
by Ryan
05/05/12 07:20 PM
Fusion Collateral
by CT
04/05/12 11:09 AM
BEE - ordering Batch lines
by Vigneswar Battu
03/05/12 04:22 PM
Top Posters (30 Days)
delboy 37
CT 35
Vigneswar Battu 15
pat.woodall 9
bcooper 4
Mani 3
7Giri 3
Gus 3
Ryan 3
SBi 2
(Views)Popular Topics
Family Pack K issues thread 20107
CREATE_GRADE api returns:PLS-00306: wrong number o 15174
Still trying to locate... 13817
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11848
Viewing Output of another user 10266
HR_PF.K RUP4 10240
Review of my Release 12 laptop 9703
Enhanced Retro & Release 12 9375
Adding a taskflow button to a form 9111
Family Pack K 7882
Topic Options
Rate This Topic
#1997 - 12/04/06 01:53 PM Overlapping absences - custom library vs user hook
vkumar Offline
claiming squatters rights
*****

Registered: 16/03/05
Posts: 223
Loc: Fullers Brewery West London
Experts,

How has this quirk in Oracle HR been handled on your projects?

Currently overlapping absences is allowed with a warning popup. Traditionally sites which needed to prevent this used a custom library fix.

The current site wants to prevent it both from forms and self service.
Is User Hook on the absence api the best option?

How does the error message transmit back to a self service form.

Thanks in advance.
vin

Top
#1998 - 18/04/06 09:41 AM Re: Overlapping absences - custom library vs user hook [Re: vkumar]
Geoff Dixon Offline

sitting tennant
*****

Registered: 14/03/05
Posts: 369
Loc: Sussex by the Sea
We've got exactly the same issue here - so we'll watch for words of wisdom!
_________________________
Geoff
Expressing opinions since 1962

Top
#1999 - 18/04/06 02:50 PM Re: Overlapping absences - custom library vs user hook [Re: Geoff Dixon]
jhatten Offline
hacker

Registered: 15/03/05
Posts: 95
Loc: London
Vin/Geoff,

OK it's been a while since my last post - but I think I can help with this one…maybe

We used the hook route on;
HR_PERSON_ABSENCE_BK1.CREATE_PERSON_ABSENCE_B
HR_PERSON_ABSENCE_BK2.UPDATE_PERSON_ABSENCE_B

and here's a sample from our exception block which uses registered custom message;

EXCEPTION

WHEN e_overlap_error THEN
hr_utility.set_message (20010,'XXPER_88888_SSP_ABS_OVERLAP');
hr_utility.raise_error;

WHEN e_asg_overlap_error THEN
hr_utility.set_message (20010,'XXPER_88889_ASG_ABS_OVERLAP');
hr_utility.raise_error;

WHEN OTHERS THEN
hr_utility.set_message (20010,'XXPER_88899_ORACLE_ERROR');
hr_utility.set_message_token ('PROCEDURE',g_package||'.'||lv_proc);
hr_utility.set_message_token ('LOCATION',g_location );
hr_utility.set_message_token ('ORA_MESG',SQLERRM);
hr_utility.raise_error;

END check_for_overlap_ins;

These errors appear at the top of the page just like the standard ones (lovely job).

I think the only words of wisdom I can offer is watch out for any approval hierarchy shenanigans records end up in the transaction tables and it can all get a bit messy.

HTH

Jay

Top
#2000 - 25/05/06 11:52 AM Re: Overlapping absences - custom library vs user hook [Re: jhatten]
samar Offline
newbie

Registered: 15/03/05
Posts: 11
Loc: London
Master J,
Thanks for that overalp enlightment, it will be very handy when I attempt absence entries via OTL. Also, will pass this on to Dave C who was laso querying overlapping issues.
Sha
_________________________
SAmar

Top



Moderator:  Administrator, Geoff Dixon 
Forum Stats
790 Members
48 Forums
1580 Topics
7641 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1182
bcooper 1112
delboy 594
Geoff Dixon 369
SBi 356
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 163
Gus 145
May
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31