05-10-2010 10:13 AM
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
05-10-2010 10:18 AM
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
05-10-2010 10:33 AM
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
08-05-2011 9:57 AM