2016 Feb 17 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.
2016 Feb 17 1:44 PM
Hi Prasad,
Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?
Thanks,
Amlan
2016 Feb 17 1:44 PM
Hi Prasad,
Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?
Thanks,
Amlan
2016 Feb 18 5:06 AM
Hi Amlan,
FM: FKK_S_LOCK_CREATE_FOR_DOCITEMS is working.
Thanks,
Prasadu Javvadi.
2016 Feb 17 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.
2016 Feb 17 2:35 PM
Hi,
You could trigger Transaction code FKLOCK2 with the appropriate parameters if that covers your business scenario.
Regards,
Ivor
2016 Feb 17 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
2024 Jun 07 5:51 PM
Hi I am curious as how to make a tcode trigger from the code ? would you have an example ?