on 08-04-2020 10:40 AM
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.