cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement to remove lock entries SM12 in target system automatically in focused run

former_member147380
Participant
0 Kudos
1,604

Hi,

For reading lock entries class CL_CHECK_LOCK_ENTRIES exists from technical systems. Similar way

my requirement to remove lock entries in target system automatically from focused run system.

How to call ENQUE_DELETE to remove lock entries from technical system.

Thanks,

Jwala Deepa

Accepted Solutions (0)

Answers (2)

Answers (2)

NTeunckens
Active Contributor
0 Kudos

Well obviously it would be better to have a way of Analysing and Solving the hanging Locks, rather than just Deleting them. So I'm assuming you will have a Process in place for that.

Then you could create a Background Job running a Custom Program that reads the SM21-entries, checks for (unusually) long-standing Records and Delete them through "ENQUE_DELETE" ...

former_member147380
Participant
0 Kudos

I agree with the solution but we need to this in all system right like focused run monitors data from many systems as per my understanding. In focused run system as part of guided procedure - activity ABAP Lock Entries class CL_CHECK_LOCK_ENTRIES is configured.In method GET_LOCK_ENTRIES - standard logic ENQUEUE_REPORT table data is retrieved similar can we trigger the task for removing old entriesusing RFC call in the targets systems. How to do the same in object oriented way as the standard logic in classes and objects.

NTeunckens
Active Contributor
0 Kudos

Please check Reports such as "RSSM_SM12_OLD" or "RSENQRR2" in which you can see the usage of the "ENQUE_DELETE" Function ...

former_member147380
Participant
0 Kudos

Yes that is right.But my requirement is Enque_delete should run target automatically as part of guided procedure activity.