2011 May 23 6:05 PM
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
2011 May 23 6:18 PM
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
2011 May 23 6:18 PM
2011 May 23 6:21 PM
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
2011 May 23 8:03 PM
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
2011 May 23 8:53 PM
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.
2011 May 24 5:07 PM