Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Locking on infotype records in 2001, 2013 and 0416.

duma_msongelwa
Explorer
0 Kudos

Is there a FM used to lock infotypes. Before I can delete infotype 2006 record I have to lock 2001.2013 and 0416. I need the best way in ABAP to lock these records. I tried using HR_INFOTYPE_OPERATIONS and EDQ operation

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos

You can't lock only specific records or infotypes, you have to lock the employee for whom you need to perform some operaion. For this use fm BAPI_EMPLOYEE_ENQUEUE for locking ee, and fm BAPI_EMPLOYEE_DEQUEUE for releasing the lock.

Regards

Marcin

Former Member
0 Kudos

Yes, Lock the employee itself. You can also use these FMs...

Lock the employee

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

Do the operation--

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

Unlock employee

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

Regards,

Sumit

duma_msongelwa
Explorer
0 Kudos

Answered thank you