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

ENQUEUE more than once, DEQUEUE not working

Former Member
0 Likes
1,456

Hello all, I am writing a HR BSP application for updating benefits online. I use HR_BEN_ENQUEUE_PERSONAL_NUMBER

to enqueue (lock) the resource. Because of certain issues I wa having, sometimes I would enqueue several times. And if it was already locked, no problem just go on processing. But when I treid to dequeue using HR_BEN_DEQUEUE_PERSONAL_NUMBER, it was not working. As long as I only enque once, everything is fine but if enqueue more than once the dequeue is not working.

Has anyone seen this or have any suggestions.

Thanks in advance, Troy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
634

Hi,

use Fm deque_all

Regards

amole

3 REPLIES 3
Read only

Former Member
0 Likes
635

Hi,

use Fm deque_all

Regards

amole

Read only

Former Member
0 Likes
634

Whenever u r using the Enqueue for the second time. Dequeue the first one and use the Enqueue.

Prakash.

Read only

Former Member
0 Likes
634

HI,

A lock remains set until you either call the corresponding DEQUEUE function module, or close the transaction with an implicit <b>DEQUEUE_ALL.</b>

Saved locks inherited by the update task are loaded back into the lock table when the system is started up

Regards

Sudheer