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: 

Clearing Lock Reason

Former Member
0 Kudos

Dear Experts,

I have set the Clearing Lock in the document. I have searched in the DFKKOP table, where I am not able to identify the document number with clearing lock reason.

I am having requirement that, if the line item is overdue system should lock the partcular line item, Is there any way to set the payment lock automatically?

Could anyone please guide me in which table I can identify the document number with clearing lock.

Thanks in Advance,

Aswin

Edited by: Aswinkumar.V on May 23, 2011 7:16 PM

1 ACCEPTED SOLUTION

Astrid_Gambill
Contributor

Hi Aswin

The table for locks is DFKKLOCKS. the lock object can be an account or contract or open item document, and each entry has

Lock Category

Lock Process

Lock Reason.

Regards

Astrid

View solution in original post

5 REPLIES 5

Astrid_Gambill
Contributor

Hi Aswin

The table for locks is DFKKLOCKS. the lock object can be an account or contract or open item document, and each entry has

Lock Category

Lock Process

Lock Reason.

Regards

Astrid

0 Kudos

Dear Astrid,

Thanks for your immediate response.

I am having requirement that, if the line item is overdue system should lock the partcular line item, Is there any way to set the payment lock automatically?

Is there any workaround to do this?

Regards,

Aswin

0 Kudos

Aswin

Sorry, I don't have a lot of expertise in the automation arena but it sounds like you need a customized event in Dunning, to set the lock once a particular Dunning Level is reached within a Dunning Procedure.

Astrid

0 Kudos

Try the func. module FKK_S_LOCK_CREATE.

l_obj contains the lock object key.

CALL FUNCTION 'FKK_S_LOCK_CREATE'

EXPORTING

i_loobj1 = l_obj

i_appl_work_area = ls_dfkkop-applk

i_gpart = ls_dfkkop-gpart

i_vkont = ls_dfkkop-vkont

i_proid = '10'

i_lotyp = '02'

i_lockr = l_reason

i_fdate = l_startdate

i_tdate = l_enddate

i_uname = sy-uname

IMPORTING

es_locks = ls_locks

EXCEPTIONS

already_exist = 1

imp_data_not_complete = 2

no_authority = 3

enqueue_lock = 4

wrong_data = 5

OTHERS = 6.

Former Member
0 Kudos

thanks a lot for both of you..

Regards,

Aswin