01-15-2009 9:25 AM
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
01-15-2009 9: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.
01-15-2009 9:34 AM
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
01-15-2009 9: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.
01-15-2009 9:44 AM
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.