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

Locking issues

Former Member
0 Likes
744

Hi ,

Iam using the FM, BAPI_IDENTIFICATION_ADD to update the records in BUT0ID table. here problem is when iam executing in background or with out debugging program is giving error 'Partner Number XXXX is locked by the user'. its igiving my user id only. when iam running in debugging mode program is working fine.

I have used DEQUE_ALL FM and i have used COMMIT WORK AND WAIT still progrma is giving the same error.

Please do the needful. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

Hi,

Have you tried using BAPI_TRANSACTION_COMMIT instead of the explicit COMMIT statement?

Regards, Andy

2 REPLIES 2
Read only

Former Member
0 Likes
603

Hi,

Have you tried using BAPI_TRANSACTION_COMMIT instead of the explicit COMMIT statement?

Regards, Andy

Read only

Former Member
0 Likes
602

Hi,

The issue is it is taking some time to update the database. We can't check the issue in debugging ( as we will be providing the SAP enough time to update ). You can use BAPI TRANSACTION COMMIT with wait = 'X'. If it still takes time, you can have

WAIT UP TO 3 seconds.

Hope it helps.

Sujay