SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Update clearing lock (item level lock)

ankit_munshi2
Participant
0 Kudos

Hi,

I want to update end date of a document level lock (clearing lock). I do not want to delete the lock so can't use FKK_S_LOCK_DELETE. I couldnt find any BAPI for the same .

Any help would be appreciated!

regards,
AM

3 REPLIES 3

0 Kudos

Hello Ankit

please try the internal function FKK_DOCUMENT_CHANGE_LOCKS or BAPI BAPI_CTRACDOCUMENT_CHANGE (table POSITIONLOCKS) to change locks of contract account documents.

regards

Joerg

ankit_munshi2
Participant
0 Kudos

Thanks for your input . However i think FM - BAPI_CTRACDOCUMENT_CHANGE doesnt allow me to set lock dates in the past . It calls function module FKK_DOCUMENT_CHANGE_LOCKS in such a way that locks cannot be set with a 'To_DATE' in the past .

I will try to use FKK_DOCUMENT_CHANGE_LOCKS directly to change the lock end date.

0 Kudos

Why do you want to change the lock end date in the past? Normally you change lock dates from today until today or later.