Skip to Content
author's profile photo Former Member
Former Member

Read Lock Entries Of a Transaction

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 02:33 PM

    SM04

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 02:45 PM

    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 	#

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.