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

UnLock Reservation

Former Member
0 Likes
1,076

Dear Expert,

I m using a BAPI_ALM_Order_MAintain for updating a parant Order.

This BAPI fails in middle BAPI. so its Lock Order No and Reservation No, After this i m unsing "FM Dequeue_All" and some other lock object but its not releasing the Lock.

Kndly Help me . How tto release the Lock.

Thanks in Advance

Dear Expert,

I m using a BAPI_ALM_Order_MAintain for updating a parant Order.

This BAPI fails in middle BAPI. so its Lock Order No and Reservation No, After this i m unsing "FM Dequeue_All" and some other lock object but its not releasing the Lock.

Kndly Help me . How tto release the Lock.

Thanks in Advance

3 REPLIES 3
Read only

Former Member
0 Likes
799

Hi

in tghis way you have to do

constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP

CALL FUNCTION 'ENQUEUE_E_TABLE'

EXPORTING

tabname = lc_tabname

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

IF sy-subrc EQ 0.

  • To fetch all the contract accounts for customers of the segment

  • Households/SME.

PERFORM fetch_contract_accounts using lc_tabname .

ENDIF. " IF sy-subrc EQ 0.

<b>write the logic here</b>

CALL FUNCTION 'DEQUEUE_E_TABLE'

EXPORTING

TABNAME = uc_tabname .

write the logic in this order then it will unlock

<b>Reward if usefull</b>

Read only

0 Likes
799

Dear its not releasing the object.

Read only

Former Member
0 Likes
799

Hi,

try with <b>COMMITWORK</b> statement along with Deque f.m. hope it releases all lock objects.

Rewards with points if helpful.

Regards,

Vijay