Skip to Content
Former Member
Feb 15, 2007 at 05:26 AM

How to display the lock user id in HAP_DOCUMENT?


Hi ,

We have a scenario in which if an employee tries to access his appraisal document that is already accessed by his manager, the employee will be able to view his document but few buttons will be grayed out. Is it possible in some way, to display a popup message to the employee stating "Your document is locked by <b>user id</b>"

I used HRHAP_DOCUMENT_ENQUEUE to lock the appraisal document. But i am not able to track out the user id. Also, the sy-uname will display the user id correclty, but it is not helpful cos the employee and manager access different sessions.

I also tried to use HR_EMPLOYEE_ENQUEUE which has got "locking user" parameter. But this function module is not yet released by SAP.

Can anyone tell me how to proceed ???


Aruna Nivetha.