cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the lock user id in HAP_DOCUMENT?

Former Member
0 Kudos

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 ???

Thanks,

Aruna Nivetha.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aruna,

Might it be that you have a pop-up blocker active? Because we bring always a message saying the document is locked by (USER/USERNAME/Telephone number).

In the BSP this is a popup message, in R/3 a normal statusbar message.

Regards and Groetjes,

Maurice

PS: Why do you want to lock the document yourself? I highly do NOT recommend this

Former Member
0 Kudos

HI Maurice,

I am getting my pop up message stating " your document is locked by". The only problem is that i am not able to display the user id who locked the document i.e i am not able to display "your document is locked by <b><user id>"</b>

This locking concept is essential cos that will serve as a way in which the <b>manager or employee identify that someone else is using the document and due to which the buttons are getting greyd out</b>

Hope I am not confusing you.

thanks,

Aruna Nivetha

Former Member
0 Kudos

Hi,

If the popup says "Document locked by <empty> then this is an error.

Just create an OSS message on PA-PD-PM for this.

Regards and Groetjes,

Maurice

Former Member
0 Kudos

Hi Maurice,

You were saying that "In the BSP a popup message appears, in R/3 a normal statusbar message.".... But in our scenario, the R/3 status message appears corerctly in phap_admin_pa as "Appraisal document 'Performance Plan' is locked by <username> (No Phone/XXX@freescale.com).

But we are not seeing any BSP pop up message in portal. And that is the reason, we are trying to create a message.

can you tell me wht is to be done to make the BSP pop up appear just as the R/3 message?

Former Member
0 Kudos

Hello,

As said, the lock message should appear as popup in the BSP environment. I have just tested this in our system and the lock message, including the data by whom, is displayed correctly.

It might be that you have a popup killer active that throws out the message popup.

When not and you are using the standard BSP (unmodified) then I would recommend to create an OSS message on PA-PD-PM.

There should be no need to create your own lock message.

Regards and Groetjes,

Maurice

Former Member
0 Kudos

Thanks a lot Maurice....

I will create a OSS note

Regards,

Aruna Nivetha.