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: 

Update the expiry date of dunning lock in program

murtuza_chhatariya
Active Participant
0 Kudos

Hi,

I have requirement where I want to update dunning lock expiry date to today's date in the program. Does anybody have idea about FM or BAPI for that.

I have actually used FKK_S_LOCK_DELETE but here i dont want to delete it directly. I have checked other FMs in function group FKLOCK but couldn't find any suitable.

Thanks in advance,

Murtuza

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Murtuza,

You can use function module BAPI_ISUACCOUNT_CHANGE.

Pass dunning lock details in parameter TCTRACLOCKDETAIL. This function module only create and delete locks.

So, you need to pass existing lock details (from table DFKKLOCKS) with PROCESSING_MODE = 04 (delete) and append another value with changed expiry date with PROCESSING_MODE = 01 (Create).

This will also help in maintain lock history too.

Hope this helps.

Regards,

Avinash

View solution in original post

2 REPLIES 2

Former Member
0 Kudos

Hi Murtuza,

You can use function module BAPI_ISUACCOUNT_CHANGE.

Pass dunning lock details in parameter TCTRACLOCKDETAIL. This function module only create and delete locks.

So, you need to pass existing lock details (from table DFKKLOCKS) with PROCESSING_MODE = 04 (delete) and append another value with changed expiry date with PROCESSING_MODE = 01 (Create).

This will also help in maintain lock history too.

Hope this helps.

Regards,

Avinash

0 Kudos

Thanks Avinash for reply.

Other than this BAPI, I got FKK_CRM_LOCKS_MODIFY for above requirement which is also working correctly.

Thanks,

Murtuza