Application Development 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: 

lock remove

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.