cancel
Showing results for 
Search instead for 
Did you mean: 

HR/HCM - HR_INFOTYPE_OPERATION - Is it necessary to lock employee before using this function

former_member201275
Active Contributor
0 Kudos

Is it necessary to lock an employee record before using function module HR_INFOTYPE_OPERATION to modify an infotype i.e. with function HR_EMPLOYEE_ENQUEUE for example?

I ask because even if somebody is locking the record, the HR_INFOTYPE_OPERATION will still modify the record!

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi gemini.twin,

Its technically not necessary but it is a best practice to use exclusive lock to the record you wish to modify to avoid data inconsistency with other users.

Please perform the following steps:

- Set exclusive locks for the data you wish to change or process.

- If exclusive lock is successful, read the current data in the database (To ensure up-to-date data).

- Change the data and update the data in the database (Database Commit).

- Release the lock

** Please take note not to set the lock for too long to allow other users to do there work.