Who's Online
1 registered (CT), 13 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
Concurrent Request - running slow
by CT
Today at 11:16 AM
Element to recover value in balance on leaving
by jkavia
Today at 11:04 AM
P11d's
by jkavia
Today at 10:49 AM
Assignment EIT not displaying in Self Service
by CT
Today at 06:45 AM
Vehicle Mileage Setup
by Chris Abraham
Yesterday at 12:24 PM
In which table is external learning data stored
by DMC
Yesterday at 08:45 AM
Oracle Payroll and Cash Management
by Gus
20/05/12 11:27 AM
Pension Auto Enrolment
by CT
18/05/12 09:46 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
Top Posters (30 Days)
CT 38
delboy 36
Vigneswar Battu 15
pat.woodall 9
Gus 4
bcooper 4
7Giri 3
Ryan 3
DMC 3
Mani 3
(Views)Popular Topics
Family Pack K issues thread 20153
CREATE_GRADE api returns:PLS-00306: wrong number o 15194
Still trying to locate... 13844
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11889
Viewing Output of another user 10307
HR_PF.K RUP4 10271
Review of my Release 12 laptop 9733
Enhanced Retro & Release 12 9397
Adding a taskflow button to a form 9129
Family Pack K 7906
Topic Options
Rate This Topic
#4362 - 09/04/09 10:14 AM Elements Post Termination Rule Change
kp_rapolu Offline
claiming squatters rights

Registered: 15/11/07
Posts: 213
Loc: U.K
Hi,

One of consultants previosuly setup some deduction elements with Post Termination rule as 'Final Close'.

Because of that deductions are processed even after the employees termination dates (upto final close as date mentioned in the Termination details).

Now we want the element post termination rule to be changed to 'Last Standard Process'. (Note : These deduction elements have already processed by payroll run)

How can we change/update the post termination Rule of the existing element?

OR

Do we need to re-create the whole setups with correct post termination rule?


Please do advice.

Thanks in Advance
KP/..


Edited by kp_rapolu (09/04/09 10:15 AM)
_________________________
Krishna Prasad Rapolu
Oracle HRMS Consultant

Top
#4369 - 14/04/09 08:59 AM Re: Elements Post Termination Rule Change [Re: kp_rapolu]
kp_rapolu Offline
claiming squatters rights

Registered: 15/11/07
Posts: 213
Loc: U.K
Any ideas.......
_________________________
Krishna Prasad Rapolu
Oracle HRMS Consultant

Top
#4371 - 14/04/09 10:31 AM Re: Elements Post Termination Rule Change [Re: kp_rapolu]
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Hi KP

We have hit this many many times during the last year or so on the NHS project.

We have "a script" that amends the termination rule against the element definition.
In the stictest sense, this is not a supported option in the eyes of Oracle, however we have not encountered any issues whatsoever with doing this. Given the complexity and volume of payroll processing that goes on here i am confident that if there were any issues we would have hit them by now.

If you do go down the script route you will need to set the HR_GENERAL.G_DATA_MIGRATOR_MODE flag to 'Y' so that certain core triggers are disabled (otherwise you will not be able to update the termination rule).

Hope this helps.

B
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#4372 - 14/04/09 10:52 AM Re: Elements Post Termination Rule Change [Re: bcooper]
kp_rapolu Offline
claiming squatters rights

Registered: 15/11/07
Posts: 213
Loc: U.K
Hi,

thanks for advice, I have prepared the following script to change the element termination rule from 'Final Close' to 'Last Stadrd'

==

SET VERIFY OFF;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;

alter trigger PAY_ELEMENT_TYPES_T1 disable;

update pay_element_types_f
set POST_TERMINATION_RULE ='L'
where ELEMENT_NAME =<<'***Element Name****'>>
and POST_TERMINATION_RULE ='F';

alter trigger PAY_ELEMENT_TYPES_T1 enable;


==

I belive this script will not cause any other problems.


Cheers
KP/.
_________________________
Krishna Prasad Rapolu
Oracle HRMS Consultant

Top
#4373 - 14/04/09 12:20 PM Re: Elements Post Termination Rule Change [Re: kp_rapolu]
delboy Offline
veteran

Registered: 15/03/05
Posts: 594
Loc: Somewhere in Berkshire
Sharp intake of breath!!!!

As a payroll funkie, not a method I would encourage but I bow to Barry's superior knowledge.

Anyhow, not being a sql expert doesn't your script update every element from Final Close to Last Standard Process? Surely, you have some elements you want to remain as Final Close?

Delboy

Top
#4374 - 14/04/09 12:45 PM Re: Elements Post Termination Rule Change [Re: delboy]
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Good spot Del smile

By the way KP - our script is within PL/SQL - we check the current setting first and only update if needed.
Also, rather than disabling specific triggers we set the g_data_migrator flag.
If you disable the trigger and other users are on the system then you have the possibility of another users action going through with the trigger not set!!!

By embedding the lot within pls and setting the flag you control it all at session level.

Regards

Barry
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#4375 - 14/04/09 03:04 PM Re: Elements Post Termination Rule Change [Re: bcooper]
kp_rapolu Offline
claiming squatters rights

Registered: 15/11/07
Posts: 213
Loc: U.K
I have copied this script from one of Oracle's patch.

Don't know how they have given this script.
_________________________
Krishna Prasad Rapolu
Oracle HRMS Consultant

Top
#5469 - 31/05/10 08:40 PM Re: Elements Post Termination Rule Change [Re: kp_rapolu]
ALERO Offline
lurker

Registered: 02/09/09
Posts: 6
Hi ,


The termination rule on about 300 of are elements have been set up with the wrong termination rule. I have come across this thread were some of you have managed to overcome the problem without having to recreate element. Can you please advice on how to go about it. I have limited technical knowledge.

I will appreciate if you can share your script and experiences with me.

Thanks in advance
Alero


Edited by ALERO (31/05/10 08:42 PM)

Top
#5470 - 31/05/10 09:31 PM Re: Elements Post Termination Rule Change [Re: ALERO]
PeterP Offline
hacker
*****

Registered: 08/03/07
Posts: 94
Loc: Manchester, UK
It is possible to do this through the front end using Help -> Diagnostics -> Examine.

This uses the API to update a specific Element.

Top
#5471 - 01/06/10 10:23 AM Re: Elements Post Termination Rule Change [Re: PeterP]
ALERO Offline
lurker

Registered: 02/09/09
Posts: 6
Hi,

I have tried updating the termination rule on one the element from last standard process to Final Close via Help ->

Diagnostics -> Examine.
When I try to save the record a message is displayed.
APP-PAY-060909: Processing fields cannot be updated if run results exist.

I guess the only alternative is to update via the pl/sql script.

I will also like to know if anyone has experienced any problems later after updating termination rules on element definition via a PL/SQL script ?


Thanks in advance
Alero

Top



Moderator:  bcooper, CT 
Forum Stats
791 Members
48 Forums
1582 Topics
7651 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1185
bcooper 1112
delboy 594
Geoff Dixon 369
SBi 356
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 163
Gus 146
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