02-17-2016 10:57 AM
Hi Experts,
I am searching FM/BAPI for setting conditional locks at line item level.
FMS: FKK_S_LOCK_CREATE and FKK_S_LOCKSET_MAINTAIN tried these two.
These function modules are showing results but not updated actual mode.
when i am checking table DFKKLOCKS, it is not updating.
Please find screen shot.
How to proceed further.
Thanks in advance,
Prasadu Javvadi.
02-17-2016 1:44 PM
Hi Prasad,
Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?
Thanks,
Amlan
02-17-2016 1:44 PM
Hi Prasad,
Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?
Thanks,
Amlan
02-18-2016 5:06 AM
Hi Amlan,
FM: FKK_S_LOCK_CREATE_FOR_DOCITEMS is working.
Thanks,
Prasadu Javvadi.
02-17-2016 2:34 PM
Prasad:
In the help documentation for conditional locks, you can see that only FKK_S_LOCK_CREATE can be used and you need to provide the conditions met. Of course then you have to commit the changes to the database in the program. Why would you not use FKLOCK2 for this?
regards,
bill.
02-17-2016 2:35 PM
Hi,
You could trigger Transaction code FKLOCK2 with the appropriate parameters if that covers your business scenario.
Regards,
Ivor
02-17-2016 11:01 PM
Hi Prasad,
FKK_S_LOCK_CREATE will work; but you will have to trigger BAPI_TRANSACTION_COMMIT after that to save it in database.
Thanks,
Bodhisattwa