Skip to Content
author's profile photo Former Member
Former Member

lock remove

hi all,

i want to remove lock from an object and when i am looking at lock table i found locked is at se38 level.

so, is there is any specific method to remove lock at report level.acually i am excuting bapi and then for same object i want bdc. but due to bapi lock am not able to do bdc.

by using dequeue_all function module its fine but its deleted all locks.

below are details from lock :

Backup flag

Transaction Code SE38

Lock Object Name ENQ_CGPL_PROJECT

Cumulative Counter 1 0

<<removed_by_moderator>>

Thanks in advance

Edited by: Vijay Babu Dudla on Jan 15, 2009 4:48 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:29 AM

    Hi Sandeep,

    Why r u not able to use DEQUEUE_ENQ_CGPL_PROJECT ?

    Do a COMMIT WORK after your BAPI and the lock should be removed..

    Revert.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi

      iam using this one just have look below , but its not working

      CALL FUNCTION 'DEQUEUE_ENQ_CGPL_PROJECT'

      EXPORTING

      MODE_CGPL_PROJECT_ENQ = 'X'

      MANDT = SY-MANDT

      • APPLICATION = ' '

      EXTERNAL_ID = ty_auditcoorc_change-external_id

      X_APPLICATION = ' '

      X_EXTERNAL_ID = ' '

      _SCOPE = '3'

      _SYNCHRON = ' '

      _COLLECT

      and i m doing bapi commit and wait too .even lock is not removing

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 09:31 AM

    Before calling the BAPI use this statement: SET UPDATE TASK LOCAL, as local update performs a synchronous update according to the COMMIT WORK statement, independent of the addition AND WAIT. So that means after the bapi call SAP removes the lock from ur object and it will be available for further processing. Hope it will solve ur prob.

    Regards,

    Joy.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi

      i have written code like this but not working..still i looking lock.

      SET UPDATE TASK LOCAL.

      CALL FUNCTION 'BAPI_BUS20370_CHANGE'

      EXPORTING

      auditcorrecaction = ty_auditcoorc_change

      TABLES

      texts = t_text_change

      longtexts = t_longtext_change

      partner = t_partner_change

      return = t_return_change.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.