Application Development and Automation 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: 
Read only

Performance management : Unlock documents

Former Member
0 Likes
584

Hi all,

When I open a performance management document on the web, I lock this document with 'HRHAP_DOCUMENT_ENQUEUE', but I can't unlock this document (when I close this document). I'm using 'HRHAP_DOCUMENT_DEQUEUE' to do this, but it doesn't work.

Can anybody help me with this problem?

Thanks a lot!

Kris

Hi all,

When I open a performance management document on the web, I lock this document with 'HRHAP_DOCUMENT_ENQUEUE', but I can't unlock this document (when I close this document). I'm using 'HRHAP_DOCUMENT_DEQUEUE' to do this, but it doesn't work.

Can anybody help me with this problem?

Thanks a lot!

Kris

2 REPLIES 2
Read only

Former Member
0 Likes
479

Hello Kris,

I assume you are creating an own UI for the appraisals. Are you using the support class (CL_BSP_HAP_DOCUMENT_UI) for this?

Why are you enqueueing the document yourself? I assume that you are using document_get_detail to create or change/display the documents. This will, when necessary, set the enqueue.

Just setting an enqueue can cause troubles as we have two different enqueues possible. Also, your dequeue probably doesn't work because of two enqueues (yours and the application) and just one dequeue.

I highly recommend NOT to enqueue by yourself but let the application handle this. If you are not using the class then use function module HRHAP_TEMPLATE_GET_DETAIL for creation and HRHAP_DOCUMENT_GET_DETAIL for display/change of appraisal documents. They handle the enqueues as well them selfs.

Regards and Groetjes,

Maurice

Read only

0 Likes
479

Hi,

I'm using document_get_detail to display the documents.

But I didn't know that this sets the enqueue.

So thanks a lot for your reply!

Regards,

Kris