Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Read Lock Entries Of a Transaction

Former Member
0 Kudos

Hi Experts,

Is there any FM or any possibility of Reading and Deleting the Lock entries of a perticular user for a perticular transaction (Other than SM12, FM ENQUE_READ and FM ENQUE_DELETE)

FM ENQUE_DELETE -


This reads Lock entries of a user.

I need to read lock entries of a perticular transaction for that user.

Thanks,

Bhagi

4 REPLIES 4

Former Member
0 Kudos

SM04

0 Kudos

hi,

The above dosn't solve my problem.

I need to read and delete in a program.

Thanks,

Bhagi

former_member216100
Participant
0 Kudos

use FM CALL FUNCTION 'ENQUE_READ2'

CALL FUNCTION 'ENQUE_READ2'            
     EXPORTING  GCLIENT   = GCLIENT    
                GUNAME    = GUNAME     
                GNAME     = GNAME      
                GARG      = GARG       
     IMPORTING  SUBRC     = SUBRC      
                NUMBER    = NUMBER     
     TABLES     ENQ       = raw_ENQ.

in the table raw_enq you can see all entries you have selected.

to delete you need to use FM DEQUEUE..... with the correct entrie

here the table in detail:

GNAME	C	30 	TRDIR
GARG	C	150 	ZTEST
GMODE	C	1 	X
GUSR	C	58 	20090812163703922861000800ch01s581........................
GUSRVB	C	58 	##########################################################
GUSE	C	10 	0000000001
GUSEVB	C	10 	0000000000
GOBJ	C	16 	ESRDIRE
GCLIENT	C	3 	011
GUNAME	C	12 	MIRO
GTCODE	C	20 	SEU_INT
GBCKTYPE	C	1 	#

0 Kudos

hi,

FM ENQUE_READ2 is same as FM ENQUE_READ(This will read all the lock entries of a user irrespective of the transaction).

How to read the exact lock entries related to the perticular transaction.

Thanks

Bhagi