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

Problem unlocking TO in table LTAK table

Former Member
0 Likes
2,085

Hi

While confirming the TO, in the program it locks the particular TO from LTAK table using FM ENQUEUE_ELLTAKE but then an error appears and the TO is not confirmed.

Issue is TO remains locked.I tried Unlocking the TO after the error appears using FM DEQUEUE_ELLTAKE still it remains locked.

I even tried manually executing the the FM to unlock the TO still not working.

1 ACCEPTED SOLUTION
Read only

GK817
Active Contributor
1,698

Hi Akash,

After DEQUEUE execution in your program, Can you try executing BAPI_TRANSACTION_COMMIT with wait = 'X' ? I have the feeling that this may fix your issue.

Or put a loop at keep trying ENQUEUE ( don't make it endless loop). Probably there is a delay in releasing the lock.

GK

4 REPLIES 4
Read only

GK817
Active Contributor
1,699

Hi Akash,

After DEQUEUE execution in your program, Can you try executing BAPI_TRANSACTION_COMMIT with wait = 'X' ? I have the feeling that this may fix your issue.

Or put a loop at keep trying ENQUEUE ( don't make it endless loop). Probably there is a delay in releasing the lock.

GK

Read only

0 Likes
1,698

Hi Akash, What function module you are using to confirm TO ? If error comes while confirming, please add a check for sy-subrc. If your sy-subrc is not initial, add 'ROLLBACK WORK' . I feel it should take the TO to intial stage.

Thanks, Madhusmita

Read only

gayathri_jayajeevan2
Participant
0 Likes
1,698

Hi,

did u check this report RLQCHECK to solve the Inconsistencies?

Read only

gayathri_jayajeevan2
Participant
0 Likes
1,698

i mean pls see the parameters for enqueue and dequeue FM in this report and follow the same. You shouldn't face this lock issue in this scenario.