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: 

SAP IS-U FICA:Setting Conditional Locks at Line item Level

Former Member
0 Kudos
1,214

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.

1 ACCEPTED SOLUTION

AmlanBanerjee
Active Contributor
0 Kudos
750

Hi Prasad,

Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?

Thanks,

Amlan

View solution in original post

6 REPLIES 6

AmlanBanerjee
Active Contributor
0 Kudos
751

Hi Prasad,

Can you check with the FM, FKK_S_LOCK_CREATE_FOR_DOCITEMS?

Thanks,

Amlan

0 Kudos
750

Hi Amlan,

FM: FKK_S_LOCK_CREATE_FOR_DOCITEMS is working.


Thanks,

Prasadu Javvadi.

william_eastman
Product and Topic Expert
Product and Topic Expert
0 Kudos
750

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.

ivor_martin
Active Contributor
0 Kudos
750

Hi,

You could trigger Transaction code FKLOCK2 with the appropriate parameters if that covers your business scenario.

Regards,

Ivor

former_member199199
Active Participant
0 Kudos
750

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

0 Kudos
592

Hi I am curious as how to make a tcode trigger from the code ? would you have an example ?