Skip to Content
avatar image
Former Member

Locking issues

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 20, 2010 at 08:55 PM

    Hi,

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

    Regards, Andy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 03:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded