2007 Sep 20 8:21 AM
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
2007 Sep 20 9:02 AM
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>
2007 Sep 20 9:50 AM
2007 Sep 20 9:36 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |