Who's Online
1 registered (Chris Abraham), 2 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
P11d's
by Chris Abraham
0 seconds ago
Oracle eBsuiness HRMS Trusted Recon Query Help
by CT
Today at 02:24 PM
Concurrent Request - running slow
by CT
Today at 12:48 PM
Pension Auto Enrolment
by delboy
Today at 12:13 PM
Oracle eBsuiness HRMS Trusted Reconcilaition Help
by Mani
Today at 07:35 AM
Element to recover value in balance on leaving
by jkavia
Yesterday at 11:04 AM
Assignment EIT not displaying in Self Service
by CT
Yesterday at 06:45 AM
Vehicle Mileage Setup
by Chris Abraham
21/05/12 12:24 PM
In which table is external learning data stored
by DMC
21/05/12 08:45 AM
Oracle Payroll and Cash Management
by Gus
20/05/12 11:27 AM
Top Posters (30 Days)
CT 40
delboy 39
Vigneswar Battu 15
pat.woodall 10
Mani 6
Gus 4
bcooper 4
Ryan 3
Jan 3
DMC 3
(Views)Popular Topics
Family Pack K issues thread 20170
CREATE_GRADE api returns:PLS-00306: wrong number o 15200
Still trying to locate... 13855
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11907
Viewing Output of another user 10324
HR_PF.K RUP4 10298
Review of my Release 12 laptop 9747
Enhanced Retro & Release 12 9402
Adding a taskflow button to a form 9140
Family Pack K 7910
Topic Options
Rate This Topic
#5800 - 15/09/10 07:02 AM Employee Assignment Migration
bts Offline
newbie

Registered: 25/05/10
Posts: 12
Hi,

After creating employee via API, it created an initial assignment record.

I have multiple assignment records for an employee, How to migrate employee assignment?

I saw these API, not quite which one to use

hr_assignment_api.update_emp_asg
hr_assignment_api.update_emp_asg_criteria
hr_assignment_api.activate_emp_asg


Appreciate response on this

BTS

Top
#5801 - 15/09/10 08:01 AM Re: Employee Assignment Migration [Re: bts]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Hi

It depends on what items on the assignment you are migrating

update_emp_asg_criteria is used to update anything on the assignment that could control eligibility for an element - e.g. grade, job, position, people group, payroll etc

update_emp_asg (or for UK legislation you can - and should - use update_gb_emp_asg) will do the other things such as supervisor, normal hours, assignment desc flex etc.

For any given assignment record, it is more than likely you will need to call both of these apis to furnish all the required data.

activate_emp_asg is more of a process than a simple 'update', as it controls the switching of the assignment status ONLY - specifically, to some flavour of 'ACTIVE_ASSIGN'. In a migration context it is unlikely (but not impossible) that you would need to make use of it. The default employee assignment has its assignment status set to the default flavour of ACTIVE_ASSIGN (which may well be 'Active Assignment') at creation time.
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#5822 - 20/09/10 01:22 PM Re: Employee Assignment Migration [Re: CT]
bts Offline
newbie

Registered: 25/05/10
Posts: 12
Hi CT,

Thanks for the help! I was able to load the assignment records. I used activate_emp_asg in order to update the assignment status. This is because I'm migratin multiple assignment status for every employee.

Does the record have to be sorted by effective date ascending? What happens if there are few assignment left out which is in the middle of effective dates for certain employee?

/bts

Top
#5824 - 20/09/10 01:29 PM Re: Employee Assignment Migration [Re: bts]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
The best way is to load the history in ascending order of change date. That way, your date-track mode would only need to be 'UPDATE'. Of course if you are using more than one of the assignment APIs, the second and subsequent ones would probably use the date-track mode 'CORRECTION'.

You can retrospectively fill gaps where some records failed validation, but you need to make sure that the date-track mode is 'UPDATE_CHANGE_INSERT'. Note too that even doing this might mean that certain changes that should have propagated forward from that 'failed' and retried update, might well not be there. The best strategy in my view is to halt processing of assignment history for an assignment as soon as there is an exception. Then, once you have found the specific issue and resolved it, you can rerun your process for the remaining unprocessed changes in 'UPDATE' mode, and everything is consistent.
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#5827 - 21/09/10 02:23 AM Re: Employee Assignment Migration [Re: CT]
bts Offline
newbie

Registered: 25/05/10
Posts: 12
Thanks for the advice. You have been really of great help.

/bts

Top



Moderator:  bcooper, CT 
Forum Stats
792 Members
48 Forums
1584 Topics
7663 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1188
bcooper 1112
delboy 597
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